- Author:
- ungenio41
- Posted:
- May 2, 2010
- Language:
- HTML/template
- Version:
- Not specified
- Score:
- 2 (after 2 ratings)
See link for description.
Note: Requires Django 1.2.
1 2 3 4 5 6 7 8 9 10 11 | {% extends "admin/change_form.html" %}
{% load i18n %}
{% block content %}
{{ block.super }}
<script type="text/javascript">//<![CDATA[
(function($){
$('<input type="submit" value="{% trans 'Save and view next' %}" name="_viewnext" />')
.prependTo('div.submit-row');
})(django.jQuery);
//]]></script>
{% endblock %}
|
More like this
- Bootstrap Accordian by Netplay4 5 years, 11 months ago
- Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
- Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
- Reusable form template with generic view by roldandvg 9 years ago
- Pagination Django with Boostrap by guilegarcia 9 years, 2 months ago
Comments
Cheers for this (and the other related snippet)
#
you can also override admin/submit_line.html
{% if show_save %}<input type="submit" value="{% trans 'Save and view next' %}" name="_viewnext" {{ onclick_attrib }}/> <input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %}
unfortunately this template can't be overriden on per app model
#
Please login first before commenting.