##// END OF EJS Templates
base.html and sidebar_devices.html were updated...
Miguel Urco -
r10:0ed3518d4d4d
parent child
Show More
@@ -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
@@ -64,6 +64,15
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>
@@ -75,13 +84,8
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
@@ -1,3 +1,14
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">
@@ -5,7 +16,7
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}}"><h4>{{item.device_type__name}}</h4></a>
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>
General Comments 0
You need to be logged in to leave comments. Login now