-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #335 from ludw/savebuttons
Removed some duplication of savebutton markup in templates
- Loading branch information
Showing
2 changed files
with
18 additions
and
28 deletions.
There are no files selected for viewing
22 changes: 16 additions & 6 deletions
22
djadmin2/templates/djadmin2/bootstrap/includes/save_buttons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
{% load i18n %} | ||
<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> | ||
{% load admin2_tags i18n %} | ||
<div class="row-fluid"> | ||
<div class="span12 save_btns"> | ||
{% if object %} | ||
<a class="btn btn-small btn-danger" href="{% url view|admin2_urlname:'delete' pk=object.pk %}"> | ||
<i class="icon-remove icon-white"></i> | ||
{% trans "Delete" %} | ||
</a> | ||
{% endif %} | ||
<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> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters