diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2016-09-13 17:32:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-09-20 15:43:18 +0100 |
commit | 750d8a46d0acedb3582a7ae694534e91a1e8d3ac (patch) | |
tree | 285535620b90fbceaf0ce014ffb2a7e496e9f546 | |
parent | 0177e3b22e01d0e819a7bd553a2756322af5131e (diff) |
Single template for all user-related form elements
`form_user.html` now acts as a counterpart to `form_report.html` and
contains all the form elements to do with login / personal details.
-rw-r--r-- | templates/web/base/report/new/fill_in_details_form.html | 6 | ||||
-rw-r--r-- | templates/web/base/report/new/form_user.html | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/templates/web/base/report/new/fill_in_details_form.html b/templates/web/base/report/new/fill_in_details_form.html index 663b13e6a..917f9ec88 100644 --- a/templates/web/base/report/new/fill_in_details_form.html +++ b/templates/web/base/report/new/fill_in_details_form.html @@ -30,10 +30,6 @@ <fieldset> <div id="problem_form"> [% PROCESS 'report/new/form_report.html' %] - [% IF c.user_exists %] - [% PROCESS "report/new/form_user_loggedin.html" %] - [% ELSE %] - [% PROCESS "report/new/form_user_loggedout.html" %] - [% END %] + [% PROCESS 'report/new/form_user.html' %] </div> </fieldset> diff --git a/templates/web/base/report/new/form_user.html b/templates/web/base/report/new/form_user.html new file mode 100644 index 000000000..d0e8c0829 --- /dev/null +++ b/templates/web/base/report/new/form_user.html @@ -0,0 +1,5 @@ +[% IF c.user_exists %] + [% PROCESS "report/new/form_user_loggedin.html" %] +[% ELSE %] + [% PROCESS "report/new/form_user_loggedout.html" %] +[% END %] |