mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 20:32:12 +00:00
Simplified custom button text for modal forms
- Now only configured from the javascript end - No server-side configuration of button text
This commit is contained in:
@@ -109,7 +109,8 @@
|
||||
$("#build-cancel").click(function() {
|
||||
launchModalForm("{% url 'build-cancel' build.id %}",
|
||||
{
|
||||
reload: true
|
||||
reload: true,
|
||||
submit_text: "Cancel",
|
||||
});
|
||||
});
|
||||
{% endblock %}
|
||||
|
@@ -40,7 +40,6 @@ class BuildCancel(AjaxView):
|
||||
model = Build
|
||||
template_name = 'build/cancel.html'
|
||||
ajax_form_title = 'Cancel Build'
|
||||
ajax_submit_text = 'Cancel'
|
||||
context_object_name = 'build'
|
||||
fields = []
|
||||
|
||||
|
Reference in New Issue
Block a user