diff options
author | Dave Arter <davea@mysociety.org> | 2016-12-01 16:54:20 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-01-10 11:13:33 +0000 |
commit | aa26b2bb569c657db3452eeac21df8cd415d77e7 (patch) | |
tree | b2e70d00c8c5552f38de34d5a3262697be7dd47c /templates | |
parent | 7416881f07d2a02ce0c98718e0ca5790a39518d7 (diff) |
Prefill update field based on problem state
If there’s a response template matching the problem’s new state,
it’s selected and the update field prefilled accordingly.
The exception to this is if the user has manually entered text
into the update field already.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/base/admin/response_templates_select.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/admin/response_templates_select.html b/templates/web/base/admin/response_templates_select.html index 417be9add..e10460e48 100644 --- a/templates/web/base/admin/response_templates_select.html +++ b/templates/web/base/admin/response_templates_select.html @@ -3,7 +3,7 @@ <select id="templates_for_[% for %]" class="form-control js-template-name" data-for="[% for %]" name="response_template"> <option value="">[% loc('--Choose a template--') %]</option> [% FOR t IN problem.response_templates %] - <option value="[% t.text | html %]"> [% t.title | html %] </option> + <option value="[% t.text | html %]" data-problem-state="[% t.state | html %]"> [% t.title | html %] </option> [% END %] </select> </div> |