@@ -0,0 +1,20 | |||
|
1 | {% extends "base.html" %} | |
|
2 | {% load bootstrap3 %} | |
|
3 | {% block mainactive %}active{% endblock %} | |
|
4 | ||
|
5 | {% block content-title %}{{experiment.alias}}{% endblock %} | |
|
6 | {% block content-suptitle %}{{device.device_type__name}}{% endblock %} | |
|
7 | ||
|
8 | {% block content %} | |
|
9 | <form class="form" method="post" action=""> | |
|
10 | {% csrf_token %} | |
|
11 | {% bootstrap_form form layout='horizontal' size='medium' %} | |
|
12 | <div style="clear: both;"></div> | |
|
13 | <br> | |
|
14 | <button type="submit" class="btn btn-primary pull-right" id="bt_update">Send</button> | |
|
15 | </form> | |
|
16 | {% endblock %} | |
|
17 | ||
|
18 | {% block sidebar%} | |
|
19 | {% include "sidebar_devices.html" %} | |
|
20 | {% endblock %} No newline at end of file |
@@ -1,108 +1,112 | |||
|
1 | 1 | <!DOCTYPE html> |
|
2 | 2 | {% load static %} |
|
3 | 3 | <html lang="en"> |
|
4 | 4 | <head> |
|
5 | 5 | <meta charset="utf-8"> |
|
6 | 6 | <title>{% block title %}Jicamarca Integrated Radar System:::::{% endblock %}</title> |
|
7 | 7 | <meta name="description" content=""> |
|
8 | 8 | <meta name="author" content=""> |
|
9 | 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
|
10 | 10 | {# bootstrap_css #} |
|
11 | 11 | <link href="{% static 'css/bootstrap-flatly.min.css' %}" media="screen" rel="stylesheet"> |
|
12 | 12 | <style type="text/css"> |
|
13 | 13 | body {padding-top: 60px} |
|
14 | 14 | .logo {padding-top: 5px; height: 50px} |
|
15 | 15 | .clickable-row {cursor: pointer;} |
|
16 | 16 | </style> |
|
17 | 17 | <!--[if lt IE 9]> |
|
18 | 18 | <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> |
|
19 | 19 | <![endif]--> |
|
20 | 20 | {% block extra-head %} |
|
21 | 21 | {% endblock %} |
|
22 | 22 | </head> |
|
23 | 23 | |
|
24 | 24 | <body> |
|
25 | 25 | |
|
26 | 26 | {% block main_menu %} |
|
27 | 27 | <nav class="navbar navbar-default navbar-fixed-top" role="banner"> |
|
28 | 28 | <div class="container-fluid"> |
|
29 | 29 | <div class="navbar-header"> |
|
30 | 30 | <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigationbar"> |
|
31 | 31 | <span class="sr-only">Toggle navigation</span> |
|
32 | 32 | <span class="icon-bar"></span> |
|
33 | 33 | <span class="icon-bar"></span> |
|
34 | 34 | <span class="icon-bar"></span> |
|
35 | 35 | </button> |
|
36 | 36 | <a class="navbar-brand" href="{% url 'index' %}" style="padding-top:1px"><img class="logo" alt="JRO" src="{% static "images/logo-jro-white-trans.png" %}"></a> |
|
37 | 37 | </div> |
|
38 | 38 | <div class="collapse navbar-collapse" id="navigationbar"> |
|
39 | 39 | <ul class="nav navbar-nav"> |
|
40 | 40 | <li class=" dropdown {% block exp-active %}{% endblock %}"><a href="{% url 'experiments'%}">Experiments</a> |
|
41 | 41 | </li> |
|
42 | 42 | <li class=" dropdown {% block dev-active %}{% endblock %}"><a href="{% url 'devices'%}">Devices</a> |
|
43 | 43 | </li> |
|
44 | 44 | </ul> |
|
45 | 45 | <ul class="nav navbar-nav navbar-right"> |
|
46 | 46 | <li class="nav-divider"></li> |
|
47 | 47 | {% if user.is_authenticated %} |
|
48 | 48 | <li class="dropdown"> |
|
49 | 49 | <a href="#" class="dropdown-toggle" data-toggle="dropdown">Hi {{ user.username }}<span class="caret"></span></a> |
|
50 | 50 | <ul class="dropdown-menu" role="menu"> |
|
51 | 51 | <li><a href="#">Control Panel</a></li> |
|
52 | 52 | <li><a href="{% url 'django.contrib.auth.views.logout' %}">Logout</a></li> |
|
53 | 53 | </ul> |
|
54 | 54 | </li> |
|
55 | 55 | {% else %} |
|
56 | 56 | <li><a href="{% url 'django.contrib.auth.views.login' %}?next={{request.get_full_path}}">Login</a></li> |
|
57 | 57 | {% endif %} |
|
58 | 58 | </ul> |
|
59 | 59 | </div> |
|
60 | 60 | </div> |
|
61 | 61 | </nav> |
|
62 | 62 | <div style="clear: both;"></div> |
|
63 | 63 | {% endblock %} |
|
64 | 64 | |
|
65 | 65 | <div class="container"> |
|
66 | 66 | <div id="page" class="row" style="min-height:600px"> |
|
67 | ||
|
68 | <div class="col-md-3 hidden-xs hidden-sm" role="complementary"> | |
|
69 | <br><br> | |
|
70 | <div id="sidebar"> | |
|
71 | {% block sidebar%} | |
|
72 | {% endblock %} | |
|
73 | </div> | |
|
74 | </div> | |
|
75 | ||
|
67 | 76 | <div class="col-md-9 col-xs-12" role="main"> |
|
68 | 77 | <div class="page-header"> |
|
69 | 78 | <h1>{% block content-title %}{% endblock %} <small>{% block content-suptitle %}{% endblock %}</small></h1> |
|
70 | 79 | <hr> |
|
71 | 80 | </div> |
|
72 | 81 | {% block content %} |
|
73 | 82 | {% endblock %} |
|
74 | 83 | <br> |
|
75 | 84 | {% block messages %} |
|
76 | 85 | {% endblock %} |
|
77 | 86 | </div> |
|
78 | <div class="col-md-3 hidden-xs hidden-sm" role="complementary"> | |
|
79 | <br><br> | |
|
80 | <div id="sidebar"> | |
|
81 | {% block sidebar%} | |
|
82 | {% endblock %} | |
|
83 | </div> | |
|
84 | </div> | |
|
87 | ||
|
88 | ||
|
85 | 89 | </div><!--/row--> |
|
86 | 90 | </div> <!-- container --> |
|
87 | 91 | |
|
88 | 92 | <div id="debug">{{debug}}</div> |
|
89 | 93 | |
|
90 | 94 | {% block footer %} |
|
91 | 95 | <footer class="footer"> |
|
92 | 96 | <div class="container"> |
|
93 | 97 | <p><hr></p> |
|
94 | 98 | <p> |
|
95 | 99 | © <a href="http://jro.igp.gob.pe">Jicamarca Radio Observatory</a> - {% now "Y" %} |
|
96 | 100 | </p> |
|
97 | 101 | </div> |
|
98 | 102 | </footer> |
|
99 | 103 | {% endblock %} |
|
100 | 104 | |
|
101 | 105 | {# bootstrap_javascript jquery=True #} |
|
102 | 106 | <script src="{% static 'js/jquery.min.js' %}"></script> |
|
103 | 107 | <script src="{% static 'js/bootstrap.min.js' %}"></script> |
|
104 | 108 | {% block extra-js %} |
|
105 | 109 | {% endblock%} |
|
106 | 110 | </body> |
|
107 | 111 | </html> |
|
108 | 112 |
@@ -1,12 +1,23 | |||
|
1 | {% if experiment %} | |
|
2 | <div class="panel panel-default"> | |
|
3 | <div class="panel-heading"> | |
|
4 | <h3>Experiment</h3> | |
|
5 | </div> | |
|
6 | <div class="list-group"> | |
|
7 | <a href="{% url 'experiment' experiment.id %}" class="list-group-item active" >{{ experiment.alias }}</a> | |
|
8 | </div> | |
|
9 | </div> | |
|
10 | {% endif %} | |
|
11 | ||
|
1 | 12 | {% if devices %} |
|
2 | 13 | <div class="panel panel-default"> |
|
3 | 14 | <div class="panel-heading"> |
|
4 | 15 | <h3>Devices</h3> |
|
5 | 16 | </div> |
|
6 | 17 | <div class="list-group"> |
|
7 | 18 | {% for item in devices %} |
|
8 |
<a href="/{{item.device_type__alias}}/{{item.configuration__id}}/" class="list-group-item {{item.active}}"> |
|
|
19 | <a href="/{{item.device_type__alias}}/{{item.configuration__id}}/" class="list-group-item {{item.active}}">{{item.device_type__alias}}</a> | |
|
9 | 20 | {% endfor %} |
|
10 | 21 | </div> |
|
11 | 22 | </div> |
|
12 | 23 | {% endif %} No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now