From 910705ba5c52ef17d01ff1753159180d5e3e1741 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Mon, 2 Oct 2023 17:38:44 +0200 Subject: [PATCH] fixup bs classes --- scipost_django/colleges/views.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scipost_django/colleges/views.py b/scipost_django/colleges/views.py index c4d05db52..713ee63a6 100644 --- a/scipost_django/colleges/views.py +++ b/scipost_django/colleges/views.py @@ -896,13 +896,6 @@ def _hx_nomination_vote(request, round_id): """You cannot vote in non-open rounds.""", tag="danger", ) - - vote_options_with_color = [ - (FellowshipNominationVote.VOTE_AGREE, "success"), - (FellowshipNominationVote.VOTE_ABSTAIN, "warning"), - (FellowshipNominationVote.VOTE_DISAGREE, "danger"), - (FellowshipNominationVote.VOTE_VETO, "dark"), - ] if request.method == "POST": vote_object, created = FellowshipNominationVote.objects.update_or_create( voting_round=voting_round, @@ -930,7 +923,7 @@ def _hx_nomination_vote(request, round_id): context = { "voting_round": voting_round, "vote_object": vote_object, - "vote_options": vote_options_with_color, + "VOTE_BS_CLASSES": FellowshipNominationVote.VOTE_BS_CLASSES, } return render(request, "colleges/_hx_nomination_vote.html", context) -- GitLab