2022-07-21 12:45:28 +00:00
|
|
|
{% extends "base.html" %}
|
2022-07-21 12:46:48 +00:00
|
|
|
{% load static %}
|
2022-07-21 12:45:28 +00:00
|
|
|
{% block content %}
|
2022-07-21 12:46:48 +00:00
|
|
|
<h1 class="title">Welcome to search, {{ user.first_name }}!</h1>
|
2022-07-21 12:45:28 +00:00
|
|
|
|
2022-07-21 12:46:05 +00:00
|
|
|
<div class="container">
|
2022-07-21 12:46:48 +00:00
|
|
|
<div class="row vertical-offset-100">
|
|
|
|
<div class="col-md-4 col-md-offset-4">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
{% if query is not None %}
|
|
|
|
<h3 class="panel-title">Searching for {{ query }}</h3>
|
2022-07-21 12:46:05 +00:00
|
|
|
{% else %}
|
2022-07-21 12:46:48 +00:00
|
|
|
<h3 class="panel-title">Search our database</h3>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
{% if query is None %}
|
|
|
|
<form method="POST">
|
|
|
|
<fieldset>
|
|
|
|
{% csrf_token %}
|
|
|
|
<input class="textinput textInput form-control" type="text" name="query">
|
|
|
|
<input class="btn btn-lg btn-dark btn-block" type="submit" value="Search">
|
|
|
|
</fieldset>
|
2022-07-21 12:46:05 +00:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
2022-07-21 12:46:48 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|