31 lines
812 B
HTML
31 lines
812 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">Search {% if term %}for {{ term }} - {{ results|length }} result{{results|length|pluralize:"s" }}{% else %}database{% endif %}</div>
|
|
<div class="panel-body">
|
|
<p>
|
|
<form class="form" method="get" action="{% url "whoisdb:search" %}">
|
|
<input type="text" name="q" placeholder="Search in DB">
|
|
<button class="btn btn-primary">Search</button>
|
|
</form>
|
|
</p>
|
|
{% if term and not results %}
|
|
No objects found.
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% for obj in results %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
{% include "whoisdb/handle_panel.html" with object=obj %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|