blob: ca6999419ab5aa7b88bcf8118b329a2e2c4271af (
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
|
% layout 'mainlayout';
<div class=ow>
<h1>Write Message</h1>
% if (my $msg = stash('warning')) {
<p class=warn> <%= $msg %> </p>
% }
<form method=post enctype=multipart/form-data id=write-form>
<label for=mail> <%= ucfirst l 'send_to' %> </label>
%= email_field 'to', id => 'mail', multiple => '', required => ''
<br>
<label for=subject> <%= ucfirst l 'subject' %> </label>
%= text_field 'subject', 'required' => ''
<br>
<label for=cc>CC</label>
%= email_field 'cc', 'multiple' => ''
<br>
<label for=bcc>BCC</label>
%= email_field 'bcc', 'multiple' => ''
<br>
<label for=back_to> <%= ucfirst l 'answer_to' %> </label>
%= email_field 'back_to'
<br>
<label for=txt> <%= ucfirst l 'content' %> </label>
%= text_area 'body', cols => 80, rows => 24, id => 'txt'
<br>
%= file_field 'attach'
<br>
<input type=submit value="send" />
%= csrf_field
</form>
<nav>
%#<a href="<%= url_for('displayheaders') %>" class=btn> <%= l 'home' %> </a>
<a href="javascript:history.back()" class=btn> <%= l 'home' %> </a>
</nav>
</div>
|