This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/articles/templates/articles/article_change_form.html

13 lines
498 B
HTML

{% extends 'admin/change_form.html' %}
{% block submit_buttons_bottom %}
{{ block.super }}
<div class="submit-row">
{% if original.status != original.PUBLISHED %}
<input type="submit" value="Save & publish" name="_publish">
{% elif original.status != original.DRAFT %}
<input type="submit" value="Save & unpublish" name="_unpublish">
{% endif %}
<input type="submit" value="Save & preview" name="_preview">
</div>
{% endblock %}