mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-25 01:03:07 +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
@@ -56,7 +56,6 @@ class AjaxMixin(object):
|
||||
|
||||
ajax_form_action = ''
|
||||
ajax_form_title = ''
|
||||
ajax_submit_text = 'Submit'
|
||||
|
||||
def get_data(self):
|
||||
return {}
|
||||
@@ -76,8 +75,6 @@ class AjaxMixin(object):
|
||||
|
||||
data['title'] = self.ajax_form_title
|
||||
|
||||
data['submit_label'] = self.ajax_submit_text
|
||||
|
||||
data['html_form'] = render_to_string(
|
||||
self.getAjaxTemplate(),
|
||||
context,
|
||||
|
||||
Reference in new issue
Block a user