1 {% extends "workflow/viewport-element.html" %}
15 /*border: solid 1px black;*/
21 grid-template-columns: 45% 10% 45%;
26 {% bootstrap_form_errors form type='non_fields' %}
27 <form id="booking_meta_form" action="/wf/workflow/" method="POST" class="form">
30 <div class="panel_wrap">
31 <div class="panel bkmeta_panel">
32 {% bootstrap_field form.purpose %}
33 {% bootstrap_field form.project %}
34 {% bootstrap_field form.length %}
35 <p style="display:inline;">Days: </p><output id="daysout" style="display:inline;">0</output>
37 document.getElementById("id_length").setAttribute("oninput", "daysout.value=this.value");
38 document.getElementById("daysout").value = document.getElementById("id_length").value;
40 {% bootstrap_field form.info_file %}
41 <p>You must provide a url to your project's INFO.yaml file if you are a PTL and you are trying to book a POD with multiple servers in it.</p>
43 <div class="panel panel_center">
46 {% bootstrap_field form.users %}
50 <button type="submit" style="display: none;" class="btn btn-success">Confirm</button>
55 {% endblock content %}
58 var ajaxForm = $("#booking_meta_form");
59 var formData = ajaxForm.serialize();
60 console.log(formData);
61 req = new XMLHttpRequest();
62 req.open("POST", "/wf/workflow/", false);
63 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
64 req.onerror = function() { alert("problem submitting form"); }