]> WPIA git - gigi.git/commitdiff
Merge "chg: hide "Show advanced options" checkbox when javascript is disabled"
authorBenny Baumann <BenBE1987@gmx.net>
Wed, 17 Jan 2018 08:37:17 +0000 (09:37 +0100)
committerGerrit Code Review <gigi-system@dogcraft.de>
Wed, 17 Jan 2018 08:37:17 +0000 (09:37 +0100)
src/club/wpia/gigi/Gigi.templ
src/club/wpia/gigi/pages/account/certs/CertificateIssueForm.templ
static/static/css/noscript.css [new file with mode: 0644]

index 99aa265eb95e814a1a2531ea65d17949e93b64a8..1c68829f679c4fcc2665eeabcda597b4cfca8dd1 100644 (file)
@@ -11,6 +11,7 @@
 
         <link rel="stylesheet" href="<?=$static?>/css/bootstrap.min.css">
         <link rel="stylesheet" href="<?=$static?>/css/main.css">
+        <noscript><link rel="stylesheet" href="<?=$static?>/css/noscript.css"></noscript>
 
         <script src="<?=$static?>/js/jquery.min.js"></script>
         <script src="<?=$static?>/js/bootstrap.min.js"></script>
index 67bf336d12380e33dd7db4b64834b3f270f39ae6..da45ca658dbc9950f5f74f20e2567a097bf1f68b 100644 (file)
@@ -59,7 +59,7 @@
     <td align="left"><input type='text' name='OU' value='<?=$department?>'/></td>
   </tr>
   <? } ?>
-  <tr class="expertoff">
+  <tr class="expertoff noscript-hidden">
     <td class='check'>
       <input type="checkbox" id="expertbox" name="expertbox"/>
     </td>
diff --git a/static/static/css/noscript.css b/static/static/css/noscript.css
new file mode 100644 (file)
index 0000000..7f85e85
--- /dev/null
@@ -0,0 +1,3 @@
+.noscript-hidden{
+    display: none;
+}