aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default')
-rw-r--r--templates/web/default/report/new/extra_name.html13
1 files changed, 8 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 %]