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/login.html.ep | 67 ++++++++++++++++++++++++++++++----------- 1 file changed, 49 insertions(+), 18 deletions(-) (limited to 'templates/webmail/login.html.ep') 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' -- cgit v1.2.3