103 lines
3.5 KiB
HTML
103 lines
3.5 KiB
HTML
{% extends "monthplan/base.html" %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
<table class="table table-hover">
|
|
|
|
{% if seances %}
|
|
<thead>
|
|
<tr><th scope="col" colspan="4">Seances</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|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ seance.get_absolute_url_logbook_stop }}">{{ seance.stop|date:"d M Y H:i:s" }}</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">Corrections</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for cor in corrections %}
|
|
<tr>
|
|
<td><span class="glyphicon glyphicon-flash"></span></td>
|
|
<td>{{ cor.start|date:"d M Y H:i:s" }}</td><td>{{ cor.stop|date:"d M Y H:i:s" }}</td><td>IMPSTART: {{ cor.impstart|date:"d M Y H:i:s" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endif %}
|
|
|
|
{% if observations %}
|
|
<thead>
|
|
<tr><th scope="col" colspan="4">Observations</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|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ obs.get_absolute_url_logbook_stop }}">{{ obs.stop|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ obs.get_absolute_url }}">{{ obs.experiment }}</a></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|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ scan.get_absolute_url_logbook_stop }}">{{ scan.stop|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ scan.get_absolute_url }}">{{ scan.experiment }}</a></td><td>{{ scan.target }}</td><td>template {{ scan.template }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endif %}
|
|
|
|
{% if surveys %}
|
|
<thead>
|
|
<tr><th scope="col" colspan="4">Обзоры неба</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for survey in surveys %}
|
|
<tr class="{% if survey.is_past_due %}bg-success{% endif %}{% if survey.is_future %} bg-info{% endif %}{% if survey.is_current %} bg-danger{% endif %}">
|
|
<td><span class="glyphicon glyphicon-repeat"></span></td>
|
|
<td><a href="{{ survey.get_absolute_url_logbook_start }}">{{ survey.start|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ survey.get_absolute_url_logbook_stop }}">{{ survey.stop|date:"d M Y H:i:s" }}</a></td>
|
|
<td><a href="{{ survey.get_absolute_url }}">{{ survey.experiment }}</a></td><td>{{ survey.target }}</td><td>
|
|
|
|
<b>ra_p</b>: {{ survey.ra_p }},
|
|
<b>dec_p</b>: {{ survey.dec_p }},<br>
|
|
<b>ra_z0</b>: {{ survey.ra_z0 }},
|
|
<b>dec_z0</b>: {{ survey.dec_z0 }},<br>
|
|
<b>ra_zk</b>: {{ survey.ra_zk }},
|
|
<b>dec_zk</b>: {{ survey.dec_zk }},<br>
|
|
<b>z_speed</b>: {{ survey.z_speed }}
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endif %}
|
|
|
|
</table>
|
|
|
|
{% endblock %}
|