Implement choosing source in search form

This commit is contained in:
2022-08-03 23:26:22 +01:00
parent fc86aae119
commit 75e9831d1c
6 changed files with 82 additions and 33 deletions

View File

@@ -65,6 +65,7 @@
<div class="control has-icons-left">
<span class="select">
<select name="source">
<option selected value="all">All</option>
<option value="irc">IRC</option>
<option value="dis">Discord</option>
</select>
@@ -81,9 +82,9 @@
</div>
</div>
<div class="column">
<div class="field has-addons">
<div class="field has-addons" id="sentiment">
<div class="control">
<input id="sliderWithValue" class="slider has-output-tooltip is-fullwidth" min="-1" max="1" value="0" step="0.05" type="range">
<input disabled="undefined" name="sentiment" id="sliderWithValue" class="slider has-output-tooltip is-fullwidth" min="-1" max="1" value="0" step="0.05" type="range">
<output for="sliderWithValue" class="slider-output">0</output>
<script>bulmaSlider.attach();</script>
</div>
@@ -93,15 +94,20 @@
</a>
</p>
</div>
<label class="checkbox">
<input type="checkbox" name="check-sentiment"
_="on click toggle @disabled on #sliderWithValue">
Check sentiment
</label>
</div>
</div>
<div class="is-hidden"></div>
</form>
</div>
<div class="block">
<div id="results">
<div id="results">
</div>
</div>
</div>
<div id="modals-here">
</div>
{% endblock %}

View File

@@ -1,6 +1,6 @@
{% load static %}
{% load index %}
{% include 'partials/notify.html' %}
{% if results is not None %}
<div style="display: none" id="jsonData" data-json="{{ data }}">
</div>