summaryrefslogtreecommitdiff
path: root/templates/webmail/noaction.html.ep
blob: 54a8106a6b1e98706fd448bbd0dd4f36b9fd49aa (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 method=post name=login1 action="<%= url_for('login') %>">

          <table>
            <tr>
              <td class=label-cell>
                <label for=userid><%= ucfirst l 'userid' %></label>:
              </td> 
              <td> 
                %= text_field 'userid'
              </td>
            </tr>
            <tr>
              <td class=label-cell> 
                <label for=password><%= ucfirst l 'passwd' %></label>:
              </td> 
              <td> 
                %= password_field 'password'
              </td> 
            </tr>
            <tr class=submit-row>
              <td colspan=2> 
                <input type=submit value="<%= l 'login' %>">
              </td> 
            </tr>
          </table>

        </form>
      </td>
    </tr>

  </tbody>
</table>

%= javascript begin
  if (!document.login1.userid.value) {
    document.login1.userid.focus();
  } else {
    document.login1.password.focus();
  }
% end