diff options
Diffstat (limited to 'src/templates/snapshot_workflow/steps/meta.html')
-rw-r--r-- | src/templates/snapshot_workflow/steps/meta.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/templates/snapshot_workflow/steps/meta.html b/src/templates/snapshot_workflow/steps/meta.html new file mode 100644 index 0000000..2e767cc --- /dev/null +++ b/src/templates/snapshot_workflow/steps/meta.html @@ -0,0 +1,27 @@ +{% extends "workflow/viewport-element.html" %} +{% load staticfiles %} + +{% load bootstrap3 %} + +{% block content %} + + +<style> +</style> + +{% bootstrap_form_errors form type='non_fields' %} +<form id="meta_form" action="/wf/workflow/" method="POST" class="form"> +{% csrf_token %} +{{form}} +</form> +{% endblock content %} + +{% block onleave %} +var ajaxForm = $("#meta_form"); +var formData = ajaxForm.serialize(); +req = new XMLHttpRequest(); +req.open("POST", "/wf/workflow/", false); +req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); +req.onerror = function() { alert("problem submitting form"); } +req.send(formData); +{% endblock %} |