From a2c1eda5c0b5031a6fe63b454d9a5c7c0e1fc82b Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 30 Apr 2018 00:21:13 +1000 Subject: [PATCH] Added a form that only contains csrf tags - e.g. blank form only required to validate POST data --- InvenTree/static/css/inventree.css | 16 ++++++++++++++++ InvenTree/templates/modal_csrf.html | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 InvenTree/templates/modal_csrf.html diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index d007287f89..823d6abe36 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -56,6 +56,7 @@ .modal { overflow: hidden; + z-index: 99999999; } .modal-content h3 { @@ -89,4 +90,19 @@ .help-inline { color: #A11; +} + +.notification-area { + position: fixed; + z-index: 999999; + top: 0px; + margin-top: 20px; + width: 100%; + padding: 20px; +} + +.alert { + display: none; + border-radius: 5px; + opacity: 0.9; } \ No newline at end of file diff --git a/InvenTree/templates/modal_csrf.html b/InvenTree/templates/modal_csrf.html new file mode 100644 index 0000000000..3bce88c0aa --- /dev/null +++ b/InvenTree/templates/modal_csrf.html @@ -0,0 +1,3 @@ +
+ {% csrf_token %} +
\ No newline at end of file