Templates added
This commit is contained in:
88
Templates/artsurvey/search_name.html
Normal file
88
Templates/artsurvey/search_name.html
Normal file
@@ -0,0 +1,88 @@
|
||||
{% extends "mdb.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block header %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<p>
|
||||
<a href="{% url 'artsurvey index' %}">Back to SRG.ArXiv</a>
|
||||
<h3>Search by name</h3>
|
||||
<p>Limited by 100 records</p>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<form action="/srgz/search" method="post">
|
||||
{% csrf_token %}
|
||||
<table class="table">
|
||||
{{ form }}
|
||||
</table>
|
||||
<input type="submit" class="btn btn-primary" value="Search" />
|
||||
</form>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-8">
|
||||
<h3>ART-XC sources</h3>
|
||||
<table class="table" style="padding: 1px;">
|
||||
<thead>
|
||||
<th></th>
|
||||
<th>Source</th>
|
||||
<th>CName</th>
|
||||
<th>Flux</th>
|
||||
<th>Type</th>
|
||||
<th>Notes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for src in srcs %}
|
||||
<tr>
|
||||
<td>{{ forloop.counter }}</td>
|
||||
<td><a href="{{ src.get_absolute_url }}"><b>{{ src }}</b></a></td>
|
||||
<td><b>{{ src.cname }}</b></td>
|
||||
<td>{{ src.flux|stringformat:"1.2e" }}</td>
|
||||
<td>
|
||||
{{ src.get_otype }}
|
||||
</td>
|
||||
<td>
|
||||
{% for paper in src.catalog.all %}
|
||||
{{ paper }},
|
||||
{% endfor %}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user