mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 01:36:29 +00:00
Fixed position header + footer for modals
- Fun with CSS! - Header title provided by AJAX data - Footer static - Submit button text can be customized via JSON dat
This commit is contained in:
@@ -23,12 +23,13 @@ class AjaxView(object):
|
||||
|
||||
def renderJsonResponse(self, request, form, data={}):
|
||||
|
||||
context = {'form': form,
|
||||
'form_action': self.ajax_form_action,
|
||||
'form_title': self.ajax_form_title,
|
||||
'submit_text': self.ajax_submit_text,
|
||||
context = {'form': form
|
||||
}
|
||||
|
||||
data['title'] = self.ajax_form_title
|
||||
|
||||
data['submit_text'] = self.ajax_submit_text
|
||||
|
||||
data['html_form'] = render_to_string(
|
||||
self.getAjaxTemplate(),
|
||||
context,
|
||||
|
Reference in New Issue
Block a user