srg/Templates/monthplan/show_observation_info.html
2024-06-05 11:33:02 +03:00

164 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "monthplan/base.html" %}
{% block content %}
<table class="table table-hover">
{% if observation %}
<thead>
<tr><th scope="col" colspan="4">Observations</th></tr>
</thead>
<tbody>
<tr class="{% if observation.is_past_due %}bg-success{% endif %}{% if observation.is_future %} bg-info{% endif %}{% if observation.is_current %} bg-danger{% endif %}">
<td><span class="glyphicon glyphicon-screenshot"></span></td>
<td><a href="{{ observation.get_absolute_url_logbook_start }}">{{ observation.start|date:"d M Y H:i:s" }}</a></td>
<td><a href="{{ observation.get_absolute_url_logbook_stop }}">{{ observation.stop|date:"d M Y H:i:s" }}</a></td>
<td><a href="{{ observation.get_absolute_url }}">{{ observation.experiment }}</a></td><td>{{ observation.ra|floatformat:4 }}</td><td>{{ observation.dec|floatformat:4 }}</td><td>{{ observation.target }}</td>
</tr>
</tbody>
{% endif %}
</table>
{% if flightplans and user.is_authenticated %}
<table class="table table-hover">
<thead>
<tr><th scope="col" colspan="4">Flight program</th></tr>
</thead>
<tbody>
{% for obs in flightplans %}
<tr class="{% if obs.is_past_due %}bg-success{% endif %}{% if obs.is_future %} bg-info{% endif %}{% if obs.is_current %} bg-danger{% endif %}">
<td>
{% if obs.valid %}
<span class="glyphicon glyphicon-ok"></span>
{% else %}
<span class="glyphicon glyphicon-remove"></span>
{% endif %}
</td>
<td>{{ obs.start|date:"d M Y H:i:s"}}</td>
<td>{{ obs.stop|date:"d M Y H:i:s"}}</td>
<td><a href="{{ obs.get_absolute_url }}">{{ obs.experiment }}</a></td>
<td>RA: {{ obs.ra|floatformat:4 }}</td>
<td>Dec: {{ obs.dec|floatformat:4 }}</td>
<td>Загружено: {{ obs.load_stamp|date:"d M Y" }}</td>
</tr>
<tr>
<td>MJD</td>
<td>{{ obs.mjd_start|floatformat:6}}</td>
<td>{{ obs.mjd_stop|floatformat:6}}</td>
<td>Q1: {{ obs.q1 }}</td>
<td>Q2: {{ obs.q2 }}</td>
<td>Q3: {{ obs.q3 }}</td>
<td>Q4: {{ obs.q4 }}</td>
</tr>
<tr>
<td>OBT</td>
<td>{{ obs.obt_start|floatformat:4}}</td>
<td>{{ obs.obt_stop|floatformat:4}}</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<!--tr>
<td>НПОЛ (UTC)</td>
<td>{{ obs.start_npol}}</td>
<td>{{ obs.stop_npol}}</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr-->
{% endfor %}
</tbody>
</table>
{% endif %}
<table class="table table-hover">
{% if seances %}
<thead>
<tr><th scope="col" colspan="4">Сеансы связи с КА</th></tr>
</thead>
<tbody>
{% for seance in seances %}
<tr class="{% if seance.is_past_due %}bg-success{% endif %}{% if seance.is_future %} bg-info{% endif %}{% if seance.is_current %} bg-danger{% endif %}">
<td><span class="glyphicon glyphicon-time"></span></td>
<td><a href="{{ seance.get_absolute_url_logbook_start }}">{{ seance.start }}</a></td>
<td><a href="{{ seance.get_absolute_url_logbook_stop }}">{{ seance.stop }}</a></td>
<td></td>
<td></td>
<td></td>
<td>{{ seance.stations }}</td>
</tr>
{% endfor %}
</tbody>
{% endif %}
{% if corrections %}
<thead>
<tr><th scope="col" colspan="4">Коррекция траектории КА</th></tr>
</thead>
<tbody>
{% for cor in corrections %}
<tr>
<td><span class="glyphicon glyphicon-flash"></span></td>
<td>{{ cor.start }}</td><td>{{ cor.stop }}</td><td>IMPSTART: {{ cor.impstart }}</td>
</tr>
{% endfor %}
</tbody>
{% endif %}
{% if observations %}
<thead>
<tr><th scope="col" colspan="4">Наблюдения</th></tr>
</thead>
<tbody>
{% for obs in observations %}
<tr class="{% if obs.is_past_due %}bg-success{% endif %}{% if obs.is_future %} bg-info{% endif %}{% if obs.is_current %} bg-danger{% endif %}">
<td><span class="glyphicon glyphicon-screenshot"></span></td>
<td><a href="{{ obs.get_absolute_url_logbook_start }}">{{ obs.start }}</a></td>
<td><a href="{{ obs.get_absolute_url_logbook_stop }}">{{ obs.stop }}</a></td>
<td>{{ obs.experiment }}</td><td>{{ obs.ra|floatformat:4 }}</td><td>{{ obs.dec|floatformat:4 }}</td><td>{{ obs.target }}</td>
</tr>
{% endfor %}
</tbody>
{% endif %}
{% if scans %}
<thead>
<tr><th scope="col" colspan="4">Сканирующие наблюдения участков неба</th></tr>
</thead>
<tbody>
{% for scan in scans %}
<tr class="{% if scan.is_past_due %}bg-success{% endif %}{% if scan.is_future %} bg-info{% endif %}{% if scan.is_current %} bg-danger{% endif %}">
<td><span class="glyphicon glyphicon-retweet"></span></td>
<td><a href="{{ scan.get_absolute_url_logbook_start }}">{{ scan.start }}</a></td>
<td><a href="{{ scan.get_absolute_url_logbook_stop }}">{{ scan.stop }}</a></td>
<td>{{ scan.experiment }}</td><td>{{ scan.target }}</td><td>template {{ scan.template }}</td>
</tr>
{% endfor %}
</tbody>
{% endif %}
{% if datadumps %}
<thead>
<tr><th scope="col" colspan="4">Сбросы данных</th></tr>
</thead>
<tbody>
{% for dd in datadumps %}
<tr>
<td><span class="glyphicon glyphicon-save"></span></td>
<td>{{ dd.start|date:"d M Y H:i:s" }}</td>
<td>{{ dd.stop|date:"d M Y H:i:s" }}</td><td>{{ dd.tstart }} {{ dd.tstop }}</td>
<td>{{ dd.name }}</td><td>{{ dd.filename }}</td>
</tr>
{% endfor %}
</tbody>
{% endif %}
</table>
{% endblock %}