mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Place general error message in well
This commit is contained in:
parent
d3ee26ba99
commit
34b3ee9ea1
|
@ -24,8 +24,9 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<Label class="span4">Username:</label>
|
<Label class="span4">Username:</label>
|
||||||
<input style="height: 25px" type="text" name="username" maxlength="100"
|
<input style="height: 25px" type="text" name="username" maxlength="100"
|
||||||
autocapitalize="off" autocorrect="off" class="textinput textInput"
|
autocapitalize="off"
|
||||||
id="id_username"
|
autocorrect="off" class="span12 textinput textInput"
|
||||||
|
id="id_username" required
|
||||||
{% if form.username.value %}value="{{ form.username.value }}"{% endif %}>
|
{% if form.username.value %}value="{{ form.username.value }}"{% endif %}>
|
||||||
{% if form.username.errors %}
|
{% if form.username.errors %}
|
||||||
<p class="text-error">
|
<p class="text-error">
|
||||||
|
@ -39,8 +40,8 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<Label class="span4">Password:</label>
|
<Label class="span4">Password:</label>
|
||||||
<input style="height: 25px" type="password" name="password" maxlength="100"
|
<input style="height: 25px" type="password" name="password" maxlength="100"
|
||||||
autocapitalize="off" autocorrect="off" class="textinput textInput"
|
autocapitalize="off" autocorrect="off" class="span12 textinput textInput"
|
||||||
id="id_password">
|
id="id_password" required>
|
||||||
{% if form.password.errors %}
|
{% if form.password.errors %}
|
||||||
<p class="text-error">
|
<p class="text-error">
|
||||||
{{ form.password.errors|striptags }}
|
{{ form.password.errors|striptags }}
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
<input type="hidden" name="next" value="{{ next }}" />
|
||||||
{% if form.non_field_errors %}
|
{% if form.non_field_errors %}
|
||||||
{% for error in 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 %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="form-actions-no-box">
|
<div class="form-actions-no-box">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user