|
21 | 21 | {% csrf_token %}
|
22 | 22 | <div id="div_id_username"
|
23 | 23 | class="clearfix control-group {% if form.username.errors %}error{% endif %}">
|
24 |
| - <div class="controls"> |
25 |
| - <label class="span4">Username:</label> |
26 |
| - <input style="height: 25px" type="text" name="username" maxlength="100" |
| 24 | + <div class="form-group"> |
| 25 | + <label for="id_username">Username:</label> |
| 26 | + <input type="text" name="username" maxlength="100" |
27 | 27 | autocapitalize="off"
|
28 |
| - autocorrect="off" class="span12 textinput textInput" |
| 28 | + autocorrect="off" class="form-control textinput textInput" |
29 | 29 | id="id_username" required
|
30 | 30 | {% if form.username.value %}value="{{ form.username.value }}"{% endif %}>
|
31 | 31 | {% if form.username.errors %}
|
|
36 | 36 | </div>
|
37 | 37 | </div>
|
38 | 38 | <div id="div_id_password"
|
39 |
| - class="clearfix control-group {% if form.password.errors %}error{% endif %}" |
40 |
| - style="margin-top: 10px"> |
41 |
| - <div class="controls"> |
42 |
| - <label class="span4">Password:</label> |
43 |
| - <input style="height: 25px" type="password" name="password" maxlength="100" |
44 |
| - autocapitalize="off" autocorrect="off" class="span12 textinput textInput" |
| 39 | + class="clearfix control-group {% if form.password.errors %}error{% endif %}"> |
| 40 | + <div class="form-group"> |
| 41 | + <label for="id_password">Password:</label> |
| 42 | + <input type="password" name="password" maxlength="100" |
| 43 | + autocapitalize="off" autocorrect="off" class="form-control textinput textInput" |
45 | 44 | id="id_password" required>
|
46 | 45 | {% if form.password.errors %}
|
47 | 46 | <p class="text-error">
|
|
56 | 55 | <div class="well well-small text-error" style="border: none">{{ error }}</div>
|
57 | 56 | {% endfor %}
|
58 | 57 | {% endif %}
|
59 |
| - <div class="form-actions-no-box" style="margin-top: 20px"> |
60 |
| - <input type="submit" name="submit" value="Log in" class="btn btn-primary" id="submit-id-submit"> |
| 58 | + <div class="form-actions-no-box"> |
| 59 | + <input type="submit" name="submit" value="Log in" class="btn btn-primary form-control" id="submit-id-submit"> |
61 | 60 | </div>
|
62 | 61 | </form>
|
63 | 62 | </div>
|
|
0 commit comments