diff options
author | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-03 18:22:43 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-03 18:22:43 +0200 |
commit | a6e6f8be88a93699765f25aee0e6109a3eb0b307 (patch) | |
tree | c4ba131bdf3af616ff70072876d384924bf408ce /templates/webmail/writemail.html.ep | |
parent | ebe37a68d39dbc1cc4f6af1c05301d5a5fc29c13 (diff) |
reworked templates based on purecss
Diffstat (limited to 'templates/webmail/writemail.html.ep')
-rw-r--r-- | templates/webmail/writemail.html.ep | 61 |
1 files changed, 28 insertions, 33 deletions
diff --git a/templates/webmail/writemail.html.ep b/templates/webmail/writemail.html.ep index 8375bdf..6342927 100644 --- a/templates/webmail/writemail.html.ep +++ b/templates/webmail/writemail.html.ep @@ -1,51 +1,46 @@ % layout 'mainlayout'; -<div class=ow> +<div class="jwm-base"> -<h1>Write Message</h1> + <h1>Write Message</h1> -% if (my $msg = stash('warning')) { - <p class=warn> <%= $msg %> </p> -% } + % if (my $msg = stash('warning')) { + <p class=warn> <%= $msg %> </p> + % } -%= form_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (id => 'write-form') => begin + %= 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 => '' - <br> + %= label_for mail => ucfirst l 'send_to' + %= email_field 'to' => (id => 'mail') => (multiple => '') => (required => '') - %= label_for subject => ucfirst l 'subject' - %= text_field 'subject', 'required' => '' - <br> + %= label_for subject => ucfirst l 'subject' + %= text_field 'subject' => (required => '') - %= label_for cc => 'CC' - %= email_field 'cc', 'multiple' => '' - <br> + %= label_for cc => 'CC' + %= email_field 'cc' => (multiple => '') - %= label_for bcc => 'BCC' - %= email_field 'bcc', 'multiple' => '' - <br> + %= label_for bcc => 'BCC' + %= email_field 'bcc' => (multiple => '') - %= label_for back_to => ucfirst l 'answer_to' - %= email_field 'back_to' - <br> + %= 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) => (id => 'txt') - <br> + %= label_for txt => ucfirst l 'content' + %= text_area body => (cols => 80) => (rows => 24) => (name => 'txt') - %= file_field 'attach' - <br> + %= label_for attach => ucfirst l 'attach file' + %= file_field 'attach' - %= submit_button l 'send' + %= submit_button l('send') => (class => 'pure-button pure-button-primary') - %= csrf_field + %= csrf_field -% end + </fieldset> + % end -<nav> - %#<a href="<%= url_for('displayheaders') %>" class=btn> <%= l 'home' %> </a> - <a href="javascript:history.back()" class=btn> <%= l 'home' %> </a> -</nav> + <nav> + <a href="javascript:history.back()" class="pure-button"> <%= ucfirst l 'back' %> </a> + </nav> </div> |