blob: 8375bdff0bd42f7a5f88efe0beb4ff6ae8511dd0 (
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_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (id => 'write-form') => begin
%= label_for mail => ucfirst l 'send_to'
%= email_field 'to', id => 'mail', multiple => '', required => ''
<br>
%= label_for subject => ucfirst l 'subject'
%= text_field 'subject', 'required' => ''
<br>
%= label_for cc => 'CC'
%= email_field 'cc', 'multiple' => ''
<br>
%= label_for bcc => 'BCC'
%= email_field 'bcc', 'multiple' => ''
<br>
%= label_for back_to => ucfirst l 'answer_to'
%= email_field 'back_to'
<br>
%= label_for txt => ucfirst l 'content'
%= text_area body => (cols => 80) => (rows => 24) => (id => 'txt')
<br>
%= file_field 'attach'
<br>
%= submit_button l 'send'
%= csrf_field
% end
<nav>
%#<a href="<%= url_for('displayheaders') %>" class=btn> <%= l 'home' %> </a>
<a href="javascript:history.back()" class=btn> <%= l 'home' %> </a>
</nav>
</div>
|