mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-17 06:30:25 +00:00
Merge pull request #164 from audreyr/edit-form-buttons-72
Add delete button to edit form as per issue #72.
This commit is contained in:
commit
4e2a45aab9
1 changed files with 9 additions and 4 deletions
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
|
|
@ -58,9 +58,14 @@
|
|||
</table>
|
||||
{% endfor %}
|
||||
|
||||
<button class="btn btn-small" type="submit" name="_addanother">{% trans "Save and add another" %}</button>
|
||||
<button class="btn btn-small" type="submit" name="_continue">{% trans "Save and continue editing" %}</button>
|
||||
<button class="btn btn-small btn-success" type="submit" name="_save">{% trans "Save" %}</button>
|
||||
<hr/>
|
||||
<a class="btn btn-small btn-danger" href="{% url view|admin2_urlname:'delete' pk=object.pk %}">{% trans "Delete" %}</a>
|
||||
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-small" type="submit" name="_addanother">{% trans "Save and add another" %}</button>
|
||||
<button class="btn btn-small" type="submit" name="_continue">{% trans "Save and continue editing" %}</button>
|
||||
<button class="btn btn-small btn-success" type="submit" name="_save">{% trans "Save" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue