blob: 6342927c3be77d09a4a14faab08ff29fd9cc171d (
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
|
% layout 'mainlayout';
<div class="jwm-base">
<h1>Write Message</h1>
% if (my $msg = stash('warning')) {
<p class=warn> <%= $msg %> </p>
% }
%= form_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (class => 'pure-form pure-form-stacked') => begin
<fieldset>
%= label_for mail => ucfirst l 'send_to'
%= email_field 'to' => (id => 'mail') => (multiple => '') => (required => '')
%= label_for subject => ucfirst l 'subject'
%= text_field 'subject' => (required => '')
%= label_for cc => 'CC'
%= email_field 'cc' => (multiple => '')
%= label_for bcc => 'BCC'
%= email_field 'bcc' => (multiple => '')
%= label_for back_to => ucfirst l 'answer_to'
%= email_field 'back_to'
%= label_for txt => ucfirst l 'content'
%= text_area body => (cols => 80) => (rows => 24) => (name => 'txt')
%= label_for attach => ucfirst l 'attach file'
%= file_field 'attach'
%= submit_button l('send') => (class => 'pure-button pure-button-primary')
%= csrf_field
</fieldset>
% end
<nav>
<a href="javascript:history.back()" class="pure-button"> <%= ucfirst l 'back' %> </a>
</nav>
</div>
|