Tom Christie
68d2020112
Live API documentation ( #4755 )
2017-03-03 15:24:37 +00:00
Tim Watts
8df340908b
Add failing tests and fix for dict that have a key items
#4931 ( #4932 )
2017-03-03 09:23:09 +00:00
Ekwenugo Mirabel
217a81f19b
Use correct label for username field in login template ( #4841 )
2017-01-24 09:07:32 +00:00
James Beith
befacfb00d
Add autofocus support for input.html templates ( #4650 )
...
This change adds support to use `'autofocus': True` in the style options and have the `autofocus` attribute included on the input field when rendered.
2016-11-07 11:34:53 +00:00
Alex Kahan
895c67c9a2
Fixes #4532 ( #4636 )
2016-10-31 20:41:54 +00:00
Tanner Hobson
fe4c4fa751
Fix indentation regression in API listing ( #4493 )
...
In commit 5392be4ddb
, there was a change
made when cleaning up the template for the API listing that caused 2
spaces to appear before every header item (except the first) and before
the first line of the body of the response. This meant that it often
looked like:
HTTP 200 OK
Allow: GET, OPTIONS
Content-Type: application/json
Vary: Accept
{
"key": "value",
"key2": "value2"
}
This change removes those leading spaces, so that it will now look like:
HTTP 200 OK
Allow: GET, OPTIONS
Content-Type: application/json
Vary: Accept
{
"key": "value",
"key2": "value2"
}
2016-09-17 03:09:49 +01:00
José Padilla
6b6f319509
Add missing comma ( #4473 )
2016-09-08 14:01:26 +01:00
Tom Christie
97806f9724
Add missing comma
2016-08-23 09:46:03 +01:00
Tom Christie
b76984d222
Allow custom CSRF_HEADER_NAME setting. ( #4415 )
2016-08-18 11:24:03 +01:00
James Beith
075a0bde5a
Fix template syntax error for as_list_of_strings
( #4403 )
2016-08-15 09:28:46 +01:00
Tom Christie
8105a4ac5a
Resolve form display with ChoiceField, MultipleChoiceField and non-string choices. ( #4374 )
...
* Add tests for html-form-rendering choice fields
* Resolve issues with ChoiceField, MultipleChoiceField and non-string options
* Ensure None template comparisons don't match string None
2016-08-10 12:02:33 +01:00
Sergei Sinitsyn
94863ee6d0
Change serializer field help_text rendering in browsable api ( #3812 )
2016-06-02 15:21:57 +01:00
Asif Saifuddin Auvi
b92901e591
updated jquery version to 1.12.4 ( #4157 )
...
Updated jquery version to 1.12.4
2016-06-01 15:33:36 +01:00
José Padilla
5392be4ddb
Spring cleaning template styles ( #4124 )
2016-05-16 09:27:10 +01:00
Clinton Blackburn
9d9658f128
Added support for custom CSRF cookie names
...
Instead of hardcoding the CSRF cookie name, the value is passed to the template as a context variable, rendered as a JavaScript variable, and read by csrf.js.
Fixes #4048
2016-04-11 23:58:55 -04:00
blag
89d575a52a
Remove version string from admin template
2016-02-09 05:56:47 -07:00
blag
d2ca8872c0
Remove version string from base template
2016-02-08 22:36:39 -07:00
Mikalai Radchuk
59ab3a291c
Fixes vertical html layout for BooleanField
...
`HTMLFormRenderer` renders `BooleanField` field as not checked if vertical layout are used.
2016-02-08 17:07:16 +03:00
Xavier Ordoquy
328000fb34
Merge pull request #3624 from d6bels/master
...
Login form autofocus
2016-01-20 18:21:03 +01:00
Xavier Ordoquy
e7fbd264ca
Merge pull request #3703 from sniegu/master
...
Add missing csrf_token in AdminRenderer post form.
2016-01-19 16:58:39 +01:00
Michael Lissner
f15026be10
Fixes #3756 , adding the name to the HTML title, if it exists.
2015-12-22 10:31:18 -08:00
Piotr Śniegowski
2faa7bc288
Add missing csrf_token in AdminRenderer post form.
2015-12-04 23:23:56 +01:00
Adam Wester
6d1ed851b5
#3228 - add confirm modal for delete
2015-12-01 07:51:29 -05:00
Xavier Ordoquy
edc5a79b85
Merge pull request #3497 from Ins1ne/feature/3340
...
update docs about detail page link for AdminRenderer
2015-11-18 17:38:07 +01:00
d6bels
82eb4c8d71
Login form autofocus
2015-11-11 10:51:20 +01:00
nfletton
f85ad301eb
Fix regression causing raw data form to not display
2015-11-04 15:43:25 -07:00
Marlon
3c6ce9dfc0
Fix trans template tag error
...
Trans template tag requires `{% load i18n %}` at top of template.
2015-10-28 22:47:52 -05:00
Tom Christie
c53c9eddfe
Merge pull request #3315 from tomchristie/filters
...
First pass at HTML rendering for filters
2015-10-22 11:42:35 +01:00
Tom Christie
6305ae8916
Merge pull request #3475 from tomchristie/forms-api
...
Forms API
2015-10-22 09:59:57 +01:00
Tom Christie
34eb18b498
Merge branch 'master' into filters
...
Conflicts:
rest_framework/compat.py
rest_framework/filters.py
2015-10-19 13:14:42 +01:00
Aider Ibragimov
79008ea210
fix typo for adding jquery string in AdminRenderer
2015-10-14 15:56:26 +03:00
Aider Ibragimov
5342f22009
return typo back for new pr, update docs
2015-10-14 15:54:43 +03:00
Aider Ibragimov
b19865f88d
fix typo in adding jquery string, update docs about detail page link for AdminRenderer
2015-10-14 15:14:35 +03:00
Tom Christie
41182c6f06
Formns API
2015-10-06 10:58:20 +01:00
Tom Christie
eec1156f63
AJAX forms in admin interface
2015-09-17 16:53:28 +01:00
Tom Christie
566812ac0b
Remove method and content overriding
2015-09-17 15:17:29 +01:00
Tom Christie
f34777a2e9
Translations for HTML filters
2015-08-28 14:55:22 +01:00
Tom Christie
aeb57913c9
Filter HTML refinments
2015-08-27 14:25:44 +01:00
Tom Christie
5db900c625
First pass at HTML rendering for filters
2015-08-21 16:13:52 +01:00
Tom Christie
c271568bf5
Remove erronous checkin
2015-08-21 10:57:46 +01:00
Tom Christie
f4412d0827
Docs for select cutoffs
2015-08-21 10:52:44 +01:00
Tom Christie
d86fd67895
Fix display of select multiple HTML fields. Closes #3290 .
2015-08-20 12:11:14 +01:00
Tom Christie
27ac5a3680
Support grouped choices
2015-08-06 11:43:03 +01:00
Tom Christie
5b39d820be
Remove 'load url from future' tags in templates.
2015-07-30 15:14:02 +01:00
Tom Christie
1f55bc747b
Merge pull request #2926 from tomchristie/admin-style
...
Admin style renderer
2015-07-30 15:01:37 +01:00
Tom Christie
f1e2135b04
Restyle horizontal checkbox. Closes #2783 .
2015-07-27 13:11:24 +01:00
Tom Christie
4c1597efe0
Error modals
2015-07-23 16:16:48 +01:00
Tom Christie
b996266431
Merge master
2015-07-23 15:28:29 +01:00
José Padilla
83ef64dbf5
Document setting URL_FORMAT_OVERRIDE to None
...
This also hides the format dropdown from the
Browsable API if URL_FORMAT_OVERRIDE is disabled.
Closes #3057
2015-06-23 07:50:44 -04:00
José Padilla
5e917789ec
Consistent 2 space tabbing and formatting
2015-06-18 09:00:05 -04:00
Tom Christie
99e97fa9d3
Cleanup hyperlink rendering implementation
2015-06-03 11:47:33 +01:00
Tom Christie
25bb3b1502
Use chevron control for row linking, rather than hyperlinking first item
2015-06-03 11:15:54 +01:00
Tom Christie
90f2e26679
Add Hyperlink and rendering in admin style renderer
2015-06-03 11:00:38 +01:00
Tom Christie
b4d82a0f55
Preserve format query param
2015-05-15 09:18:45 +01:00
Tom Christie
9424e59b9e
Styling of nested lists/objects in detail view
2015-05-12 16:28:49 +01:00
Tom Christie
a1421cd4a3
Basic formatting for dict and list values
2015-05-12 16:18:45 +01:00
Tom Christie
9a504efd26
Basic formatting for admin cells
2015-05-12 15:21:49 +01:00
Tom Christie
995aa47570
First pass templates for admin style
2015-05-12 14:49:09 +01:00
Tom Christie
992971d648
Merge pull request #2631 from Ins1ne/feature/issue-2559
...
Allow blank/null on radio.html choices
2015-03-16 12:11:33 +00:00
mochawich
2266fec99d
fixed missing anchor closing tag
...
when next_url is none, big part of page html will be rendered under the <a href='#'> as it does not have a closing tag.
2015-03-13 17:03:51 +01:00
Aider Ibragimov
7159b31023
update vertical and inline layouts for radio choices
2015-03-07 07:17:22 +03:00
Aider Ibragimov
fdd811ec53
Allow blank/null on radio.html choices
2015-03-04 08:22:46 +03:00
José Padilla
bb8690cfb3
Disable select field if no choices available
2015-02-20 11:43:12 -04:00
Tom Christie
43d983fae8
Add paging controls
2015-01-22 17:25:12 +00:00
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