##// END OF EJS Templates
Actualizacion campos y correccion app abs 1sem Sep
Actualizacion campos y correccion app abs 1sem Sep

File last commit:

r338:7377db7c77e8
r340:0cdf785c9933
Show More
experiment.html
105 lines | 4.1 KiB | text/html | HtmlDjangoLexer
Juan C. Espinoza
Updating base models and views ...
r6 {% extends "base.html" %}
Nueva plantilla, prueba comunicacion y nuevos campos ddsrest
r338 {% load bootstrap4 %}
Juan C. Espinoza
Updating base models and views ...
r6 {% load static %}
{% load main_tags %}
{% block extra-head %}
<link href="{% static 'css/bootstrap-datetimepicker.min.css' %}" media="screen" rel="stylesheet">
{% endblock %}
Miguel Urco
Campaign has been added to RadarSys Model...
r13 {% block content-title %}{{title}}{% endblock %}
Juan C. Espinoza
Updating base models and views ...
r6 {% block content-suptitle %}{{suptitle}}{% endblock %}
{% block content %}
Fiorella Quino
Export Campaign ...
r100
{% block menu-actions %}
<span class=" dropdown pull-right">
Nueva plantilla, prueba comunicacion y nuevos campos ddsrest
r338 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fas fa-bars" aria-hidden="true"></span></a>
Fiorella Quino
Export Campaign ...
r100 <ul class="dropdown-menu" role="menu">
Nueva plantilla, prueba comunicacion y nuevos campos ddsrest
r338 <li><a href="{% url 'url_edit_experiment' experiment.id %}"><span class="fa fa-pencil" aria-hidden="true"></span> Edit</a></li>
<li><a href="{% url 'url_delete_experiment' experiment.id %}"><span class="fa fa-times" aria-hidden="true"></span> Delete</a></li>
<li><a href="{{ experiment.get_absolute_url_import }}"><span class="fas fa-cloud-download-alt" aria-hidden="true"></span> Import </a></li>
<li><a href="{{ experiment.get_absolute_url_export }}"><span class="fas fa-cloud-upload-alt" aria-hidden="true"></span> Export </a></li>
Fiorella Quino
Export Campaign ...
r100 <li><a>----------------</a></li>
Nueva plantilla, prueba comunicacion y nuevos campos ddsrest
r338 <li><a href="{{ experiment.get_absolute_url_start}}"><span class="fa fa-play" aria-hidden="true"></span> Start</a></li>
<li><a href="{{ experiment.get_absolute_url_stop }}"><span class="fa fa-stop" aria-hidden="true"></span> Stop</a></li>
<li><a href="{% url 'url_mix_experiment' experiment.id %}"><span class="fa fa-random" aria-hidden="true"></span> Mix RC Configurations </a></li>
<li><a href="{% url 'url_add_dev_conf' experiment.id %}"><span class="fa fa-plus-circle" aria-hidden="true"></span> Add Configuration</a></li>
<li><a href="{% url 'url_sum_experiment' experiment.id %}"><span class="fa fa-list-alt" aria-hidden="true"></span> Summary</a></li>
Fiorella Quino
Import Experiment Function...
r108
Fiorella Quino
frequency field have been added...
r268 </ul>
Fiorella Quino
Export Campaign ...
r100 </span>
{% endblock %}
Juan C. Espinoza
Updating base models and views ...
r6 <table class="table table-bordered">
{% for key in experiment_keys %}
Fiorella Quino
frequency field have been added...
r268 {% if key == 'freq' %}
<tr><th>Operating Freq. (MHz)</th><td>{{experiment|attr:key}}</td></tr>
{% else %}
<tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr>
{% endif %}
Juan C. Espinoza
Updating base models and views ...
r6 {% endfor %}
</table>
Juan C. Espinoza
Use of cards instead of tables in operation & experiment views...
r216 <br>
Juan C. Espinoza
Updating base models and views ...
r6
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
Miguel Urco
Campaign has been added to RadarSys Model...
r13
Juan C. Espinoza
Use of cards instead of tables in operation & experiment views...
r216 <div class="panel panel-default bootcards-summary">
<div class="panel-heading" role="tab">
Fiorella Quino
frequency field have been added...
r268 <h4 class="panel-title">
Devices
Juan C. Espinoza
Updating base models and views ...
r6 </h4>
</div>
<div class="panel-body">
Fiorella Quino
frequency field have been added...
r268
Miguel Urco
Campaign has been added to RadarSys Model...
r13 {% for item in configurations %}
Juan C. Espinoza
Fix experiment views (summary & verify)...
r239 <div class="col-xs-6 col-sm-4" style="padding-top:5px;padding-bottom:5px">
Juan C. Espinoza
Use of cards instead of tables in operation & experiment views...
r216 <a class="bootcards-summary-item" href="{{item.get_absolute_url}}"><br>
{% if item.device.device_type.name == 'cgs' %}
<i class="fa fa-2x fa-clock-o"></i>
{% elif item.device.device_type.name == 'rc' %}
<i class="fa fa-2x fa-microchip"></i>
{% elif item.device.device_type.name == 'abs' %}
<i class="fa fa-2x fa-podcast"></i>
{% elif item.device.device_type.name == 'jars' %}
<i class="fa fa-2x fa-desktop"></i>
{% elif item.device.device_type.name == 'dds' %}
<i class="fa fa-2x fa-bar-chart"></i>
{% else %}
<i class="fa fa-3x fa-puzzle-piece"></i>
{%endif%}
<h4>{{item}}<br><small>{{item.device.ip_address}}</small>
Juan C. Espinoza
Check for active configuration for status update
r329 {%if item.pk != item.device.conf_active %}
Fix mix experiment and scheduler
r311 <span class="label label-info">Configured</span>
{%else%}
<span class="label label-{{item.device.status_color}}">{{item.device.get_status_display}}</span>
Juan C. Espinoza
Check for active configuration for status update
r329 {%endif%}
Fix mix experiment and scheduler
r311 </h4>
Juan C. Espinoza
Use of cards instead of tables in operation & experiment views...
r216 </a>
</div>
Juan C. Espinoza
Updating base models and views ...
r6 {% endfor %}
Fiorella Quino
frequency field have been added...
r268
</div>
Juan C. Espinoza
Updating base models and views ...
r6 </div>
</div>
{% endblock %}
{% block sidebar%}
{% include "sidebar_devices.html" %}
{% endblock %}
{% block extra-js%}
<script type="text/javascript">
Fiorella Quino
frequency field have been added...
r268
Juan C. Espinoza
Updating base models and views ...
r6 $(".clickable-row").click(function() {
document.location = $(this).data("href");
});
Fiorella Quino
frequency field have been added...
r268
Miguel Urco
Export and Send buttons added to templates...
r15 $("#bt_edit").click(function() {
Miguel Urco
Campaign has been added to RadarSys Model...
r13 document.location = "{% url 'url_edit_experiment' experiment.id%}";
});
Fiorella Quino
frequency field have been added...
r268
Miguel Urco
Campaign has been added to RadarSys Model...
r13 $("#bt_add_conf").click(function() {
Juan C. Espinoza
Update several views and models in main app...
r85 document.location = "{% url 'url_add_dev_conf' experiment.id %}";
Juan C. Espinoza
Updating base models and views ...
r6 });
Fiorella Quino
frequency field have been added...
r268
Juan C. Espinoza
Updating base models and views ...
r6 </script>
Fiorella Quino
frequency field have been added...
r268 {% endblock %}