Implement radio buttons for the sentiment selector
This commit is contained in:
parent
75e9831d1c
commit
6a9faa7679
|
@ -82,21 +82,38 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="field has-addons" id="sentiment">
|
<div id="sentiment">
|
||||||
<div class="control">
|
<div class="field has-addons">
|
||||||
<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">
|
<div class="control">
|
||||||
<output for="sliderWithValue" class="slider-output">0</output>
|
<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">
|
||||||
<script>bulmaSlider.attach();</script>
|
<output for="sliderWithValue" class="slider-output">0</output>
|
||||||
|
<script>bulmaSlider.attach();</script>
|
||||||
|
</div>
|
||||||
|
<p class="control">
|
||||||
|
<a class="button is-static">
|
||||||
|
sentiment
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<label class="radio">
|
||||||
|
<input type="radio" value="below" name="sentiment-method">
|
||||||
|
Below
|
||||||
|
</label>
|
||||||
|
<label class="radio">
|
||||||
|
<input type="radio" value="exact" name="sentiment-method">
|
||||||
|
Exact
|
||||||
|
</label>
|
||||||
|
<label class="radio">
|
||||||
|
<input type="radio" value="above" name="sentiment-method">
|
||||||
|
Above
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<p class="control">
|
|
||||||
<a class="button is-static">
|
|
||||||
sentiment
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" name="check-sentiment"
|
<input type="checkbox" name="check-sentiment"
|
||||||
_="on click toggle @disabled on #sliderWithValue">
|
_="on click toggle @disabled on #sliderWithValue then toggle @disabled on #sentiment">
|
||||||
Check sentiment
|
Check sentiment
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.http import HttpResponse, HttpResponseForbidden, JsonResponse
|
from django.http import HttpResponse, JsonResponse
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.views import View
|
from django.views import View
|
||||||
from rest_framework.parsers import FormParser
|
from rest_framework.parsers import FormParser
|
||||||
|
|
Loading…
Reference in New Issue