1 {% extends "workflow/viewport-element.html" %}
15 /*border: solid 1px black;*/
21 grid-template-columns: 45% 10% 45%;
36 <div id="resource_form_div">
37 <div class="select_panels">
38 <div class="panel_chooser panel">
39 <form id="resource_select_form" method="post" action="" class="form" id="resourceselectorform">
41 {{ form|default:"<p>no form loaded</p>" }}
47 <div class="panel_center panel"><p>OR</p></div>
48 <div class="panel_add panel">
49 <button class="btn {% if disabled %} disabled {% endif %}"
50 style="width: 100%; height: 100%;"
51 {% if not disabled %}onclick="parent.add_wf(1)"
52 {% endif %}>Create Resource</button>
63 {% endblock content %}
65 var form = $("#resource_select_form");
66 var formData = form.serialize();
67 var req = new XMLHttpRequest();
68 req.open("POST", "/wf/workflow/", false);
69 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
70 req.onerror = function() { alert("problem with form submission"); }