Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
d3ee26ba
Commit
d3ee26ba
authored
Sep 05, 2014
by
Cezar Pendarovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change bootstrap class warning to error
parent
6106701c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
rest_framework/templates/rest_framework/login_base.html
+5
-5
No files found.
rest_framework/templates/rest_framework/login_base.html
View file @
d3ee26ba
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<form
action=
"{% url 'rest_framework:login' %}"
role=
"form"
method=
"post"
>
<form
action=
"{% url 'rest_framework:login' %}"
role=
"form"
method=
"post"
>
{% csrf_token %}
{% csrf_token %}
<div
id=
"div_id_username"
<div
id=
"div_id_username"
class=
"clearfix control-group {% if form.username.errors %}
warning
{% endif %}"
>
class=
"clearfix control-group {% if form.username.errors %}
error
{% endif %}"
>
<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"
...
@@ -28,21 +28,21 @@
...
@@ -28,21 +28,21 @@
id=
"id_username"
id=
"id_username"
{%
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-
warning"
style=
"margin-top: 10px
"
>
<p
class=
"text-
error
"
>
{{ form.username.errors|striptags }}
{{ form.username.errors|striptags }}
</p>
</p>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
<div
id=
"div_id_password"
<div
id=
"div_id_password"
class=
"clearfix control-group {% if form.password.errors %}
warning
{% endif %}"
>
class=
"clearfix control-group {% if form.password.errors %}
error
{% endif %}"
>
<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=
"textinput textInput"
id=
"id_password"
>
id=
"id_password"
>
{% if form.password.errors %}
{% if form.password.errors %}
<p
class=
"text-
warning"
style=
"margin-top: 10px
"
>
<p
class=
"text-
error
"
>
{{ form.password.errors|striptags }}
{{ form.password.errors|striptags }}
</p>
</p>
{% endif %}
{% endif %}
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,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-
warning
"
style=
"margin: 10px 0"
>
{{ error }}
</div>
<div
class=
"text-
error
"
style=
"margin: 10px 0"
>
{{ error }}
</div>
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
<div
class=
"form-actions-no-box"
>
<div
class=
"form-actions-no-box"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment