1 {% extends "layout.html" %}
8 <link href="{% static "bower_components/startbootstrap-sb-admin-2-blackrockdigital/dist/css/sb-admin-2.min.css" %}"
10 <link href="{% static "css/theme.css" %}" rel="stylesheet">
11 <link href="{% static "css/detail_view.css" %}" rel="stylesheet">
13 <script type="text/javascript">
19 data: {"create":type},
20 beforeSend: function(request) {
21 request.setRequestHeader("X-CSRFToken",
22 $('input[name="csrfmiddlewaretoken"]').val()
25 }).done(function (data) {
26 window.location.replace("/wf/");
27 }).fail(function(jqxHR, textstatus) {
28 alert("Something went wrong...");});
30 function continue_wf()
32 window.location.replace("/wf/");
35 function toggle_create_drop()
37 drop_div = document.getElementById("create_drop");
39 if (drop_div.style.display === "none")
41 drop_div.style.display = "inherit";
45 drop_div.style.display = "none";
61 background-color: CCCCCC
66 border-top: 1px solid #E7E7E7;
67 border-bottom: 1px solid #E7E7E7;
72 {% block basecontent %}
75 <nav class="navbar navbar-default navbar-static-top" role="navigation"
76 style="margin-bottom: 0">
77 <div class="navbar-header">
78 <button type="button" class="navbar-toggle" data-toggle="collapse"
79 data-target=".navbar-collapse">
80 <span class="sr-only">Toggle navigation</span>
81 <span class="icon-bar"></span>
82 <span class="icon-bar"></span>
83 <span class="icon-bar"></span>
85 <a href="https://www.opnfv.org/" class="navbar-left"><img
86 src="{% static "img/opnfv-logo.png" %}"></a>
87 <a class="navbar-brand" href={% url 'dashboard:index' %}>Pharos Dashboard</a>
89 <!-- /.navbar-header -->
91 <ul class="nav navbar-top-links navbar-right">
93 <a class="dropdown-toggle" data-toggle="dropdown" href="#">
94 <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
96 <ul class="dropdown-menu dropdown-user">
97 {% if user.is_authenticated %}
98 <li><a href="{% url 'account:settings' %}"><i
99 class="fa fa-gear fa-fw"></i>
102 <li class="divider"></li>
103 <li><a href="{% url 'account:logout' %}?next={{ request.path }}"><i
104 class="fa fa-sign-out fa-fw"></i>
108 <li><a href="{% url 'account:login' %}"><i
109 class="fa fa-sign-in fa-fw"></i>
114 <!-- /.dropdown-user -->
118 <!-- /.navbar-top-links -->
120 <div class="navbar-default sidebar" role="navigation">
121 <div class="sidebar-nav navbar-collapse">
122 <ul class="nav" id="side-menu">
124 <a href="/"><i class="fa fa-fw"></i>Home</a>
126 <li style="width: 100%;">
127 <a href="javascript:toggle_create_drop();"><i class="fa fa-fw"></i>Create<i
128 class="fa fa-fw fa-caret-down"></i>
131 <div id="create_drop" class="create_drop" style="display:none">
132 <button class="btn drop_btn" onclick="location.href='/booking/quick/'">Express Booking</a>
133 <button class="btn drop_btn" onclick="cwf(0)">Book a Pod</button>
134 <button class="btn drop_btn" onclick="cwf(1)">Design a Pod</button>
135 <button class="btn drop_btn" onclick="cwf(2)">Configure a Pod</button>
136 <button class="btn drop_btn" onclick="cwf(3)">Create a Snapshot</button>
140 <a href="{% url 'resource:hosts' %}"><i
141 class="fa fa-fw"></i>Hosts
144 {% if user.is_authenticated %}
146 <a href="{% url 'account:users' %}"><i
147 class="fa fa-fw"></i>User List
152 <a href="{% url 'booking:list' %}"><i
153 class="fa fa-fw"></i>Booking List
157 <a href="{% url 'booking:stats' %}"><i
158 class="fa fa-fw"></i>Booking Statistics</a>
161 <a href="{% url 'account:my-account' %}"><i
162 class="fa fa-fw"></i>Account
166 <a href="{% url 'dashboard:all_labs' %}"><i
167 class="fa fa-fw"></i>Lab Info
171 <a href="{% url 'notifier:messages' %}"><i
172 class="fa fa-fw"></i>Inbox
177 <!-- /.sidebar-collapse -->
179 <!-- /.navbar-static-side -->
182 <!-- Page Content -->
183 <div id="page-wrapper">
186 <div class="col-lg-12">
187 <h1 class="page-header">{{ title }}</h1>
192 <div id="bsm">{% bootstrap_messages %}</div>
196 {% endblock content %}
198 <!-- /#page-wrapper -->
201 {% endblock basecontent %}