summaryrefslogtreecommitdiff
path: root/templates/webmail/writemail.html.ep
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 22:06:03 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 22:06:03 +0200
commit72ae9b3f63ddbe296f3e4e8f8db2d29303163d68 (patch)
treef0db960b784719df0c7318720880c73b5330b937 /templates/webmail/writemail.html.ep
parent7c8bd21ccbca8a3166289ab0e5511cc82d2822aa (diff)
use more tag helpers in templates
Diffstat (limited to 'templates/webmail/writemail.html.ep')
-rw-r--r--templates/webmail/writemail.html.ep20
1 files changed, 10 insertions, 10 deletions
diff --git a/templates/webmail/writemail.html.ep b/templates/webmail/writemail.html.ep
index ca69994..8375bdf 100644
--- a/templates/webmail/writemail.html.ep
+++ b/templates/webmail/writemail.html.ep
@@ -8,40 +8,40 @@
<p class=warn> <%= $msg %> </p>
% }
-<form method=post enctype=multipart/form-data id=write-form>
+%= form_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (id => 'write-form') => begin
- <label for=mail> <%= ucfirst l 'send_to' %> </label>
+ %= label_for mail => ucfirst l 'send_to'
%= email_field 'to', id => 'mail', multiple => '', required => ''
<br>
- <label for=subject> <%= ucfirst l 'subject' %> </label>
+ %= label_for subject => ucfirst l 'subject'
%= text_field 'subject', 'required' => ''
<br>
- <label for=cc>CC</label>
+ %= label_for cc => 'CC'
%= email_field 'cc', 'multiple' => ''
<br>
- <label for=bcc>BCC</label>
+ %= label_for bcc => 'BCC'
%= email_field 'bcc', 'multiple' => ''
<br>
- <label for=back_to> <%= ucfirst l 'answer_to' %> </label>
+ %= label_for back_to => ucfirst l 'answer_to'
%= email_field 'back_to'
<br>
- <label for=txt> <%= ucfirst l 'content' %> </label>
- %= text_area 'body', cols => 80, rows => 24, id => 'txt'
+ %= label_for txt => ucfirst l 'content'
+ %= text_area body => (cols => 80) => (rows => 24) => (id => 'txt')
<br>
%= file_field 'attach'
<br>
- <input type=submit value="send" />
+ %= submit_button l 'send'
%= csrf_field
-</form>
+% end
<nav>
%#<a href="<%= url_for('displayheaders') %>" class=btn> <%= l 'home' %> </a>