experiment_summary.html
103 lines
| 3.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 %} | ||||
<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 | |||
|
r239 | <div class=""> | ||
<h4 class="panel-title"><b> {{configuration}}</b></h4> | ||||
<br> | ||||
</div> | ||||
{% if configuration.device.device_type.name == 'dds' %} | ||||
<table class="table table-bordered"> | ||||
|
r228 | <tr><th>Frequency A (Mhz)</th><td>{{configuration.frequencyA_Mhz}}</td></tr> | ||
|
r239 | <tr><th>Multiplier</th><td>{{configuration.multiplier}}</td></tr> | ||
|
r157 | </table> | ||
|
r151 | {% endif %} | ||
|
r227 | |||
|
r239 | {% if configuration.device.device_type.name == 'rc' %} | ||
|
r227 | |||
|
r157 | <table class="table table-bordered"> | ||
<!--<h4 class="panel-title"> </h4>--> | ||||
|
r239 | <tr><th>NTXs</th><td>{{configuration.ntx}}</td></tr> | ||
<tr><th>IPP(km)</th><td>{{configuration.ipp}}</td></tr> | ||||
{% for tx_line in configuration.tx_lines %} | ||||
<tr><th colspan="2">{{tx_line.name}}</th></tr> | ||||
<tr><th>Width(km)</th><td>{{tx_line.width}}</td></tr> | ||||
<tr><th>Taus</th><td>{{tx_line.taus}}</td></tr> | ||||
<tr><th>codes</th><td>{{tx_line.codes}}</td></tr> | ||||
<tr><th>Sample Windows</th><td>{{tx_line.windows}}</td></tr> | ||||
{% endfor %} | ||||
|
r157 | </table> | ||
|
r151 | {% endif %} | ||
|
r227 | |||
|
r151 | {% if configuration.device.device_type.name == 'jars' %} | ||
|
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> | ||||
|
r239 | <tr><th>Rate (MB/h)</th><td>{{ rate }}</td></tr> | ||
|
r157 | </table> | ||
|
r151 | {% endif %} | ||
|
r227 | |||
|
r151 | {% endfor %} | ||
|
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 %} | ||