1 {% extends "workflow/viewport-element.html" %}
15 /*border: solid 1px black;*/
21 grid-template-columns: 45% 10% 45%;
36 <div id="sw_form_div">
37 <div class="select_panels">
38 <div class="panel_chooser panel">
39 <form id="software_select_form" method="post" action="" class="form" id="swselectorform">
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(2)"
52 {% endif %}>Create Config</button>
63 {% endblock content %}
66 var form = $("#software_select_form");
67 var formData = form.serialize();
68 var req = new XMLHttpRequest();
69 req.open("POST", "/wf/workflow/", false);
70 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
71 req.onerror = function() { alert("problem with form submission"); }