aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web')
-rw-r--r--templates/web/default/report/new/extra_name.html13
-rw-r--r--templates/web/fixmystreet/report/new/fill_in_details_form.html3
2 files changed, 11 insertions, 5 deletions
diff --git a/templates/web/default/report/new/extra_name.html b/templates/web/default/report/new/extra_name.html
index 503b6acc3..e8c2cadaf 100644
--- a/templates/web/default/report/new/extra_name.html
+++ b/templates/web/default/report/new/extra_name.html
@@ -3,13 +3,16 @@
[% IF field_errors.fms_extra_title %]
<p class='form-error'>[% field_errors.fms_extra_title %]</p>
[% END %]
+[% title = '' %]
+[% IF fms_extra_title %][% title = fms_extra_title | upper %]
+[% ELSIF c.user && c.user.title %][% title = c.user.title | upper %][% END %]
<select class="form-focus-trigger" id="form_fms_extra_title"
name="fms_extra_title">
<option></option>
- <option value="MR"[% ' selected' IF fms_extra_title == 'Mr' %]>Mr</option>
- <option value="MISS"[% ' selected' IF fms_extra_title == 'Miss' %]>Miss</option>
- <option value="MRS"[% ' selected' IF fms_extra_title == 'Mrs' %]>Mrs</option>
- <option value="MS"[% ' selected' IF fms_extra_title == 'Ms' %]>Ms</option>
- <option value="DR"[% ' selected' IF fms_extra_title == 'Dr' %]>Dr</option>
+ <option value="MR"[% ' selected' IF title == 'MR' %]>Mr</option>
+ <option value="MISS"[% ' selected' IF title == 'MISS' %]>Miss</option>
+ <option value="MRS"[% ' selected' IF title == 'MRS' %]>Mrs</option>
+ <option value="MS"[% ' selected' IF title == 'MS' %]>Ms</option>
+ <option value="DR"[% ' selected' IF title == 'DR' %]>Dr</option>
</select>
[% END %]
diff --git a/templates/web/fixmystreet/report/new/fill_in_details_form.html b/templates/web/fixmystreet/report/new/fill_in_details_form.html
index b8a813348..237533657 100644
--- a/templates/web/fixmystreet/report/new/fill_in_details_form.html
+++ b/templates/web/fixmystreet/report/new/fill_in_details_form.html
@@ -111,6 +111,9 @@
[% IF c.user_exists %]
<div class="form-box">
+
+ [% INCLUDE 'report/new/extra_name.html' %]
+
<label for="form_name">[% loc('Name') %]</label>
[% IF field_errors.name %]
<p class='form-error'>[% field_errors.name %]</p>