Templates added
This commit is contained in:
63
Templates/srgcat/selection.html
Normal file
63
Templates/srgcat/selection.html
Normal file
@@ -0,0 +1,63 @@
|
||||
|
||||
{% 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 %}
|
||||
<h2>Create/update new user-defined Selection</h2>
|
||||
{% if message %}
|
||||
<div class="alert alert-warning">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if form %}
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
<p>Hint: For a compact view, please use the shortest <em>Short name (slug)</em></p>
|
||||
{% endif %}
|
||||
|
||||
{% 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