Debian Codegraph @

webapp/graphite/templates/login.html

raw
1 <!-- Copyright 2008 Orbitz WorldWide
2
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License. -->
14 <body onload="document.forms[0].username.focus();">
15
16 <center>
17
18 {% if authenticationFailed %}
19 <div style='color: red'>
20 <h3>Authentication attempt failed, please make sure you entered your login and password correctly<br>
21 </h3>
22 </div>
23 {% endif %}
24
25 {% if accountDisabled %}
26 <div class='color: red'>
27 <h3>Your account is <b>disabled</b>, please contact your site administrator.</h3>
28 </div>
29 {% endif %}
30
31 <form method='POST' action="{% url "account_login" %}">
32 {% if nextPage %}
33 <input type='hidden' name='nextPage' value='{{nextPage}}'/>
34 {% endif %}
35 <table>
36 <tr> <th colspan='2'>login</th> </tr>
37 <tr> <td align='left'>username</td> <td align='left'><input type='text' name='username' class='textInput'></td> </tr>
38 <tr> <td align='left'>password</td> <td align='left'><input type='password' name='password' class='textInput'></td> </tr>
39 <tr> <td colspan='2' align='center'> <input type='submit' class='buttonInput' value='login'> </td> </tr>
40 </table>
41 </form>
42 </center>