about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-05-02 03:59:43 +0300
committerFrederick Muriuki Muriithi2024-05-02 04:02:04 +0300
commit137648f5db940b8a6d65db31eee231ef1ce5d761 (patch)
treed9ed19850fd11e8096af24d683fe92263fd666c6
parent8b11c16d1a7462089de00dc8759e7bb1d253ed08 (diff)
downloadgn-auth-137648f5db940b8a6d65db31eee231ef1ce5d761.tar.gz
Replace colon with hyphen in html element names
Colons have special meanings in CSS rules. This means that having
names with colons in them is a recipe for annoying, difficult to track
bugs.
-rw-r--r--gn_auth/templates/admin/register-client.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/gn_auth/templates/admin/register-client.html b/gn_auth/templates/admin/register-client.html
index daac977..5d525c5 100644
--- a/gn_auth/templates/admin/register-client.html
+++ b/gn_auth/templates/admin/register-client.html
@@ -13,9 +13,9 @@
     <legend>Select client scope</legend>
 
     {%for scp in scope%}
-    <input name="scope[]" id="chk:{{scp}}"type="checkbox" value="{{scp}}"
+    <input name="scope[]" id="chk-{{scp}}"type="checkbox" value="{{scp}}"
 	   {%if scp=="profile"%}checked="checked"{%endif%} />
-    <label for="chk:{{scp}}">{{scp}}</label><br />
+    <label for="chk-{{scp}}">{{scp}}</label><br />
     {%endfor%}
 
   </fieldset>
@@ -24,20 +24,20 @@
     <legend>Basic OAuth2 client information</legend>
 
     
-    <label for="txt:client-name">Client name</label>
-    <input name="client_name" type="text" id="txt:client-name"
+    <label for="txt-client-name">Client name</label>
+    <input name="client_name" type="text" id="txt-client-name"
 	   required="required" />
     <br /><br />
 
-    <label for="txt:redirect-uri">Redirect URI</label>
-    <input name="redirect_uri" type="text" id="txt:redirect-uri"
+    <label for="txt-redirect-uri">Redirect URI</label>
+    <input name="redirect_uri" type="text" id="txt-redirect-uri"
 	   required="required" />
     <br /><br />
 
-    <label for="txt:other-redirect-uris">
+    <label for="txt-other-redirect-uris">
       Other redirect URIs (Enter one URI per line)</label>
     <br />
-    <textarea name="other_redirect_uris" id="txt:other-redirect-uris"
+    <textarea name="other_redirect_uris" id="txt-other-redirect-uris"
 	      cols="80" rows="10"
 	      title="Enter one URI per line."></textarea>
     <br /><br />
@@ -46,16 +46,16 @@
       <input name="grants[]"
 	     type="checkbox"
 	     value="authorization_code"
-	     id="chk:authorization-code"
+	     id="chk-authorization-code"
 	     checked="checked" />
-      <label for="chk:authorization-code">Authorization Code</label>
+      <label for="chk-authorization-code">Authorization Code</label>
       <br /><br />
 
       <input name="grants[]"
 	     type="checkbox"
 	     value="refresh_token"
-	     id="chk:refresh-token" />
-      <label for="chk:refresh-token">Refresh Token</label>
+	     id="chk-refresh-token" />
+      <label for="chk-refresh-token">Refresh Token</label>
     </fieldset>
   </fieldset>