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
b90f4228
Commit
b90f4228
authored
Dec 03, 2014
by
Loic Bistuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ported a couple of templates to Bootstrap 3.x.
parent
ff02a0af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
16 deletions
+15
-16
rest_framework/templates/rest_framework/login_base.html
+11
-12
rest_framework/templates/rest_framework/raw_data_form.html
+4
-4
No files found.
rest_framework/templates/rest_framework/login_base.html
View file @
b90f4228
...
...
@@ -21,11 +21,11 @@
{% csrf_token %}
<div
id=
"div_id_username"
class=
"clearfix control-group {% if form.username.errors %}error{% endif %}"
>
<div
class=
"
controls
"
>
<label
class=
"span4
"
>
Username:
</label>
<input
style=
"height: 25px"
type=
"text"
name=
"username"
maxlength=
"100"
<div
class=
"
form-group
"
>
<label
for=
"id_username
"
>
Username:
</label>
<input
type=
"text"
name=
"username"
maxlength=
"100"
autocapitalize=
"off"
autocorrect=
"off"
class=
"
span12
textinput textInput"
autocorrect=
"off"
class=
"
form-control
textinput textInput"
id=
"id_username"
required
{%
if
form
.
username
.
value
%}
value=
"{{ form.username.value }}"
{%
endif
%}
>
{% if form.username.errors %}
...
...
@@ -36,12 +36,11 @@
</div>
</div>
<div
id=
"div_id_password"
class=
"clearfix control-group {% if form.password.errors %}error{% endif %}"
style=
"margin-top: 10px"
>
<div
class=
"controls"
>
<label
class=
"span4"
>
Password:
</label>
<input
style=
"height: 25px"
type=
"password"
name=
"password"
maxlength=
"100"
autocapitalize=
"off"
autocorrect=
"off"
class=
"span12 textinput textInput"
class=
"clearfix control-group {% if form.password.errors %}error{% endif %}"
>
<div
class=
"form-group"
>
<label
for=
"id_password"
>
Password:
</label>
<input
type=
"password"
name=
"password"
maxlength=
"100"
autocapitalize=
"off"
autocorrect=
"off"
class=
"form-control textinput textInput"
id=
"id_password"
required
>
{% if form.password.errors %}
<p
class=
"text-error"
>
...
...
@@ -56,8 +55,8 @@
<div
class=
"well well-small text-error"
style=
"border: none"
>
{{ error }}
</div>
{% endfor %}
{% endif %}
<div
class=
"form-actions-no-box"
style=
"margin-top: 20px"
>
<input
type=
"submit"
name=
"submit"
value=
"Log in"
class=
"btn btn-primary"
id=
"submit-id-submit"
>
<div
class=
"form-actions-no-box"
>
<input
type=
"submit"
name=
"submit"
value=
"Log in"
class=
"btn btn-primary
form-control
"
id=
"submit-id-submit"
>
</div>
</form>
</div>
...
...
rest_framework/templates/rest_framework/raw_data_form.html
View file @
b90f4228
...
...
@@ -2,10 +2,10 @@
{% csrf_token %}
{{ form.non_field_errors }}
{% for field in form %}
<div
class=
"
control
-group"
>
{{ field.label_tag|add_class:"control-label" }}
<div
class=
"co
ntrols
"
>
{{ field }}
<div
class=
"
form
-group"
>
{{ field.label_tag|add_class:"co
l-sm-2 co
ntrol-label" }}
<div
class=
"co
l-sm-10
"
>
{{ field
|add_class:"form-control"
}}
<span
class=
"help-block"
>
{{ field.help_text }}
</span>
</div>
</div>
...
...
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