1 {% extends "layout.html" %}
8 <link href="{% static "css/detail_view.css" %}" rel="stylesheet">
9 <link href="{% static "css/base.css" %}" rel="stylesheet">
10 <script type="text/javascript">
18 beforeSend: function (request) {
19 request.setRequestHeader("X-CSRFToken",
20 $('input[name="csrfmiddlewaretoken"]').val()
23 }).done(function (data) {
24 window.location.replace("/wf/");
25 }).fail(function (jqxHR, textstatus) {
26 alert("Something went wrong...");
30 function continue_wf() {
31 window.location.replace("/wf/");
34 function toggle_create_drop() {
35 drop_div = document.getElementById("create_drop");
37 if (drop_div.style.display === "none") {
38 drop_div.style.display = "inherit";
40 drop_div.style.display = "none";
60 background-color: CCCCCC
65 border-top: 1px solid #E7E7E7;
66 border-bottom: 1px solid #E7E7E7;
75 {% block basecontent %}
76 <div id="wrapper" class="d-flex flex-column">
78 <nav class="navbar navbar-light bg-light navbar-fixed-top border-bottom py-0" role="navigation" style="margin-bottom: 0">
79 <div class="container-fluid">
80 <div class="col order-2 order-lg-1 text-center text-lg-left">
81 <a href="https://www.opnfv.org/" class="navbar-brand">
82 <img src="{% static "img/opnfv-logo.png" %}">
84 <a class="navbar-brand" href={% url 'dashboard:index' %}>
88 <!-- /.navbar-header -->
89 <div class="col-2 order-1 order-lg-3 d-lg-none">
90 <button class="btn border" type="button" data-toggle="collapse" data-target="#sidebar"
91 aria-expanded="false" aria-controls="sidebar">
92 <i class="fas fa-bars"></i>
95 <div class="col-2 order-3">
96 <ul class="nav ml-auto">
97 <li class="dropdown ml-auto">
98 <a class="nav-link p-0 text-dark p-2" data-toggle="dropdown" href="#">
99 {% if request.user.username %}
100 {{request.user.username}}
102 <i class="fas fa-user"></i>
104 <i class="fas fa-caret-down rotate"></i>
106 <div class="dropdown-menu dropdown-menu-right">
107 {% if user.is_authenticated %}
108 <a href="{% url 'account:settings' %}" class="text-dark dropdown-item">
109 <i class="fas fa-cog"></i>
112 <a href="{% url 'account:logout' %}?next={{ request.path }}" class="text-dark dropdown-item">
113 <i class="fas fa-sign-out-alt"></i>
117 <a href="{% url 'account:login' %}" class="text-dark dropdown-item">
118 <i class="fas fa-sign-in-alt"></i>
122 </div> <!-- End dropdown-menu -->
123 </li> <!-- End dropdown -->
125 </div> <!-- End top right account menu -->
128 <!-- /.navbar-top-links -->
130 <!-- Page Content -->
131 <div class="container-fluid d-lg-flex flex-lg-grow-1 px-0">
132 <div class="row h-100 w-100 mx-0">
133 <div class="col-12 col-lg-auto px-0 border-right border-left bg-light" role="navigation">
134 <nav class="navbar navbar-expand-lg border-bottom p-0 w-100">
135 <div class="collapse navbar-collapse" id="sidebar">
136 <div class="list-group list-group-flush w-100 bg-light">
137 <a href="/" class="list-group-item list-group-item-action bg-light">
141 <a class="list-group-item list-group-item-action bg-light" data-toggle="collapse"
142 href="#createList" role="button">
143 Create <i class="fas fa-angle-down rotate"></i>
145 <div class="collapse" id="createList">
146 <a href="/booking/quick/" class="list-group-item list-group-item-action list-group-item-secondary">
149 <a href="#" onclick="cwf(0)" class="list-group-item list-group-item-action list-group-item-secondary">
152 <a href="#" onclick="cwf(1)" class="list-group-item list-group-item-action list-group-item-secondary">
155 <a href="#" onclick="cwf(2)" class="list-group-item list-group-item-action list-group-item-secondary">
158 <a href="#" onclick="cwf(3)" class="list-group-item list-group-item-action list-group-item-secondary">
161 <a href="#" onclick="cwf(4)" class="list-group-item list-group-item-action list-group-item-secondary">
165 <a href="{% url 'resource:hosts' %}" class="list-group-item list-group-item-action bg-light">
168 {% if user.is_authenticated %}
169 <a href="{% url 'account:users' %}" class="list-group-item list-group-item-action bg-light">
173 <a href="{% url 'booking:list' %}" class="list-group-item list-group-item-action bg-light">
176 <a href="{% url 'booking:stats' %}" class="list-group-item list-group-item-action bg-light">
179 <!-- <a href="{% url 'account:my-account' %}" class="list-group-item list-group-item-action bg-light">
182 <a class="list-group-item list-group-item-action bg-light" data-toggle="collapse"
183 href="#accountList" role="button">
184 Account <i class="fas fa-angle-down rotate"></i>
186 <div class="collapse" id="accountList">
187 <a href="{% url 'account:my-resources' %}" class="list-group-item list-group-item-action list-group-item-secondary">
190 <a href="{% url 'account:my-bookings' %}" class="list-group-item list-group-item-action list-group-item-secondary">
193 <a href="{% url 'account:my-configurations' %}" class="list-group-item list-group-item-action list-group-item-secondary">
196 <a href="{% url 'account:my-images' %}" class="list-group-item list-group-item-action list-group-item-secondary">
200 <a href="{% url 'dashboard:all_labs' %}" class="list-group-item list-group-item-action bg-light">
203 <a href="{% url 'notifier:messages' %}" class="list-group-item list-group-item-action bg-light">
213 <div class="col flex-grow-1 d-flex flex-column">
215 <div class="row flex-shrink-1">
216 <div class="col-lg-12">
217 <h1 class="page-header">{{ title }}</h1>
222 <div id="bsm">{% bootstrap_messages %}</div>
223 <!-- Content block placed here -->
225 {% endblock content %}
233 <!-- /#page-wrapper -->
236 {% endblock basecontent %}