blob: 95b9cf80457e80681680f5b21438fbfcf9510bd7 (
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
|
% layout 'mainlayout';
<div class="section container">
<h1 class=title>Write Message</h1>
% if (my $msg = stash('warning')) {
<p class=message> <%= $msg %> </p>
% }
%= form_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (class => '') => begin
<div class=field>
%= label_for mail => ucfirst l('send_to') => (class => 'label')
<div class=control>
%= email_field 'to' => (id => 'mail') => (multiple => '') => (required => '') => (class => 'input')
</div>
</div>
<div class=field>
%= label_for subject => ucfirst l('subject') => (class => 'label')
<div class=control>
%= text_field 'subject' => (required => '') => (class => 'input')
</div>
</div>
<div class=field>
%= label_for cc => 'CC' => (class => 'label')
<div class=control>
%= email_field 'cc' => (multiple => '') => (class => 'input')
</div>
</div>
<div class=field>
%= label_for bcc => 'BCC' => (class => 'label')
<div class=control>
%= email_field 'bcc' => (multiple => '') => (class => 'input')
</div>
</div>
<div class=field>
%= label_for back_to => ucfirst l('answer_to') => (class => 'label')
<div class=control>
%= email_field 'back_to' => (class => 'input')
</div>
</div>
<div class=field>
%= label_for txt => ucfirst l('content') => (class => 'label')
%= text_area body => (rows => 24) => (name => 'txt') => (class => 'textarea')
</div>
<div class=field>
<div class=file>
<label class=file-label>
%= file_field 'attach' => (class => 'file-input')
<div class="file-cta">
%= tag span => (class => 'file-label') => begin
%= ucfirst l('attach file')
% end
</div>
</label>
</div>
</div>
<div class=field>
<div class=control>
%= submit_button l('send') => (class => 'button')
</div>
</div>
%= csrf_field
% end
<nav>
<a href="javascript:history.back()" class="button"> <%= ucfirst l 'back' %> </a>
</nav>
</div>
|