179 lines
8.5 KiB
HTML
179 lines
8.5 KiB
HTML
{% extends "base.html" %}
|
|
{% load tags %}
|
|
{% load staticfiles %}
|
|
|
|
{% block title %} - Observations{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>
|
|
Observations
|
|
<div class="pull-right">
|
|
<a class="btn btn-default" role="button" data-toggle="collapse"
|
|
href="#collapseFilters" aria-expanded="false" aria-controls="collapseFilters">
|
|
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> Filters
|
|
</a>
|
|
<a class="btn btn-default" role="button" href="#legend" data-toggle="modal" data-target="#LegendModal">
|
|
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> Legend
|
|
</a>
|
|
{% if can_schedule %}
|
|
<a class="btn btn-primary" href="{% url 'base:observation_new' %}">New Observation</a>
|
|
{% endif %}
|
|
</div>
|
|
</h1>
|
|
|
|
<div class="collapse{% if norad %} in{% endif %}" id="collapseFilters">
|
|
<div class="filter-section row">
|
|
<form id="observation-filter" class="form" methon="get" action="{% url 'base:observations_list' %}">
|
|
<div class="form-group col-md-3">
|
|
<label for="data-selector">Data</label>
|
|
<div id="data-selector" class="btn-group" data-toggle="buttons">
|
|
<label class="btn btn-future btn-sm {% if future == '1' %}active{% endif %}" aria-expanded="true" aria-controls="future">
|
|
<input type="checkbox" name="future" {% if future == '1' %}checked{% endif %} autocomplete="off">Future
|
|
</label>
|
|
<label class="btn btn-good btn-sm {% if good == '1' %}active{% endif %}" aria-expanded="true" aria-controls="good">
|
|
<input type="checkbox" name="good" {% if good == '1' %}checked{% endif %} autocomplete="off">Good
|
|
</label>
|
|
<label class="btn btn-bad btn-sm {% if bad == '1' %}active{% endif %}" aria-expanded="true" aria-controls="bad">
|
|
<input type="checkbox" name="bad" {% if bad == '1' %}checked{% endif %} autocomplete="off">Bad
|
|
</label>
|
|
<label class="btn btn-unknown btn-sm {% if unvetted == '1' %}active{% endif %}" aria-expanded="true" aria-controls="unvetted">
|
|
<input type="checkbox" name="unvetted" {% if unvetted == '1' %}checked{% endif %} autocomplete="off">Unvetted
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label for="satellite-selection">Satellite</label>
|
|
<select class="form-control" name="norad" autocomplete="off" id="satellite-selection">
|
|
<option value="" selected>All</option>
|
|
{% for satellite in satellites %}
|
|
<option data-norad="{{ satellite.norad_cat_id }}" value="{{ satellite.norad_cat_id }}"
|
|
{% ifequal satellite.norad_cat_id norad %}selected{% endifequal %}>
|
|
{{ satellite.norad_cat_id }} - {{ satellite.name }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label for="observer-selection">Observer</label>
|
|
<select class="form-control" name="observer" autocomplete="off" id="observer-selection">
|
|
<option value="" selected>All</option>
|
|
{% for author in authors %}
|
|
<option data-author="{{ author.id }}" value="{{ author.id }}"
|
|
{% ifequal author.id observer_id %}selected{% endifequal %}>
|
|
{{ author.displayname }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label for="station-selection">Station</label>
|
|
<select class="form-control" name="station" autocomplete="off" id="station-selection">
|
|
<option value="" selected>All</option>
|
|
{% for station in stations %}
|
|
<option data-station="{{ station }}" value="{{ station.id }}"
|
|
{% ifequal station.id station_id %}selected{% endifequal %}>
|
|
{{ station.id }} - {{ station.name }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<th>ID</th>
|
|
<th>Satellite</th>
|
|
<th>Frequency</th>
|
|
<th>Encoding</th>
|
|
<th>Timeframe</th>
|
|
<th>Results</th>
|
|
<th>Observer</th>
|
|
<th>Station</th>
|
|
</thead>
|
|
<tbody>
|
|
{% for observation in observations %}
|
|
<tr data-norad="{{ observation.satellite.norad_cat_id }}"
|
|
{% if observation.id in scheduled %}class="bg-info"{% endif %}>
|
|
<td>
|
|
<a href="{% url 'base:observation_view' id=observation.id %}" class="obs-link">
|
|
{% if observation.is_vetted %}
|
|
<span class="label label-{{observation.vetted_status }}">{{ observation.id }}</span>
|
|
{% elif observation.is_future %}
|
|
<span class="label label-future">{{ observation.id }}</span>
|
|
{% else %}
|
|
<span class="label label-unknown">{{ observation.id }}</span>
|
|
{% endif %}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="#" data-toggle="modal" data-target="#SatelliteModal" data-id="{{ observation.satellite.norad_cat_id }}">
|
|
{{ observation.satellite.name }}
|
|
</a>
|
|
</td>
|
|
<td>{{ observation.transmitter.downlink_low|frq }}</td>
|
|
<td>
|
|
<span data-toggle="tooltip" data-placement="bottom" title="{{ observation.transmitter.description }}">
|
|
{{ observation.transmitter.mode|default:"-" }}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<span data-toggle="tooltip" data-placement="bottom" title="{{ observation.start|timesince }} ago">
|
|
<span class="datetime-date">{{ observation.start|date:"Y-m-d" }}</span>
|
|
<span class="datetime-time">{{ observation.start|date:"H:i:s" }}</span><br>
|
|
</span>
|
|
<span data-toggle="tooltip" data-placement="bottom" title="{{ observation.end|timesince }} ago">
|
|
<span class="datetime-date">{{ observation.end|date:"Y-m-d" }}</span>
|
|
<span class="datetime-time">{{ observation.end|date:"H:i:s" }}</span>
|
|
</span>
|
|
</td>
|
|
<td>
|
|
{% if observation.waterfall %}
|
|
<span class="glyphicon glyphicon-picture" aria-hidden="true"
|
|
data-toggle="tooltip" data-placement="bottom"
|
|
title="Waterfall uploaded"></span>
|
|
{% endif %}
|
|
{% if observation.has_audio %}
|
|
<span class="glyphicon glyphicon-volume-up" aria-hidden="true"
|
|
data-toggle="tooltip" data-placement="bottom"
|
|
title="Audio uploaded"></span>
|
|
{% endif %}
|
|
{% if observation.demoddata.all %}
|
|
<span class="glyphicon glyphicon-file" aria-hidden="true"
|
|
data-toggle="tooltip" data-placement="bottom"
|
|
title="{{ observation.demoddata.all|length }} Data uploaded"></span>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<a href="{% url 'users:view_user' username=observation.author.username %}">
|
|
{{ observation.author.displayname }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{% if observation.ground_station %}
|
|
<a href="{% url 'base:station_view' id=observation.ground_station.id %}">
|
|
{{ observation.ground_station }}
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% if is_paginated %}{% load paginator %}{% paginator request 3 %}{% endif %}
|
|
Query returned {{ observations|length }} observation{{ observations|length|pluralize }}.
|
|
<a id="open-all" href="#">Open all in tabs</a>
|
|
</div>
|
|
</div>
|
|
{% include 'includes/satellite.html' %}
|
|
{% include 'includes/legend.html' %}
|
|
{% endblock content %}
|
|
|
|
{% block javascript %}
|
|
<script src="{% static 'js/observations.js' %}"></script>
|
|
<script src="{% static 'js/satellite.js' %}"></script>
|
|
{% endblock javascript %}
|