mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
fix topic-question
This commit is contained in:
parent
214f56dd1d
commit
130d456030
|
@ -36,6 +36,8 @@
|
|||
<input type="submit" value="{$aLang.topic_question_vote}" onclick="ls.poll.vote({$oTopic->getId()},$('#topic_answer_{$oTopic->getId()}_value').val());" />
|
||||
<input type="submit" value="{$aLang.topic_question_abstain}" onclick="ls.poll.vote({$oTopic->getId()},-1)" />
|
||||
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
|
||||
|
||||
<p class="poll-total">{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}</p>
|
||||
{else}
|
||||
<ul class="poll-result">
|
||||
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
<input type="submit" value="{$aLang.topic_question_vote}" onclick="ls.poll.vote({$oTopic->getId()},$('#topic_answer_{$oTopic->getId()}_value').val());" />
|
||||
<input type="submit" value="{$aLang.topic_question_abstain}" onclick="ls.poll.vote({$oTopic->getId()},-1)" />
|
||||
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
|
||||
|
||||
<p class="poll-total">{$aLang.topic_question_vote_result}: {$oTopic->getQuestionCountVote()} | {$aLang.topic_question_abstain_result}: {$oTopic->getQuestionCountVoteAbstain()}</p>
|
||||
{else}
|
||||
<ul class="poll-result">
|
||||
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
|
||||
|
|
Loading…
Reference in a new issue