mirror of
https://github.com/Mailu/Mailu.git
synced 2025-04-07 06:59:54 +02:00
Use readonly attribute instead of disabled
This commit is contained in:
parent
6af7a07e77
commit
163494cb78
@ -12,12 +12,12 @@ Automatic reply
|
||||
<form class="form" method="post" role="form">
|
||||
{{ form.hidden_tag() }}
|
||||
{{ macros.form_field(form.reply_enabled,
|
||||
onchange="if(this.checked){$('#reply_subject,#reply_body').removeAttr('disabled')}
|
||||
else{$('#reply_subject,#reply_body').attr('disabled', '')}") }}
|
||||
onchange="if(this.checked){$('#reply_subject,#reply_body').removeAttr('readonly')}
|
||||
else{$('#reply_subject,#reply_body').attr('readonly', '')}") }}
|
||||
{{ macros.form_field(form.reply_subject,
|
||||
**{("enabled" if user.reply_subject else "disabled"): ""}) }}
|
||||
**{("rw" if user.reply_enabled else "readonly"): ""}) }}
|
||||
{{ macros.form_field(form.reply_body, rows=10,
|
||||
**{("enabled" if user.reply_subject else "disabled"): ""}) }}
|
||||
**{("rw" if user.reply_enabled else "readonly"): ""}) }}
|
||||
{{ macros.form_field(form.submit) }}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user