-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added block submit-row to allow extending the submit line, #1044
- Loading branch information
Showing
6 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 +1,24 @@ | ||
{% load i18n admin_urls %} | ||
<footer class="grp-module grp-submit-row grp-fixed-footer"> | ||
<header style="display:none"><h1>Submit Options</h1></header> | ||
<ul> | ||
<div> | ||
{% block submit-row %} | ||
{% if show_delete_link %} | ||
{% url opts|admin_urlname:'delete' original.pk|admin_urlquote as delete_url %} | ||
<li class="grp-float-left"><a href="{% add_preserved_filters delete_url %}" class="grp-button grp-delete-link">{% trans "Delete" %}</a></li> | ||
<div class="grp-float-left"><a href="{% add_preserved_filters delete_url %}" class="grp-button grp-delete-link">{% trans "Delete" %}</a></div> | ||
{% endif %} | ||
{% if show_save %} | ||
<li><input type="submit" value="{% trans 'Save' %}" class="grp-button grp-default" name="_save" /></li> | ||
<div><input type="submit" value="{% trans 'Save' %}" class="grp-button grp-default" name="_save" /></div> | ||
{% endif %} | ||
{% if show_save_as_new %} | ||
<li><input type="submit" value="{% trans 'Save as new' %}" class="grp-button" name="_saveasnew" /></li> | ||
<div><input type="submit" value="{% trans 'Save as new' %}" class="grp-button" name="_saveasnew" /></div> | ||
{% endif %} | ||
{% if show_save_and_add_another %} | ||
<li><input type="submit" value="{% trans 'Save and add another' %}" class="grp-button" name="_addanother" /></li> | ||
<div><input type="submit" value="{% trans 'Save and add another' %}" class="grp-button" name="_addanother" /></div> | ||
{% endif %} | ||
{% if show_save_and_continue %} | ||
<li><input type="submit" value="{% trans 'Save and continue editing' %}" class="grp-button" name="_continue" /></li> | ||
<div><input type="submit" value="{% trans 'Save and continue editing' %}" class="grp-button" name="_continue" /></div> | ||
{% endif %} | ||
</ul> | ||
{% endblock %} | ||
</div> | ||
</footer> |