diff options
| author | Cezar Pendarovski | 2014-09-05 11:06:30 +0200 |
|---|---|---|
| committer | Cezar Pendarovski | 2014-09-05 11:06:30 +0200 |
| commit | 34b3ee9ea1d9c6f389424186c446dbfa8b9a58c6 (patch) | |
| tree | ee1efe902b786f074a3a10bd28fbd5ccdf085a11 /rest_framework | |
| parent | d3ee26ba9972619bdbe191b7d90d4dd60fb65983 (diff) | |
| download | django-rest-framework-34b3ee9ea1d9c6f389424186c446dbfa8b9a58c6.tar.bz2 | |
Place general error message in well
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/templates/rest_framework/login_base.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rest_framework/templates/rest_framework/login_base.html b/rest_framework/templates/rest_framework/login_base.html index fb355d52..582a7f27 100644 --- a/rest_framework/templates/rest_framework/login_base.html +++ b/rest_framework/templates/rest_framework/login_base.html @@ -24,8 +24,9 @@ <div class="controls"> <Label class="span4">Username:</label> <input style="height: 25px" type="text" name="username" maxlength="100" - autocapitalize="off" autocorrect="off" class="textinput textInput" - id="id_username" + autocapitalize="off" + autocorrect="off" class="span12 textinput textInput" + id="id_username" required {% if form.username.value %}value="{{ form.username.value }}"{% endif %}> {% if form.username.errors %} <p class="text-error"> @@ -39,8 +40,8 @@ <div class="controls"> <Label class="span4">Password:</label> <input style="height: 25px" type="password" name="password" maxlength="100" - autocapitalize="off" autocorrect="off" class="textinput textInput" - id="id_password"> + autocapitalize="off" autocorrect="off" class="span12 textinput textInput" + id="id_password" required> {% if form.password.errors %} <p class="text-error"> {{ form.password.errors|striptags }} @@ -51,7 +52,7 @@ <input type="hidden" name="next" value="{{ next }}" /> {% if form.non_field_errors %} {% for error in form.non_field_errors %} - <div class="text-error" style="margin: 10px 0">{{ error }}</div> + <div class="well well-small text-error">{{ error }}</div> {% endfor %} {% endif %} <div class="form-actions-no-box"> |
