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/about.html.ep | 4 ++-- templates/webmail/noaction.html.ep | 10 +++++----- templates/webmail/writemail.html.ep | 20 ++++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) (limited to 'templates/webmail') diff --git a/templates/webmail/about.html.ep b/templates/webmail/about.html.ep index 49ecc1a..60fe549 100644 --- a/templates/webmail/about.html.ep +++ b/templates/webmail/about.html.ep @@ -47,7 +47,7 @@
  • Supported languages:

    % foreach (@$languages) { - <%= $_ %> + %= link_to $_ => {lang => $_} % }

  • @@ -64,7 +64,7 @@ diff --git a/templates/webmail/noaction.html.ep b/templates/webmail/noaction.html.ep index 54a8106..2608bda 100644 --- a/templates/webmail/noaction.html.ep +++ b/templates/webmail/noaction.html.ep @@ -18,12 +18,12 @@ -
    + %= form_for login => (name => 'login1') => begin
    - : + %= label_for userid => ucfirst l 'userid' %= text_field 'userid' @@ -31,7 +31,7 @@
    - : + %= label_for password => ucfirst l 'passwd' %= password_field 'password' @@ -39,12 +39,12 @@
    - + %= submit_button l 'login'
    -
    + % end 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