dnmgmt/templates/whoisdb/search.html

31 lines
812 B
HTML
Raw Normal View History

2017-03-27 13:29:32 +02:00
{% extends "base.html" %}
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
2017-03-28 02:05:30 +02:00
<div class="panel-heading">Search {% if term %}for {{ term }} - {{ results|length }} result{{results|length|pluralize:"s" }}{% else %}database{% endif %}</div>
2017-03-27 13:29:32 +02:00
<div class="panel-body">
<p>
2017-04-15 16:44:38 +02:00
<form class="form" method="get" action="{% url "whoisdb:search" %}">
2017-03-27 13:29:32 +02:00
<input type="text" name="q" placeholder="Search in DB">
<button class="btn btn-primary">Search</button>
</form>
</p>
2017-03-28 02:05:30 +02:00
{% if term and not results %}
No objects found.
{% endif %}
2017-03-27 13:29:32 +02:00
</div>
</div>
</div>
</div>
2017-03-28 02:05:30 +02:00
{% for obj in results %}
<div class="row">
<div class="col-sm-12">
2017-04-15 16:59:37 +02:00
{% include "whoisdb/handle_panel.html" with object=obj %}
2017-03-28 02:05:30 +02:00
</div>
</div>
{% endfor %}
{% endblock %}