Templates added
This commit is contained in:
85
Templates/monthplan/show_monthplan_table.html
Normal file
85
Templates/monthplan/show_monthplan_table.html
Normal file
@@ -0,0 +1,85 @@
|
||||
{% extends "monthplan/base.html" %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table table-hover">
|
||||
{% for item in seq %}
|
||||
|
||||
{% if observations %}
|
||||
{% for obs in observations %}
|
||||
{% if item == obs.row %}
|
||||
<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> {{ item }}</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>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if scans %}
|
||||
{% for scan in scans %}
|
||||
{% if item == scan.row %}
|
||||
<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> {{ item }}</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></td><td></td><td></td><td>{{ scan.target }} T{{ scan.template }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if seances %}
|
||||
{% for seance in seances %}
|
||||
{% if item == seance.row %}
|
||||
<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> {{ item }}</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>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if corrections %}
|
||||
{% for cor in corrections %}
|
||||
{% if item == cor.row %}
|
||||
<tr class="{% if cor.is_past_due %}bg-success{% endif %}{% if cor.is_future %} bg-info{% endif %}{% if cor.is_current %} bg-danger{% endif %}">
|
||||
<td ><span class="glyphicon glyphicon-flash"></span> {{ item }}</td>
|
||||
<td>{{ cor.start|date:"d M Y H:i:s" }}</td><td>{{ cor.stop|date:"d M Y H:i:s" }}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>IMPSTART: {{ cor.impstart }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if surveys %}
|
||||
{% for sur in surveys %}
|
||||
{% if item == sur.row %}
|
||||
<tr class="{% if sur.is_past_due %}bg-success{% endif %}{% if sur.is_future %} bg-info{% endif %}{% if sur.is_current %} bg-danger{% endif %}">
|
||||
<td><span class="glyphicon glyphicon-repeat"></span> {{ item }}</td>
|
||||
<td><a href="{{ sur.get_absolute_url_logbook_start }}">{{ sur.start|date:"d M Y H:i:s" }}</a></td>
|
||||
<td><a href="{{ sur.get_absolute_url_logbook_stop }}">{{ sur.stop|date:"d M Y H:i:s" }}</a></td>
|
||||
<td><a href="{{ sur.get_absolute_url }}">{{ sur.experiment }}</a></td><td>{{ sur.ra_p }}</td><td>{{ sur.dec_p }}</td><td></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user