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

50 lines
1.5 KiB
HTML

{% extends "base.html" %}
{% block header %}
<a class="btn btn-success" role="button" href="{% url 'art-xc survey index' %}">ART-XC Survey</a>
<a class="btn btn-success" role="button" href="{% url 'srg data dumps' %}">Daily data dumps</a>
<a class="btn btn-success" role="button" href="{% url 'show sky map form' %}">Show SkyMap</a>
<hr>
{% endblock %}
{% block precontent %}{% endblock %}
{% block content %}
<h4>Selections <small>[<a href="{% url 'create new selection' %}"><span class="glyphicon glyphicon-plus"></span></a>]</small></h4>
{% if selections %}
<table class="table">
<thead>
<tr>
<th class="th-sm">Access</th>
<th class="th-sm">Slug</th>
<th class="th-sm">Name</th>
<th class="th-sm">Sources</th>
<th class="th-sm">Operations</th>
</tr>
</thead>
<tbody>
{% for selection in selections %}
<tr>
<td>
{% if selection.public %}
<span class="glyphicon glyphicon-eye-open"></span>{% else %}<span class="glyphicon glyphicon-eye-close"></span>
{% endif %}
</td>
<td>
<strong>{{ selection.slug }}</strong>
</td>
<td><a href="{{ selection.get_absolute_url }}">{{ selection.name }}</a></td>
<td>{{ selection.skymap_sources.count }}</td>
<td>
<small>[<a href="{{ selection.get_download_url }}">download</a>]</small>
<small>[<a href="{{ selection.get_edit_url }}">edit</a>]</small>
<small>[<a href="{{ selection.get_delete_url }}">delete</a>]</small>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endblock %}