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

89 lines
1.4 KiB
HTML

{% 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 %}