summaryrefslogtreecommitdiff
path: root/templates/webmail/login.html.ep
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-03 18:22:43 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-03 18:22:43 +0200
commita6e6f8be88a93699765f25aee0e6109a3eb0b307 (patch)
treec4ba131bdf3af616ff70072876d384924bf408ce /templates/webmail/login.html.ep
parentebe37a68d39dbc1cc4f6af1c05301d5a5fc29c13 (diff)
reworked templates based on purecss
Diffstat (limited to 'templates/webmail/login.html.ep')
-rw-r--r--templates/webmail/login.html.ep69
1 files changed, 24 insertions, 45 deletions
diff --git a/templates/webmail/login.html.ep b/templates/webmail/login.html.ep
index 4b2da5d..3e224a8 100644
--- a/templates/webmail/login.html.ep
+++ b/templates/webmail/login.html.ep
@@ -1,55 +1,34 @@
% layout 'mainlayout';
-<table id=noaction>
- <thead>
- <tr>
- <th id=top-section> JWebmail – <%= ucfirst l 'login' %> </th>
- </tr>
- </thead>
+<div id=login class="jwm-base">
+
+ <h1>
+ JWebmail – <%= ucfirst l 'login' %>
+ </h1>
- <tbody>
% if (my $msg = flash('message') || stash('warning')) {
- <tr>
- <td class="warning flash-fade">
- %= $msg
- <td>
- </tr>
+ <p class="jwm-warning">
+ %= $msg
+ </p>
% }
- <tr>
- <td class=login-form>
- %= form_for login => (name => 'login1') => (method => 'post') => begin
-
- <table>
- <tr>
- <td class=label-cell>
- %= label_for userid => ucfirst l 'userid'
- </td>
- <td>
- %= text_field 'userid'
- </td>
- </tr>
- <tr>
- <td class=label-cell>
- %= label_for password => ucfirst l 'passwd'
- </td>
- <td>
- %= password_field 'password'
- </td>
- </tr>
- <tr class=submit-row>
- <td colspan=2>
- %= submit_button l 'login'
- </td>
- </tr>
- </table>
-
- % end
- </td>
- </tr>
+ %= form_for login => (name => 'login1') => (method => 'post') => (class => 'pure-form pure-form-aligned jwm-round') => begin
+ <fieldset>
+ <div class="pure-control-group">
+ %= label_for userid => ucfirst l 'userid'
+ %= text_field 'userid' => '' => (required => '')
+ </div>
+ <div class="pure-control-group">
+ %= label_for password => ucfirst l 'passwd'
+ %= password_field 'password' => (required => '')
+ </div>
+ <div class="pure-controls">
+ %= submit_button l('login') => (class => 'pure-button pure-button-primary')
+ </div>
+ </fieldset>
+ % end
- </tbody>
-</table>
+</div>
%= javascript begin
if (!document.login1.userid.value) {