blob: 2608bdab89a58125fded5fb1e33ef3645bd70f8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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') => 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
|