forked from rDrama/rDrama
dfs
parent
5f81b9bf0b
commit
0491bd3c5d
|
@ -386,7 +386,7 @@ class Comment(Base):
|
||||||
body += f'<input class="d-none" id="current-{self.id}"{curr}>'
|
body += f'<input class="d-none" id="current-{self.id}"{curr}>'
|
||||||
|
|
||||||
for c in self.choices:
|
for c in self.choices:
|
||||||
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}')"'''
|
body += f'''<div class="custom-control"><input name="choice-{self.id}" 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 "
|
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}'''
|
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'
|
if not self.total_choice_voted(v): body += ' d-none'
|
||||||
|
|
|
@ -399,7 +399,7 @@ class Submission(Base):
|
||||||
body += f'<input class="d-none" id="current-{self.id}"{curr}>'
|
body += f'<input class="d-none" id="current-{self.id}"{curr}>'
|
||||||
|
|
||||||
for c in self.choices:
|
for c in self.choices:
|
||||||
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}')"'''
|
body += f'''<div class="custom-control"><input name="choice-{self.id}" 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 "
|
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}'''
|
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'
|
if not self.total_choice_voted(v): body += ' d-none'
|
||||||
|
|
Loading…
Reference in New Issue