letsencrypt: UI: Fix checkbox disabling

Disable checkboxes using HTML attribute instead of CSS class

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2019-02-07 16:16:45 +05:30 committed by Sunil Mohan Adapa
parent 0564dc558b
commit df978ce8ee
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -163,8 +163,7 @@
{% trans "Update config" %}</button>
</noscript>
{% else %}
<input type="checkbox" name="toggle_hooks" id="id_toggle_hooks"
class="disabled"></input>
<input type="checkbox" name="toggle_hooks" id="id_toggle_hooks" disabled></input>
<noscript>
<button class="btn btn-sm btn-default disabled" type="submit">
{% trans "Update config" %}</button>
@ -210,8 +209,7 @@
{% trans "Update config" %}</button>
</noscript>
{% else %}
<input type="checkbox" name="ejabberd" id="ejabberd"
class="disabled"></input>
<input type="checkbox" name="ejabberd" id="ejabberd" disabled></input>
<noscript>
<button class="btn btn-sm btn-default disabled" type="submit">
{% trans "Update config" %}</button>