aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-01-25 11:00:23 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-01-25 16:49:08 +0000
commite85fb7c97a214cc28db36bee0098b80aa02da342 (patch)
treea96bc431b4c18078ec157fc8ea57dc3d3c18d387
parentecc34df634440bd5c00a28b363f77e1819155ffc (diff)
Do not show Discard changes button if no JS.
-rw-r--r--templates/web/base/report/_main.html2
-rw-r--r--templates/web/base/report/update.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/report/_main.html b/templates/web/base/report/_main.html
index 5e345153e..2495eb2fa 100644
--- a/templates/web/base/report/_main.html
+++ b/templates/web/base/report/_main.html
@@ -121,7 +121,7 @@ can_moderate_title = c.user.can_moderate_title(problem, can_moderate)
</p>
<p>
<input type="submit" class="green-btn" value="[% loc('Save changes') %]">
- <input type="button" class="btn cancel" value="[% loc('Discard changes') %]">
+ <input type="button" class="hidden-nojs btn cancel" value="[% loc('Discard changes') %]">
</p>
</div>
[% END %]
diff --git a/templates/web/base/report/update.html b/templates/web/base/report/update.html
index 6c837b07c..ca9397bd4 100644
--- a/templates/web/base/report/update.html
+++ b/templates/web/base/report/update.html
@@ -56,7 +56,7 @@
<label for="moderation_reason">[% loc('Describe why you are moderating this') %]</label>
<input type="text" class="form-control" name="moderation_reason">
<input type="submit" class="green-btn" value="[% loc('Save changes') %]">
- <input type="button" class="btn cancel" value="[% loc('Discard changes') %]">
+ <input type="button" class="hidden-nojs btn cancel" value="[% loc('Discard changes') %]">
</div>
</form>
[% END %]