diff options
author | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-01 22:35:48 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de> | 2022-05-01 22:35:48 +0200 |
commit | ebe37a68d39dbc1cc4f6af1c05301d5a5fc29c13 (patch) | |
tree | 0cead85194cb0d775b024132f4d29b55d6d854e0 /templates/webmail/login.html.ep | |
parent | 72ae9b3f63ddbe296f3e4e8f8db2d29303163d68 (diff) |
mostly renamed 'noaction' to 'login'
be carefult with GET vs POST
Diffstat (limited to 'templates/webmail/login.html.ep')
-rw-r--r-- | templates/webmail/login.html.ep | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/webmail/login.html.ep b/templates/webmail/login.html.ep new file mode 100644 index 0000000..4b2da5d --- /dev/null +++ b/templates/webmail/login.html.ep @@ -0,0 +1,60 @@ +% layout 'mainlayout'; + +<table id=noaction> + <thead> + <tr> + <th id=top-section> JWebmail – <%= ucfirst l 'login' %> </th> + </tr> + </thead> + + <tbody> +% if (my $msg = flash('message') || stash('warning')) { + <tr> + <td class="warning flash-fade"> + %= $msg + <td> + </tr> +% } + + <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> + + </tbody> +</table> + +%= javascript begin + if (!document.login1.userid.value) { + document.login1.userid.focus(); + } else { + document.login1.password.focus(); + } +% end |