Templates added
This commit is contained in:
49
Templates/srgcat/edit_all_selections.html
Normal file
49
Templates/srgcat/edit_all_selections.html
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
{% 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 %}
|
||||
|
Reference in New Issue
Block a user