1 {% extends "workflow/viewport-element.html" %}
11 flex-direction: column;
14 #{{select_type}}_form_div div {
17 #{{select_type}}_form_div > * {
23 #{{select_type}}_form_div div * {
26 #{{select_type}}_form_div {
30 flex-direction: column;
36 flex-direction: column;
39 #{{select_type}}_select_form {
42 flex-direction: column;
52 #select_header_section {
58 vertical-align: middle;
62 border-top: 1px solid #ccc;
68 <div id="{{select_type}}_form_div">
69 <h3 id="create_section">Create a Resource
70 <button class="btn btn-primary {% if disabled %} disabled {% endif %}"
71 {% if not disabled %}onclick="parent.add_wf({{addable_type_num}})"
75 <div class="divider"></div>
76 <h3 id="select_header_section">Or select from the list below:</h3>
77 <div id="select_section">
78 <form id="{{select_type}}_select_form" method="post" action="" class="form" id="{{select_type}}selectorform">
80 {{ form|default:"<p>no form loaded</p>" }}
94 {% endblock content %}
96 var form = $("#{{select_type}}_select_form");
97 var formData = form.serialize();
98 var req = new XMLHttpRequest();
99 req.open("POST", "/wf/workflow/", false);
100 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
101 req.onerror = function() { alert("problem with form submission"); }