diff options
-rw-r--r-- | templates/web/zurich/admin/report_edit.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/web/zurich/admin/report_edit.html b/templates/web/zurich/admin/report_edit.html index e5729bb23..d92d5c661 100644 --- a/templates/web/zurich/admin/report_edit.html +++ b/templates/web/zurich/admin/report_edit.html @@ -103,11 +103,24 @@ [% END %] </select></p> -<p> +<p id="automatic-reply"> <span class="mock-label">automatische Antwort</span> <input type="checkbox" name="send_rejected_email" id="send_rejected_email" value="1" checked="checked" /> </p> +<script type="text/javascript"> +$(function(){ + // Show or hide the automatic reply field + $('#state').change(function(){ + if ($(this).val() === 'hidden') { + $('#automatic-reply').show(); + } else { + $('#automatic-reply').hide(); + } + }).change(); +}); +</script> + [% IF problem.state == 'unconfirmed' OR problem.state == 'confirmed' %] <ul class="no-bullets"> |