Correctly display action on Create/Update templates
This commit is contained in:
parent
408e205c5f
commit
c2756f15fc
|
@ -5,3 +5,7 @@
|
|||
{% block above_form %}
|
||||
<h1>{% trans 'Create' %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block action %}
|
||||
{% trans 'Create' %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<form action="" method="post" class="form-horizontal">
|
||||
{% include 'partials/form.html' with form=form %}
|
||||
<a class="btn btn-default" href="{% back %}">{% trans "Cancel" %}</a>
|
||||
<input type="submit" class="btn btn-primary" value="{% trans 'Create' %}" />
|
||||
<input type="submit" class="btn btn-primary" value="{% block action %}{% endblock %}" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,3 +5,7 @@
|
|||
{% block above_form %}
|
||||
<h1>{% trans 'Update' %}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block action %}
|
||||
{% trans 'Update' %}
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue