From 1229bb6a838e96eb52be7aa1cac8d692746bc783 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 17 Aug 2023 11:36:55 +0200 Subject: convert to bulma css framework --- templates/webmail/about.html.ep | 14 +++-- templates/webmail/displayheaders.html.ep | 8 ++- templates/webmail/login.html.ep | 67 ++++++++++++++++------ templates/webmail/readmail.html.ep | 6 +- templates/webmail/writemail.html.ep | 95 +++++++++++++++++++++----------- 5 files changed, 129 insertions(+), 61 deletions(-) (limited to 'templates/webmail') diff --git a/templates/webmail/about.html.ep b/templates/webmail/about.html.ep index 6221bcc..a5cd4a7 100644 --- a/templates/webmail/about.html.ep +++ b/templates/webmail/about.html.ep @@ -2,9 +2,9 @@ % layout 'mainlayout'; -
+
-
+

About JWebmail <%= $version %>

@@ -38,7 +38,7 @@ and currently maintained by Jannis M. Hoffmann

- +

Supported languages

@@ -56,10 +56,12 @@ a complete rewrite of oMail-webmail.

-
+ -
diff --git a/templates/webmail/displayheaders.html.ep b/templates/webmail/displayheaders.html.ep index 3f650c0..8446e00 100644 --- a/templates/webmail/displayheaders.html.ep +++ b/templates/webmail/displayheaders.html.ep @@ -1,6 +1,8 @@ % layout 'mainlayout'; -
+
+ + %= javascript '/src/displayheaders.js' => (defer => undef) %= include 'displayheaders/_folders'; @@ -16,11 +18,11 @@ %= include 'displayheaders/_main_table'; % } % else { -

+

%= l 'This folder is empty!'

% } %= include 'displayheaders/_bot_nav'; -
+ diff --git a/templates/webmail/login.html.ep b/templates/webmail/login.html.ep index 706dc1c..54ab40a 100644 --- a/templates/webmail/login.html.ep +++ b/templates/webmail/login.html.ep @@ -2,38 +2,69 @@ % my $uses_cram = config->{session}{secure} eq 'cram'; -
+
+
-

- JWebmail – <%= ucfirst l 'login' %> -

+

+ <%= ucfirst l 'login' %> +

+

+ JWebmail +

% if (my $msg = flash('message') || stash('warning')) { -

- %= $msg -

+
+
+ %= $msg +
+
% } %= form_for login => (name => 'login1') => (method => 'post') => (class => 'pure-form pure-form-aligned jwm-round') => begin -
-
- %= label_for userid => ucfirst l 'userid' - %= text_field 'userid' => '' => (required => '') + +
+
+ %= label_for userid => ucfirst l 'userid' => (class => 'label') +
+
+
+
+ %= text_field 'userid' => '' => (required => undef) => (class => 'input') +
+
-
- %= label_for password => ucfirst l 'password' - %= password_field 'password' => (required => '') +
+ +
+
+ %= label_for password => ucfirst l 'password' => (class => 'label')
+
+
+
+ %= password_field 'password' => (required => undef) => (class => 'input') +
+
+
+
% if ($uses_cram) { %= hidden_field challenge => rand % } -
- %= submit_button ucfirst l('login') => (class => 'pure-button pure-button-primary') => (name => 'submit_button') => $uses_cram ? (disabled => undef) : () +
+
+
+
+
+
+ %= submit_button ucfirst l('login') => (class => 'button is-primary') => (name => 'submit_button') => $uses_cram ? (disabled => undef) : () +
+
-
+
% end -
+
+ % if ($uses_cram) { %= javascript '/src/login_cram.js' diff --git a/templates/webmail/readmail.html.ep b/templates/webmail/readmail.html.ep index 529bbe6..c9586ac 100644 --- a/templates/webmail/readmail.html.ep +++ b/templates/webmail/readmail.html.ep @@ -1,14 +1,14 @@ % layout 'mainlayout'; -
+
-

Read Mail

+

Read Mail

%= $v->format_mail($msg) diff --git a/templates/webmail/writemail.html.ep b/templates/webmail/writemail.html.ep index 9d148c1..95b9cf8 100644 --- a/templates/webmail/writemail.html.ep +++ b/templates/webmail/writemail.html.ep @@ -1,47 +1,80 @@ % layout 'mainlayout'; -
+
-

Write Message

+

Write Message

% if (my $msg = stash('warning')) { -

<%= $msg %>

+

<%= $msg %>

% } - %= form_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (class => 'pure-form pure-form-stacked') => 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' - - %= label_for txt => ucfirst l 'content' - %# text_area body => (cols => 80) => (rows => 24) => (name => 'txt') - %= text_area body => (style => 'width: 100%') => (rows => 24) => (name => 'txt') - - %= label_for attach => ucfirst l 'attach file' - %= file_field 'attach' - - %= submit_button l('send') => (class => 'pure-button pure-button-primary') + %= form_for '' => (method => 'post') => (enctype => 'multipart/form-data') => (class => '') => begin + +
+ %= label_for mail => ucfirst l('send_to') => (class => 'label') +
+ %= email_field 'to' => (id => 'mail') => (multiple => '') => (required => '') => (class => 'input') +
+
+ +
+ %= label_for subject => ucfirst l('subject') => (class => 'label') +
+ %= text_field 'subject' => (required => '') => (class => 'input') +
+
+ +
+ %= label_for cc => 'CC' => (class => 'label') +
+ %= email_field 'cc' => (multiple => '') => (class => 'input') +
+
+ +
+ %= label_for bcc => 'BCC' => (class => 'label') +
+ %= email_field 'bcc' => (multiple => '') => (class => 'input') +
+
+ +
+ %= label_for back_to => ucfirst l('answer_to') => (class => 'label') +
+ %= email_field 'back_to' => (class => 'input') +
+
+ +
+ %= label_for txt => ucfirst l('content') => (class => 'label') + %= text_area body => (rows => 24) => (name => 'txt') => (class => 'textarea') +
+ +
+
+ +
+
+ +
+
+ %= submit_button l('send') => (class => 'button') +
+
%= csrf_field -
% end
-- cgit v1.2.3