diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-06 09:45:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-06 09:45:23 +0100 |
commit | 5529ff9f803e73893f4f1b86e56c90a8c9ffb410 (patch) | |
tree | 0da0220566575eaedcfb9ed19faf38f0a5bfc7ff | |
parent | 61020a020a506e8d47e4a67f39093b2dc30657f2 (diff) |
[Zurich] Fix bug creating new categories.
Some code hadn't been updated with the switch to a state field.
-rw-r--r-- | templates/web/zurich/admin/contact-form.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/web/zurich/admin/contact-form.html b/templates/web/zurich/admin/contact-form.html index 064eba3f0..8d8d184e6 100644 --- a/templates/web/zurich/admin/contact-form.html +++ b/templates/web/zurich/admin/contact-form.html @@ -18,19 +18,19 @@ <p><strong>[% loc('Email:') %] </strong> <input type="text" class="form-control" name="email" value="[% contact.email | html %]" size="30"> - [% IF contact.in_storage %] <p> + [% IF contact.in_storage %] <label for="state">[% loc('State') %]</label> <select name="state" id="state"> <option value="confirmed"[% ' selected' IF contact.state == 'confirmed' %]>[% loc('Confirmed') %] <option value="deleted"[% ' selected' IF contact.state == 'deleted' %]>[% loc('Deleted') %] </select> + [% ELSE %] + <input type="hidden" name="state" value="confirmed" id="confirmed"> + [% END %] <input type="checkbox" name="photo_required" value="1" id="photo_required"[% ' checked' IF contact.get_extra_metadata('photo_required') %]> <label class="inline" for="photo_required">[% loc('Photo required') %]</label> </p> - [% ELSE %] - <input type="hidden" name="confirmed" value="1" id="confirmed"> - [% END %] <p><strong>[% loc('Note:') %] </strong><textarea class="form-control" name="note" rows="3" cols="40"></textarea> |