Update form for deleting stock location

This commit is contained in:
Oliver Walters 2019-05-13 22:58:42 +10:00
parent 00b37b62db
commit d679ee9971
2 changed files with 5 additions and 1 deletions

View File

@ -97,7 +97,7 @@
}); });
$('#location-delete').click(function() { $('#location-delete').click(function() {
launchDeleteForm("{% url 'stock-location-delete' location.id %}", launchModalForm("{% url 'stock-location-delete' location.id %}",
{ {
redirect: "{% url 'stock-index' %}" redirect: "{% url 'stock-index' %}"
}); });

View File

@ -1,3 +1,6 @@
{% extends "modal_delete_form.html" %}
{% block pre_form_content %}
Are you sure you want to delete stock location '{{ location.name }}'? Are you sure you want to delete stock location '{{ location.name }}'?
<br> <br>
@ -34,3 +37,4 @@ If this location is deleted, these items will be moved to the top level 'Stock'
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% endblock %}