fixed confirm message on unit/ingredeitn merge
This commit is contained in:
parent
deeda425a8
commit
a60b09e491
@ -22,21 +22,22 @@
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<h4>{% trans 'Units' %}</h4>
|
<h4>{% trans 'Units' %}</h4>
|
||||||
<form action="{% url 'edit_ingredient' %}" method="post">
|
<form action="{% url 'edit_ingredient' %}" method="post"
|
||||||
|
onsubmit="return confirm('{% trans 'Are you sure that you want to merge these two units ?' %}')">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ units_form|crispy }}
|
{{ units_form|crispy }}
|
||||||
<button class="btn btn-danger" type="submit"
|
<button class="btn btn-danger" type="submit"
|
||||||
onclick="confirm('{% trans 'Are you sure that you want to merge these two units ?' %}')"><i
|
><i
|
||||||
class="fas fa-sync-alt"></i> {% trans 'Merge' %}</button>
|
class="fas fa-sync-alt"></i> {% trans 'Merge' %}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<h4>{% trans 'Ingredients' %}</h4>
|
<h4>{% trans 'Ingredients' %}</h4>
|
||||||
<form action="{% url 'edit_ingredient' %}" method="post">
|
<form action="{% url 'edit_ingredient' %}" method="post"
|
||||||
|
onsubmit="return confirm('{% trans 'Are you sure that you want to merge these two ingredients ?' %}')">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ ingredients_form|crispy }}
|
{{ ingredients_form|crispy }}
|
||||||
<button class="btn btn-danger" type="submit"
|
<button class="btn btn-danger" type="submit">
|
||||||
onclick="confirm('{% trans 'Are you sure that you want to merge these two ingredients ?' %}')"><i
|
<i class="fas fa-sync-alt"></i> {% trans 'Merge' %}</button>
|
||||||
class="fas fa-sync-alt"></i> {% trans 'Merge' %}</button>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user