2
0
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:
Oliver
2018-04-26 22:38:48 +10:00
parent 8c9442193b
commit b4ff8f79f0
5 changed files with 51 additions and 35 deletions

View File

@@ -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,