aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <self@hecticjeff.net>2013-09-11 17:08:38 +0100
committerChris Mytton <self@hecticjeff.net>2013-09-11 17:08:38 +0100
commitdb49e8c4595898c79eaac46be091ff280f93b25f (patch)
tree8a393add98ed80767601aea4be719b2d070a7ea9
parent7e81340375d6544c28a0934d073e088cab993d02 (diff)
[Zurich] Only show automatic reply when status is hidden
-rw-r--r--templates/web/zurich/admin/report_edit.html15
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">