Improve creation of custom JS views and models for config pages.
Review Request #5594 — Created March 10, 2014 and submitted — Latest diff uploaded
ConfigPagesView
now allows for creating a custom models and views for
the configuration page, along with custom options/attributes. These will
be outputted in the template when setting up the page.A new template tag,
json_dumps_items
, helps to output data without
messing around with more expensive and messy template-based loops.
Used a custom model for the ConfigPagesView subclass, and passed data to it
and the view.Made use of the new template tag with empty and full payloads.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
djblets/configforms/views.py |
---|
djblets/configforms/templates/configforms/config.html |
---|
djblets/util/templatetags/djblets_js.py |
---|