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 99aa265..1c68829 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 67bf336..da45ca6 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;
+}