add nick
[laas.git] / src / templates / base / dashboard / genericselect.html
1 {% extends "workflow/viewport-element.html" %}
2
3 {% load bootstrap4 %}
4
5 {% block content %}
6
7 <div id="select_form_div" class="h-100 border d-flex flex-column p-4">
8     <h3 id="create_section">Create a Resource
9         <button class="btn btn-primary {% if disabled %} disabled {% endif %}"
10             {% if not disabled %}onclick="add_workflow({{addable_type_num}})"
11             {% endif %}>Here
12         </button>
13     </h3>
14     <div class="border-top"></div>
15     <h3 id="select_header_section">Or select from the list below:</h3>
16     <div id="select_section" class="d-flex flex-column">
17         <form id="step_form" method="post" action="" class="form d-flex flex-column">
18         {% csrf_token %}
19         {{ form|default:"<p>no form loaded</p>" }}
20         </form>
21     </div>
22 </div>
23
24 <script>
25     {% if disabled %}
26     disable();
27     {% endif %}
28 </script>
29
30 {% endblock content %}