diff options
author | Michael Tänzer <neo@nhng.de> | 2014-03-19 00:24:10 +0100 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2014-03-19 00:24:10 +0100 |
commit | 1c5409b02e58e938e44ab7f8f12eabd9288ed01d (patch) | |
tree | 7d9c507bf84c8b25336fa8339f454e1416b52abb /pages/account/10.php | |
parent | 2d5c9ce4b45d2bdea60e0c9a5d3041b15fa51925 (diff) | |
download | cacert-devel-1c5409b02e58e938e44ab7f8f12eabd9288ed01d.tar.gz cacert-devel-1c5409b02e58e938e44ab7f8f12eabd9288ed01d.tar.xz cacert-devel-1c5409b02e58e938e44ab7f8f12eabd9288ed01d.zip |
bug 807: Introduce an advanced settings field in all cert creation pages
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/account/10.php')
-rw-r--r-- | pages/account/10.php | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/pages/account/10.php b/pages/account/10.php index 8908400..e8affff 100644 --- a/pages/account/10.php +++ b/pages/account/10.php @@ -30,17 +30,40 @@ <p><?=_("If you are a valid organisation and would like the organisation name in the certificates you can apply for an organisation assurance. Contact us via support@cacert.org for more information.")?></p> <form method="post" action="account.php"> +<p><?=_("Optional comment, only used in the certificate overview")?><br> + <input type="text" name="description" maxlength="80" size=80/></p> +<p><?=_("Paste your CSR(Certificate Signing Request) below...")?><br /> + <textarea name="CSR" cols="80" rows="15"></textarea> +</p> + +<p id="expertoff" style="display:none"><input type="checkbox" id="expertbox" onchange="showExpert(this.checked)" /> <label for="expertbox"><?=_("Show advanced options")?></label></p> +<div id="advanced_options" style="border: 1px solid"> + <? if($_SESSION['profile']['points'] >= 50) { ?> -<input type="radio" name="rootcert" value="1"/> <?=_("Sign by class 1 root certificate")?><br /> -<input type="radio" name="rootcert" value="2" checked/> <?=_("Sign by class 3 root certificate")?><br /> +<p> + <input type="radio" id="root1" name="rootcert" value="1"/> <label for="root1"><?=_("Sign by class 1 root certificate")?></label><br /> + <input type="radio" id="root2" name="rootcert" value="2" checked/> <label for="root2"><?=_("Sign by class 3 root certificate")?></label> +</p> <p><?=_("Please note: The class 3 root certificate needs to be setup in your webserver as a chained certificate, while slightly more complicated to setup, this root certificate is more likely to be trusted by more people.")?></p> <? } ?> -<p><?=_("Optional comment, only used in the certificate overview")?><br> - <input type="text" name="description" maxlength="80" size=80/></p> -<p><?=_("Paste your CSR(Certificate Signing Request) below...")?></p> -<textarea name="CSR" cols="80" rows="15"></textarea><br /> + +</div> + <p><input type="checkbox" name="CCA" /> <strong><?=sprintf(_("I accept the CAcert Community Agreement (%s)."),"<a href='/policy/CAcertCommunityAgreement.html'>CCA</a>")?></strong><br /> <?=_("Please Note: You need to accept the CCA to proceed.")?></p> <input type="submit" name="process" value="<?=_("Submit")?>" /> <input type="hidden" name="oldid" value="<?=$id?>" /> </form> + + +<script language="javascript"> +function showExpert(a) +{ + var options=document.getElementById("advanced_options"); + options.style.display = (a) ? "" : "none"; + + var checkbox=document.getElementById("expertoff"); + checkbox.style.display = ""; +} +showExpert(false); +</script> |