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">
12 <script type="text/javascript">
18 data: {"create":type},
19 beforeSend: function(request) {
20 request.setRequestHeader("X-CSRFToken",
21 $('input[name="csrfmiddlewaretoken"]').val()
24 }).done(function (data) {
25 window.location.replace("/wf/");
26 }).fail(function(jqxHR, textstatus) {
27 alert("Something went wrong...");});
29 function continue_wf()
31 window.location.replace("/wf/");
34 function toggle_create_drop()
36 drop_div = document.getElementById("create_drop");
38 if (drop_div.style.display === "none")
40 drop_div.style.display = "inherit";
44 drop_div.style.display = "none";
60 background-color: CCCCCC
65 border-top: 1px solid #E7E7E7;
66 border-bottom: 1px solid #E7E7E7;
71 {% block basecontent %}
74 <nav class="navbar navbar-default navbar-static-top" role="navigation"
75 style="margin-bottom: 0">
76 <div class="navbar-header">
77 <button type="button" class="navbar-toggle" data-toggle="collapse"
78 data-target=".navbar-collapse">
79 <span class="sr-only">Toggle navigation</span>
80 <span class="icon-bar"></span>
81 <span class="icon-bar"></span>
82 <span class="icon-bar"></span>
84 <a href="https://www.opnfv.org/" class="navbar-left"><img
85 src="{% static "img/opnfv-logo.png" %}"></a>
86 <a class="navbar-brand" href={% url 'dashboard:index' %}>Pharos Dashboard</a>
88 <!-- /.navbar-header -->
90 <ul class="nav navbar-top-links navbar-right">
92 <a class="dropdown-toggle" data-toggle="dropdown" href="#">
93 <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
95 <ul class="dropdown-menu dropdown-user">
96 {% if user.is_authenticated %}
97 <li><a href="{% url 'account:settings' %}"><i
98 class="fa fa-gear fa-fw"></i>
101 <li class="divider"></li>
102 <li><a href="{% url 'account:logout' %}?next={{ request.path }}"><i
103 class="fa fa-sign-out fa-fw"></i>
107 <li><a href="{% url 'account:login' %}"><i
108 class="fa fa-sign-in fa-fw"></i>
113 <!-- /.dropdown-user -->
117 <!-- /.navbar-top-links -->
119 <div class="navbar-default sidebar" role="navigation">
120 <div class="sidebar-nav navbar-collapse">
121 <ul class="nav" id="side-menu">
123 <a href="/"><i class="fa fa-fw"></i>Home</a>
125 <li style="width: 100%;">
126 <a href="javascript:toggle_create_drop();"><i class="fa fa-fw"></i>Create<i
127 class="fa fa-fw fa-caret-down"></i>
130 <div id="create_drop" class="create_drop" style="display:none">
131 <button class="btn drop_btn" onclick="cwf(0)">Create a Booking</button>
132 <button class="btn drop_btn" onclick="cwf(1)">Create a Pod</button>
133 <button class="btn drop_btn" onclick="cwf(2)">Configure a Pod</button>
134 <button class="btn drop_btn" onclick="cwf(3)">Create a Snapshot</button>
138 <a href="{% url 'resource:hosts' %}"><i
139 class="fa fa-fw"></i>Hosts
142 {% if user.is_authenticated %}
144 <a href="{% url 'account:users' %}"><i
145 class="fa fa-fw"></i>User List
150 <a href="{% url 'booking:list' %}"><i
151 class="fa fa-fw"></i>Booking List
155 <a href="{% url 'booking:stats' %}"><i
156 class="fa fa-fw"></i>Booking Statistics</a>
159 <a href="{% url 'api-root' %}"><i
160 class="fa fa-fw"></i>API
164 <a href="{% url 'account:my-account' %}"><i
165 class="fa fa-fw"></i>Account
169 <a href="{% url 'dashboard:all_labs' %}"><i
170 class="fa fa-fw"></i>Lab Info
174 <a href="{% url 'notifier:messages' %}"><i
175 class="fa fa-fw"></i>Inbox
180 <!-- /.sidebar-collapse -->
182 <!-- /.navbar-static-side -->
185 <!-- Page Content -->
186 <div id="page-wrapper">
189 <div class="col-lg-12">
190 <h1 class="page-header">{{ title }}</h1>
195 <div id="bsm">{% bootstrap_messages %}</div>
199 {% endblock content %}
201 <!-- /#page-wrapper -->
204 {% endblock basecontent %}