experiment_summary.html
157 lines
| 5.2 KiB
| text/html
|
HtmlDjangoLexer
|
r151 | {% extends "base.html" %} | ||
{% load bootstrap3 %} | ||||
{% load static %} | ||||
{% load main_tags %} | ||||
{% block extra-head %} | ||||
<link href="{% static 'css/bootstrap-datetimepicker.min.css' %}" media="screen" rel="stylesheet"> | ||||
{% endblock %} | ||||
{% block exp-active %}active{% endblock %} | ||||
{% block content-title %}{{title}}{% endblock %} | ||||
{% block content-suptitle %}{{suptitle}}{% endblock %} | ||||
{% block content %} | ||||
{% block menu-actions %} | ||||
<!-- <span class=" dropdown pull-right"> | ||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-menu-hamburger gi-2x" aria-hidden="true"></span></a> | ||||
<ul class="dropdown-menu" role="menu"> | ||||
<li><a href="{% url 'url_edit_experiment' experiment.id %}"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</a></li> | ||||
<li><a href="{% url 'url_delete_experiment' experiment.id %}"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Delete</a></li> | ||||
<li><a href="{{ experiment.get_absolute_url_import }}"><span class="glyphicon glyphicon-import" aria-hidden="true"></span> Import </a></li> | ||||
|
r227 | <li><a href="{{ experiment.get_absolute_url_export }}"><span class="glyphicon glyphicon-export" aria-hidden="true"></span> Export </a></li> | ||
|
r151 | {% block extra-menu-actions %} | ||
{% endblock %} | ||||
<li><a>----------------</a></li> | ||||
<li><a href="{% url 'url_mix_experiment' experiment.id %}"><span class="glyphicon glyphicon-random" aria-hidden="true"></span> Mix RC Configurations </a></li> | ||||
<li><a href="{% url 'url_add_dev_conf' experiment.id %}"><span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> Add Configuration</a></li> | ||||
<li><a href=#><span class="glyphicon glyphicon-check" aria-hidden="true"></span> Verify Parameters</a></li> | ||||
|
r227 | </ul> | ||
|
r151 | </span> --> | ||
{% endblock %} | ||||
<table class="table table-bordered"> | ||||
{% for key in experiment_keys %} | ||||
<tr><th>{{key|title}}</th><td>{{experiment|attr:key}}</td></tr> | ||||
{% endfor %} | ||||
</table> | ||||
{% for configuration in configurations %} | ||||
|
r157 | |||
|
r151 | {% if configuration.device.device_type.name == 'dds' %} | ||
|
r157 | <div class=""> | ||
<h4 class="panel-title"><b> DDS </b></h4> | ||||
<br> | ||||
</div> | ||||
<table class="table table-bordered"> | ||||
<!--<h4 class="panel-title"> </h4>--> | ||||
<tr><th>dds</th><td>(=</td></tr> | ||||
</table> | ||||
|
r151 | {% endif %} | ||
|
r227 | |||
|
r151 | {% if configuration.device.device_type.name == 'rc' %} | ||
|
r157 | <div class=""> | ||
<h4 class="panel-title"><b> CR </b></h4> | ||||
<br> | ||||
</div> | ||||
|
r227 | |||
|
r157 | <table class="table table-bordered"> | ||
<!--<h4 class="panel-title"> </h4>--> | ||||
<tr><th>IPP(km)</th><td>{{experiment_data.configurations.rc.ipp}}</td></tr> | ||||
<tr><th>NTX</th><td>{{experiment_data.configurations.rc.ntx}}</td></tr> | ||||
<tr><th>Code</th><td>{{code}}</td></tr> | ||||
|
r227 | |||
<!--Jueves 01-12-2016--> | ||||
{% if lines %} | ||||
<tr><th>TAU</th><td>{{rc_delays_num}} taus (km): {{rc_delays|linebreaks}}</td></tr> | ||||
{% for tx_line in tx_lines %} | ||||
<tr><th>{{tx_line.name}}</th><td>{{tx_line.parameters.pulse_width}}km</td></tr> | ||||
{% endfor %} | ||||
{% for windows_line in windows_lines%} | ||||
<tr><th>{{windows_line.name}}</th><td>{{windows_line.parameters|linebreaks}}</td></tr> | ||||
{% endfor %} | ||||
{% for code_line in code_lines%} | ||||
<tr><th>{{code_line.name}}</th><td>{{code_line.code_name}}</td></tr> | ||||
{% endfor %} | ||||
{% for progpulses_line in progpulses_lines%} | ||||
<tr><th>{{progpulses_line.name}}</th><td>{{progpulses_line.parameters|linebreaks}}</td></tr> | ||||
{% endfor %} | ||||
{% endif %} | ||||
<!--FIN--> | ||||
|
r157 | </table> | ||
|
r151 | {% endif %} | ||
|
r227 | |||
|
r151 | {% if configuration.device.device_type.name == 'jars' %} | ||
|
r157 | <div class=""> | ||
<h4 class="panel-title"><b> JARS </b></h4> | ||||
<br> | ||||
</div> | ||||
|
r227 | |||
|
r157 | <table class="table table-bordered"> | ||
<!--<h4 class="panel-title"> JARS </h4>--> | ||||
<tr><th>Data Type</th><td>{{exp_type}}</td></tr> | ||||
<tr><th># Channels</th><td>{{configuration.channels_number}}</td></tr> | ||||
<tr><th>Coh Int</th><td>{{configuration.cohe_integr}}</td></tr> | ||||
<tr><th>FFT Points</th><td>{{configuration.fftpoints}}</td></tr> | ||||
{% if exp_type == 'PDATA'%} | ||||
<tr><th>Inc Int</th><td>{{configuration.incohe_integr}}</td></tr> | ||||
<tr><th>Spec. Comb.</th><td>{{configuration.spectral}}</td></tr> | ||||
{% endif %} | ||||
<tr><th>Acq Prof</th><td>{{configuration.acq_profiles}}</td></tr> | ||||
<tr><th>Prof x Block</th><td>{{configuration.profiles_block}}</td></tr> | ||||
<tr><th>Block x File</th><td>{{ configuration.raw_data_blocks }}</td></tr> | ||||
</table> | ||||
|
r151 | {% endif %} | ||
|
r227 | |||
|
r151 | {% endfor %} | ||
|
r157 | |||
<div class=""> | ||||
<h4 class="panel-title"><b> Extra Parameters </b></h4> | ||||
<br> | ||||
</div> | ||||
<table class="table table-bordered"> | ||||
{% if jars_conf %} | ||||
<tr><th>Rate (MB/h)</th><td>{{ rate }}</td></tr> | ||||
{% endif %} | ||||
{% if dds_conf %} | ||||
<tr><th>Vmax (m/s)</th><td>{{ rate }}</td></tr> | ||||
{% endif %} | ||||
|
r151 | </table> | ||
|
r157 | |||
|
r151 | <div class="pull-right"> | ||
<button type="button" class="btn btn-primary" id="bt_back">Back</button> | ||||
<button type="button" class="btn btn-primary" id="bt_verify">Verify Parameters</button> | ||||
</div> | ||||
{% endblock %} | ||||
{% block sidebar%} | ||||
{% include "sidebar_devices.html" %} | ||||
{% endblock %} | ||||
{% block extra-js%} | ||||
<script type="text/javascript"> | ||||
|
r227 | |||
|
r151 | $(".clickable-row").click(function() { | ||
document.location = $(this).data("href"); | ||||
}); | ||||
|
r227 | |||
|
r151 | $("#bt_back").click(function() { | ||
document.location = "{% url 'url_experiment' experiment.id%}"; | ||||
}); | ||||
|
r227 | |||
|
r157 | $("#bt_verify").click(function() { | ||
document.location = "{% url 'url_verify_experiment' experiment.id%}"; | ||||
}); | ||||
|
r227 | |||
|
r151 | </script> | ||
|
r227 | {% endblock %} | ||