Replace and change CSS
[laas.git] / src / templates / workflow / viewport-element.html
1 {% extends "layout.html" %}
2 {% load bootstrap4 %}
3 {% load staticfiles %}
4
5 {% block basecontent %}
6
7     <div id="wrapper" class="h-100">
8         <!-- Page Content -->
9         <div id="page-wrapper" class="h-100">
10             {% block content %}
11             {% endblock content %}
12         </div>
13     </div>
14     {% block vport_comm %}
15              <script type="text/javascript">
16                 var step_count = {{ step_number|default:0 }};
17                 var active_step = {{ active_step|default:0 }};
18                 var render_correct = {{ render_correct|default:"false" }};
19                 var title = "{{ step_title|default:"Workflow Step" }}";
20                 var description = "{{ description|default:"Contact the admins, because this field should have something else filled in here" }}";
21                 if(render_correct){
22                     parent.update_context();
23                 }
24                 parent.update_description(title, description);
25             </script>
26
27     {% endblock vport_comm %}
28     {% block validate_step %}
29         <script>
30
31             function step_is_valid()
32             {
33                 valid = confirm("Is this form valid?");
34                 if( valid )
35                 {
36                     return true;
37                 }
38                 else{
39                     return false;
40                 }
41             }
42
43             function onError()
44             {
45                 alert("Error: something!");
46             }
47         </script>
48
49     {% endblock validate_step %}
50
51     <script>
52     function step_on_leave() {
53         {% block onleave %}
54             alert("override onleave");
55         {% endblock %}
56     }
57     </script>
58
59     <div class="messages">
60         {% block element_messages %}
61         {% bootstrap_messages %}
62         {% endblock %}
63     </div>
64 {% endblock basecontent %}