Templates added
This commit is contained in:
49
Templates/artsurvey/types.html
Normal file
49
Templates/artsurvey/types.html
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
{% extends "artsurvey/base.html" %}
|
||||
{% load heasarc_templates %}
|
||||
|
||||
{% block header %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
<h2>ArtSurvey {{ survey }}</h2>
|
||||
|
||||
|
||||
<table class="table">
|
||||
{% for type in types %}
|
||||
<tr>
|
||||
<td>{{ type.class_id }}</td>
|
||||
<td><a href="/artsurvey/type/{{ type.class_id }}/show">{{ type }}</a></td>
|
||||
<td>
|
||||
{% if survey %}
|
||||
{% call_artsurvey_types_count type survey %}
|
||||
{% else %}
|
||||
{{ type.get_artsurvey_count_all }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h3>Full list of HEASARC object <a target="_blank" href="{% url 'heasarc object types' %}">Types<sup><span class="glyphicon glyphicon-new-window"></span> </sup></a></h3>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user