Tom Christie
d76e83dd78
Tweaks, and add pagination controls for offset/limit.
2015-01-15 16:52:07 +00:00
Tom Christie
3833a5bb8a
Include pagination control in browsable API
2015-01-14 16:51:26 +00:00
Andrew Seier
35768344db
Remove ‘/‘ from inside variable block {{ }}
...
manage.py compress —force causes a warning here.
2014-12-23 12:12:22 -08:00
Andrew Seier
399cb165b0
Remove commented code (warning during compression)
...
manage.py compress —force causes a warning here.
2014-12-23 12:11:45 -08:00
José Padilla
afe7ed9333
Add allow_blank for ChoiceField #2184
...
This makes a ChoiceField optional in HTML if
model field has `blank=True` set.
2014-12-09 09:25:06 -04:00
Loic Bistuer
b90f4228b2
Ported a couple of templates to Bootstrap 3.x.
2014-12-08 09:06:52 +07:00
Tom Christie
ecc26f6cb1
Style tweaks to login template.
2014-11-25 09:07:25 +00:00
Tom Christie
735d2257b4
Merge branch 'master' of https://github.com/tomchristie/django-rest-framework
2014-11-25 08:59:59 +00:00
Tom Christie
bdacb66244
Lowercase HTML label tag. Refs #2121 .
2014-11-25 08:59:45 +00:00
Andreas Bernacca
2ec0e7417f
removed the whole footer section
2014-11-21 22:45:28 +01:00
Andreas Bernacca
fe9a758d7e
remove sponsored by dabapps
2014-11-21 22:15:43 +01:00
Tom Christie
6ec96d0bac
Resolve PUT and POST buttons in browsable API
2014-11-20 13:43:38 +00:00
Tom Christie
9c6bead8b6
Add --- null option for selects. Closes #2096 .
2014-11-20 12:38:08 +00:00
Tom Christie
f573aaee4e
List serializer no explicitly renders as 'not supported for HTML input'
2014-11-18 17:25:05 +00:00
Tom Christie
5f580cad52
Remove class='form-control' for file inputs. Closes #2065 .
2014-11-17 18:17:44 +00:00
Tom Christie
02844a1507
Fix up fieldset templates. Closes #2039
2014-11-07 15:22:17 +00:00
Tom Christie
159c3de9fc
Merge master
2014-10-31 15:19:15 +00:00
Tom Christie
45b5f23f31
Update to bootstrap 3. Closes #1085
2014-10-31 14:56:41 +00:00
Tom Christie
e8ea365c15
Moar form styling
2014-10-15 15:11:01 +01:00
Tom Christie
36fbc7678c
Moar form styling
2014-10-15 13:35:12 +01:00
Tom Christie
cc1c423255
Reorganize to use template_pack in form rendering
2014-10-15 11:12:34 +01:00
Tom Christie
e558f806c0
Drop template includes
2014-10-15 10:04:01 +01:00
Tom Christie
a0e852a4d5
Use BoundField .name on fields
2014-10-09 16:30:06 +01:00
Tom Christie
5d247a65c8
First pass on nested serializers in HTML
2014-10-09 15:11:19 +01:00
Tom Christie
df7b6fcf58
First pass on incorperating the form rendering into the browsable API
2014-10-02 16:24:24 +01:00
Tom Christie
ffc6aa3abc
More forms support
2014-10-01 21:35:27 +01:00
Tom Christie
c171fa21ac
First pass at HTML form rendering
2014-10-01 19:44:46 +01:00
Anton D. Kachalov
802913d5e4
[templates/rest_framework/base.html] Separate object-form' and
generic-content-form' IDs for POST and PUT forms
...
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2014-09-26 16:07:46 +04:00
Tom Christie
7dce364a35
Merge pull request #1829 from cezar77/login-form-errors
...
Display validation errors on login form
2014-09-05 12:59:26 +01:00
Cezar Pendarovski
2531b5cd86
Remove light gray bordering from the well with general message error
2014-09-05 13:28:47 +02:00
Cezar Pendarovski
34b3ee9ea1
Place general error message in well
2014-09-05 11:06:30 +02:00
Cezar Pendarovski
d3ee26ba99
Change bootstrap class warning to error
2014-09-05 10:55:49 +02:00
Cezar Pendarovski
6106701c06
Input fields get hightlighted if login fails and username is persisted
2014-09-05 09:38:54 +02:00
Cezar Pendarovski
3bc858c30b
General message error goes above submit button
2014-09-04 17:51:45 +02:00
Cezar Pendarovski
ea259e8bde
Error messages are displayed below the input fields
2014-09-04 16:01:27 +02:00
Cezar Pendarovski
d56efb8f82
Display validation errors on login form
2014-09-04 15:26:00 +02:00
Carlton Gibson
4947303f20
Moved li tags inside optional_login
...
as per https://github.com/tomchristie/django-rest-framework/pull/1820#discussion_r16987993
2014-09-03 09:54:36 +02:00
Carlton Gibson
fa0ef17737
Remove Login Dropdown when Auth Views are not registered.
...
Fixes #1738
2014-09-02 14:53:37 +02:00
Daniel Roseman
b554c67d14
Restore body block to base template.
2014-08-30 13:28:12 +01:00
Cezar Pendarovski
5380889275
Validation errors in the rendered HTML fixed
2014-08-28 10:39:01 +02:00
Cezar Pendarovski
e5d88a80a9
Put all TextNodes (method names) back to same line with parent element
2014-08-27 09:41:33 +02:00
Cezar Pendarovski
f6cbd88618
Merge remote-tracking branch 'upstream/master' into fix-1719
...
Conflicts:
rest_framework/templates/rest_framework/base.html
2014-08-25 17:28:22 +02:00
Cezar Pendarovski
1e2bd1294e
Fixed the issue with the non-draggable horizontal scrollbar
2014-08-22 09:53:03 +02:00
Tom Christie
e385a7b8eb
Merge master
2014-08-19 10:11:10 +01:00
Tom Christie
c092b4df78
Merge pull request #1641 from javins/login-title
...
Refactor login template to extend base.
2014-08-18 20:28:34 +01:00
Jason Alan Palmer
2d6469348d
Remove duplicate class attributes
...
These duplicate attributes are ignored by at least Firefox and Chrome, so this change has no effect on the style
2014-08-05 10:25:48 -04:00
Walt Javins
b4c7717cb8
Refactor login template to extend base.
...
While experimenting with extending DRF, I found that the login page
1) had no title, and 2) duplicated <head> info from base.html.
This change adds a new {% block body %} to the base.html template
which allows override of the entire html <body>. login_base.html
has its duplicated head info stripped, and now extends base.html
to share common html <head> templating.
As part of this change, pretify.css is unnecessarily added to
login_base.html. If this is deemed a problem, it will be easy to
block that css out, and have login_base.html override the block.
Ideally, I would have liked to create a new api_base.html that extends
base.html, move the api specific logic into that template, and leave
base.html content agnostic, to truely be a unifying base for all DRF
pages. But this change would break current apps that override
api.html and expect base.html to be the immediate super template. :/
This change is benificial because it:
- removes duplication of header declarations (mostly css includes)
- adds a html title to the login page
- standardizes html header info across all DRF pages
Docs are updated to reflect the new structure.
2014-06-13 22:26:00 -07:00
Xavier Ordoquy
d08536ad9d
Merge remote-tracking branch 'origin/master' into 2.4.0
...
Conflicts:
.travis.yml
docs/api-guide/fields.md
docs/api-guide/routers.md
docs/topics/release-notes.md
rest_framework/authentication.py
rest_framework/serializers.py
rest_framework/templatetags/rest_framework.py
rest_framework/tests/test_authentication.py
rest_framework/tests/test_filters.py
rest_framework/tests/test_hyperlinkedserializers.py
rest_framework/tests/test_serializer.py
rest_framework/tests/test_testing.py
rest_framework/utils/encoders.py
tox.ini
2014-04-13 00:05:57 +02:00
Keats
6cd0394e20
Display the media type of the API response on the browsable API
2014-02-26 23:47:35 +00:00
Tom Christie
78494401c5
Use www.django-rest-framework.org for docs instead of django-rest-framework.org due to issues with naked domains
2014-01-08 15:22:41 +00:00
Tom Christie
e3ae33017d
Added "nofollow" against docs link.
2014-01-06 15:01:45 +00:00
Tom Christie
9c41c007af
Merge branch 'master' into 2.4.0
...
Conflicts:
.travis.yml
docs/api-guide/routers.md
docs/topics/release-notes.md
rest_framework/compat.py
2013-12-13 16:32:34 +00:00
Jakub Roztočil
be55a3c5c7
Removed commented-out credits from footer to make django-debug-toolbar work.
...
The comment, although valid, caused that the Django debug toolbar's injected HTML was partially commented-out and thus the toolbar didn't work as expected.
2013-10-24 17:53:02 +02:00
Omer Katz
d31fd33f4b
Allow to customize description so that markup can be accepted if needed.
2013-10-16 09:15:02 -04:00
Tom Christie
8d4ba478cc
Fix rendering of forms and add error rendering on HTML form
2013-10-02 16:13:34 +01:00
Tom Christie
a14f1e8864
Serializers can now be rendered directly to HTML
2013-10-02 13:45:35 +01:00
Tom Christie
e441f85109
Drop 1.3 support
2013-09-25 10:30:04 +01:00
Tai Lee
a9dbd46c94
Refs #1109 -- Update docs. Integrate changes from feedback.
2013-09-14 00:54:44 +10:00
Tai Lee
bb3261ca48
Fixed #1105 -- Add hook for custom context in BrowsableAPIRenderer
.
...
Replace hard coded response status check with `allow_form` context
variable, so that it can be overridden in a custom renderer class.
2013-09-13 23:11:44 +10:00
Tom Christie
44f8d1bef2
Fix tab preferences on PUT forms
2013-08-29 20:38:55 +01:00
Tom Christie
1fa2d823cc
Preserve tab preference in cookies.
2013-08-29 20:35:59 +01:00
Tom Christie
0966a2680b
First pass at HTMLFormRenderer
2013-08-23 14:38:31 +01:00
Yuri Prezument
cd5f1bb229
Fix PATCH button title in template
2013-08-12 15:44:00 +03:00
Tom Christie
cdc3c37465
Merge and styling fixes
2013-05-21 12:01:56 +01:00
Mark McArdle
611919aa0a
Initial commit of fix for https://github.com/tomchristie/django-rest-framework/issues/775
2013-05-18 13:10:05 +01:00
James Summerfield
5074bbe4b2
Remove trailing unmatched </div> in login_base.html template. Reformat indentation and label all closing tags for consistency.
2013-05-13 07:51:23 +02:00
forgingdestiny
03c736338f
extend base login template
2013-04-17 10:15:02 -04:00
forgingdestiny
33f494fcc8
add branding and style blocks
2013-04-17 10:14:36 -04:00
glic3rinu
92b5db5939
Added break_long_headers on templatetags and base template
2013-04-04 12:11:04 +02:00
Tom Christie
048ef6a039
Polishing touches to #663
2013-02-22 08:39:26 +00:00
Michael Elovskikh
2fb6fa2dd3
Minimal forms appearance improvements
2013-02-20 17:15:12 +06:00
Michael Elovskikh
533e472352
Added tabs between object form and generic content form on POST form
2013-02-15 18:25:36 +06:00
Michael Elovskikh
3195f72784
POST form using new form.html template
2013-02-15 16:39:24 +06:00
Michael Elovskikh
8fdf925015
Added tabs between object form and generic content form on PUT/PATCH form
...
Some extra behaviour to `BrowsableAPIRenderer` to handle PATCH form.
Added PATCH button on generic content PUT form.
Tabs between object form and generic content form on PUT/PATCH form wich are
both allways visible now.
Fix #570
Refs #591
2013-02-15 14:41:12 +06:00
Tom Christie
4788c87b76
Fix mismatch between template blocks and docs.
...
Fixes #639 .
2013-02-06 12:35:05 +00:00
Michael Elovskikh
cb5cc70cba
Login page styles fix. Closes #618 . Made with 🍪
2013-01-28 18:01:44 +06:00
Johannes Spielmann
e67b23f1ac
correcting template: closing tag was missing
2013-01-15 13:46:41 +01:00
Sebastien Beal
b1e6b58c97
missing rest_framework templatetags for statics in login template
2012-12-30 13:24:05 +09:00
Tom Christie
acdb69be52
Include 'static' template tag to enable 1.3 compatible staticfiles behaviour
2012-12-28 12:36:28 +00:00
Roman Akinfold
5ae7786930
Replace get_static_prefix templatetag with static
...
so now static files urls in html view are correct if we use cloud
storage to serve static files
2012-12-27 05:35:03 +08:00
Tom Christie
36e21153fb
Merge master
2012-11-01 23:11:28 +00:00
Tom Christie
d327c5f531
Relational field support in browseable API.
...
Add slug relational fields.
Add quickstart.
2012-11-01 23:04:13 +00:00
Tom Christie
ee8ab283f0
Style tweaks
2012-10-29 14:41:33 +00:00
Tom Christie
dfcb560f8f
Fix up login styling
2012-10-29 13:57:46 +00:00
Tom Christie
94401b43d2
Flesh out quickstart guide and make some style tweaks
2012-10-09 13:50:26 +01:00
Tom Christie
7c4d50f621
Fix browseable API form display error for authenticated permissions
2012-10-09 12:48:49 +01:00
Tom Christie
115e61be09
Added quickstart guide
2012-10-09 12:01:17 +01:00
Max Hurl
101f06b50b
Added dabapps styling to html api
2012-10-05 17:00:24 +01:00
Tom Christie
a02707e12f
Tweaks
2012-10-03 21:08:32 +01:00
Tom Christie
92b091ea16
Tweak styling of browseable API
2012-10-03 16:19:07 +01:00
Tom Christie
ee36e4ab0c
Only display forms when user has permissions. #159
2012-09-27 21:51:46 +01:00
Tom Christie
758bcf5b1e
Tweak browseable API
2012-09-25 13:35:41 +01:00
Tom Christie
d9cba6398e
Clean up bits of templates etc
2012-09-20 17:44:34 +01:00
Tom Christie
5a82aa9726
Clean up template tags
2012-09-20 13:42:46 +01:00
Tom Christie
4b691c4027
Change package name: djangorestframework -> rest_framework
2012-09-20 13:06:27 +01:00