blob: b19c5181b6631100aeae5468a633bc0a99ce85ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
[% INCLUDE 'header.html',
bodyclass = 'twothirdswidthpage',
title = loc('General Enquiry')
%]
<form method="post" action="/contact/enquiry/submit" class="validate" enctype="multipart/form-data">
<input type="hidden" name="token" value="[% csrf_token %]">
<input type="hidden" name="submit_problem" value="1">
<fieldset>
[% INCLUDE 'errors.html' %]
<label for="form_name">[% loc('Your name') %]</label>
[% IF field_errors.name %]
<div class="form-error">[% field_errors.name %]</div>
[% END %]
<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_register %]
<div class="form-error">[% field_errors.username_register %]</div>
[% END %]
<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>
<span class="required-text required-text--optional">[% loc('optional') %]</span>
<input type="text" class="form-control extra.phone" name="extra.phone" id="form_phone" value="[% report.user.phone | html %]" size="30">
</div>
<label for="form_category">[% loc('Subject') %]</label>
[% IF field_errors.category %]
<div class="form-error">[% field_errors.category %]</div>
[% END %]
<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>
<label for="form_detail">[% loc('Message') %]</label>
[% IF field_errors.detail %]
<div class="form-error">[% field_errors.detail %]</div>
[% END %]
<textarea class="form-control required" name="detail" id="form_detail" rows="7" cols="50">[% report.detail | html %]</textarea>
<input type="hidden" name="upload_fileid" value="[% upload_fileid %]">
<label for="form_photo">
[% loc('Photos/Documents') %]
</label>
[% IF field_errors.photo %]
<p class='form-error'>[% field_errors.photo %]</p>
[% END %]
<div id="form_photos">
[% IF upload_fileid OR report.get_extra_metadata('enquiry_files').keys.count %]
<p>[% loc('You have already attached files to this report. Note that you can attach a maximum of 3 to this report (if you try to upload more, the oldest will be removed).') %]</p>
[% FOREACH id IN upload_fileid.split(',') %]
<img align="right" src="/photo/temp.[% id %]" alt="">
[% END %]
[% IF report.get_extra_metadata('enquiry_files') %]
[% FOREACH id IN report.get_extra_metadata('enquiry_files').values %]
[% id %]<br />
[% END %]
<input type="hidden" name="enquiry_files" value="[% enquiry_files | html %]" />
[% END %]
[% END %]
<p><input type="file" name="photo1" id="form_photo"></p>
<p><input type="file" name="photo2" id="form_photo2"></p>
<p><input type="file" name="photo3" id="form_photo3"></p>
</div>
<input class="final-submit green-btn" type="submit" value="[% loc('Send') %]">
</fieldset></form>
[% INCLUDE 'footer.html' pagefooter = 'yes' %]
|