diff options
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 |