mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-29 02:54:34 +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:
1 parent
0e7472dabc
commit
e6e03963c4
8 files changed
+24
-19
No files matched your search
@@ -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