From 72ae9b3f63ddbe296f3e4e8f8db2d29303163d68 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sun, 1 May 2022 22:06:03 +0200 Subject: use more tag helpers in templates --- templates/webmail/writemail.html.ep | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'templates/webmail/writemail.html.ep') 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 @@

<%= $msg %>

% } -
+%= 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 => ''
- + %= 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'
- - %= text_area 'body', cols => 80, rows => 24, id => 'txt' + %= label_for txt => ucfirst l 'content' + %= text_area body => (cols => 80) => (rows => 24) => (id => 'txt')
%= file_field 'attach'
- + %= submit_button l 'send' %= csrf_field -
+% end