From 6a9faa7679e565053629cdf271f195528f669ae5 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 23:54:48 +0100 Subject: [PATCH] Implement radio buttons for the sentiment selector --- core/templates/ui/drilldown/drilldown.html | 37 ++++++++++++++++------ core/views/ui/drilldown.py | 2 +- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 9d172b0..99dc26b 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -82,21 +82,38 @@
-
+
+
+
+ + 0 + +
+

+ + sentiment + +

+
- - 0 - + + +
-

- - sentiment - -

+
diff --git a/core/views/ui/drilldown.py b/core/views/ui/drilldown.py index 6c7f30b..d054528 100644 --- a/core/views/ui/drilldown.py +++ b/core/views/ui/drilldown.py @@ -1,7 +1,7 @@ import json 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.views import View from rest_framework.parsers import FormParser