This commit is contained in:
Aevann1 2022-02-07 14:26:11 +02:00
parent 5c90f36638
commit 2921f52e3b
7 changed files with 36 additions and 9 deletions

View file

@ -398,7 +398,7 @@ class Submission(Base):
body += f'<input class="d-none" id="current-{self.id}" value={curr[0].comment_id}>'
for c in self.choices:
body += f'''<div class="custom-control mt-3"><input name="choice" autocomplete="off" class="custom-control-input" type="radio" id="{c.id}" onchange="choice_vote('{c.id}','{self.id}')"'''
body += f'''<div class="custom-control"><input name="choice" autocomplete="off" class="custom-control-input" type="radio" id="{c.id}" onchange="choice_vote('{c.id}','{self.id}')"'''
if c.poll_voted(v): body += " checked "
body += f'''><label class="custom-control-label" for="{c.id}">{c.body_html}<span class="presult-{self.id}'''
if not self.total_choice_voted(v): body += ' d-none'