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:51:01 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
2022-07-21 12:49:22 +00:00
|
|
|
<div class="box">
|
2022-07-21 12:49:01 +00:00
|
|
|
<form method="POST">
|
2022-07-21 12:49:11 +00:00
|
|
|
{% csrf_token %}
|
2022-07-21 12:49:22 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label">Search</label>
|
2022-07-21 12:49:11 +00:00
|
|
|
<div class="field-body">
|
|
|
|
<div class="field">
|
|
|
|
<div class="control is-expanded has-icons-left">
|
2022-07-21 12:51:12 +00:00
|
|
|
<input name="query" class="input" type="text" placeholder="msg: science AND nick: BillNye AND channel: #science">
|
2022-07-21 12:49:11 +00:00
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fas fa-magnifying-glass"></i>
|
|
|
|
</span>
|
2022-07-21 12:47:16 +00:00
|
|
|
</div>
|
2022-07-21 12:46:48 +00:00
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
</div>
|
2022-07-21 12:49:11 +00:00
|
|
|
</div>
|
|
|
|
|
2022-07-21 12:49:22 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<label class="label">Results</label>
|
2022-07-21 12:49:11 +00:00
|
|
|
<div class="field">
|
|
|
|
<div class="control is-expanded has-icons-left">
|
|
|
|
<div class="select is-fullwidth">
|
2022-07-21 12:49:32 +00:00
|
|
|
<select name="size">
|
|
|
|
{% for size in sizes %}
|
|
|
|
<option value="{{ size }}">{{ size }}</option>
|
|
|
|
{% endfor %}
|
2022-07-21 12:49:11 +00:00
|
|
|
</select>
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fas fa-magnifying-glass"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-21 12:49:11 +00:00
|
|
|
|
2022-07-21 12:49:22 +00:00
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
2022-07-21 12:51:59 +00:00
|
|
|
<button
|
|
|
|
class="button is-primary is-fullwidth"
|
|
|
|
hx-post="{% url 'search_drilldown' %}"
|
|
|
|
hx-trigger="click"
|
|
|
|
hx-target="#results"
|
2022-07-21 12:52:06 +00:00
|
|
|
hx-swap="innerHTML">
|
2022-07-21 12:49:22 +00:00
|
|
|
Search
|
|
|
|
</button>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
|
2022-07-21 12:49:11 +00:00
|
|
|
</form>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:50:51 +00:00
|
|
|
|
|
|
|
<div id="results">
|
|
|
|
</div>
|
2022-07-21 12:52:06 +00:00
|
|
|
<div id="modals-here">
|
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
{% endblock %}
|