1 {% extends "base.html" %}
6 <p style="text-align:center;">Welcome to the Pharos Dashboard! To get started, select one of the options below:</p>
12 display: inline-block;
28 grid-template-columns: 33% 34% 33%;
31 <script type="text/javascript">
32 function cwf(wf_type){
33 document.getElementById('id_workflow').selectedIndex = wf_type;
34 document.getElementById('wf_selection_form').submit();
37 <div class='wf_create_div'>
38 <button class="wf_create btn" onclick="cwf(0)">Create a Booking</button>
39 <button class="wf_create btn" onclick="cwf(1)">Create a Pod</button>
40 <button class="wf_create btn" onclick="cwf(2)">Configure a Pod</button>
41 <button class="wf_create btn" onclick="cwf(3)">Create a Snapshot</button>
42 {% if manager == True %}
43 <button class="wf_continue btn" onclick="continue_wf()">Finish Unfinished Business</button>
47 <script type="text/javascript">
53 data: {"create":type},
54 beforeSend: function(request) {
55 request.setRequestHeader("X-CSRFToken",
56 $('input[name="csrfmiddlewaretoken"]').val()
60 }).done(function (data) {
61 window.location.replace("/wf/");
62 }).fail(function(jqxHR, textstatus) {
63 alert("Something went wrong...");});
65 function continue_wf()
67 window.location.replace("/wf/");
70 //success: window.location.replace("/wf/")
74 <div class="hidden_form" id="form_div">
75 <form method="post" action="" class="form" id="wf_selection_form">
78 <input type="hidden" id="landing_action">
80 <button type="submit" class="btn btn btn-success">
86 {% block vport_comm %}
88 {% endblock content %}