diff options
Diffstat (limited to 'templates/web/base/contact')
-rw-r--r-- | templates/web/base/contact/enquiry/index.html | 7 | ||||
-rw-r--r-- | templates/web/base/contact/index.html | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/templates/web/base/contact/enquiry/index.html b/templates/web/base/contact/enquiry/index.html index c88ca221e..b19c5181b 100644 --- a/templates/web/base/contact/enquiry/index.html +++ b/templates/web/base/contact/enquiry/index.html @@ -16,10 +16,10 @@ <input type="text" class="form-control required" name="name" id="form_name" value="[% ( form_name OR c.user.name ) | html %]" size="30"> <label for="form_email">[% loc('Your email') %]</label> - [% IF field_errors.username %] - <div class="form-error">[% field_errors.username %]</div> + [% IF field_errors.username_register %] + <div class="form-error">[% field_errors.username_register %]</div> [% END %] - <input type="text" class="form-control required email" name="username" id="form_email" [% "disabled" IF c.user.email %] value="[% ( email OR c.user.email ) | html %]" size="30"> + <input type="text" class="form-control required email" name="username_register" id="form_email" [% "disabled" IF c.user.email %] value="[% ( email OR c.user.email ) | html %]" size="30"> <div class="form-group"> <label for="form_phone">[% loc('Your phone number') %]</label> @@ -34,6 +34,7 @@ <select class="form-control required" name="category" id="category"> <option value="">[% loc('-- Please select --') %]</option> [% FOREACH contact IN contacts %] + [% NEXT IF contact.get_extra_field(, 'code', '_fms_disable_').disable_form == 'true' %] <option value="[% contact.category | html %]" [% "selected" IF report.category == contact.category %]>[% contact.category | html %]</option> [% END %] </select> diff --git a/templates/web/base/contact/index.html b/templates/web/base/contact/index.html index 05a24160f..4e65ce674 100644 --- a/templates/web/base/contact/index.html +++ b/templates/web/base/contact/index.html @@ -63,7 +63,7 @@ [% IF problem.anonymous %] [% tprintf( loc('Reported anonymously at %s'), prettify_dt( problem.confirmed ) ) %] [% ELSE %] - [% tprintf( loc('Reported by %s at %s'), problem.user.name, prettify_dt( problem.confirmed ) ) | html %] + [% tprintf( loc('Reported by %s at %s'), problem.name, prettify_dt( problem.confirmed ) ) | html %] [% END %] </cite> |