2012-03-07 18:48:14 +02:00
|
|
|
{include file='topic_part_header.tpl'}
|
|
|
|
|
|
|
|
|
|
|
|
<div id="topic_question_area_{$oTopic->getId()}" class="poll">
|
|
|
|
{if !$oTopic->getUserQuestionIsVote()}
|
|
|
|
<ul class="poll-vote">
|
|
|
|
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
|
2012-04-08 17:54:51 +03:00
|
|
|
<li><label><input type="radio" id="topic_answer_{$oTopic->getId()}_{$key}" name="topic_answer_{$oTopic->getId()}" value="{$key}" onchange="jQuery('#topic_answer_{$oTopic->getId()}_value').val(jQuery(this).val());" /> {$aAnswer.text|escape:'html'}</label></li>
|
2012-03-07 18:48:14 +02:00
|
|
|
{/foreach}
|
|
|
|
</ul>
|
|
|
|
|
2012-06-04 17:46:47 +03:00
|
|
|
<button type="submit" onclick="ls.poll.vote({$oTopic->getId()},jQuery('#topic_answer_{$oTopic->getId()}_value').val());" class="button button-primary">{$aLang.topic_question_vote}</button>
|
|
|
|
<button type="submit" onclick="ls.poll.vote({$oTopic->getId()},-1)" class="button">{$aLang.topic_question_abstain}</button>
|
2012-03-07 18:48:14 +02:00
|
|
|
|
|
|
|
<input type="hidden" id="topic_answer_{$oTopic->getId()}_value" value="-1" />
|
|
|
|
{else}
|
2012-04-03 19:11:21 +03:00
|
|
|
{include file='question_result.tpl'}
|
2012-03-07 18:48:14 +02:00
|
|
|
{/if}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="topic-content text">
|
|
|
|
{hook run='topic_content_begin' topic=$oTopic bTopicList=$bTopicList}
|
|
|
|
|
2012-04-05 09:40:55 +03:00
|
|
|
{$oTopic->getText()}
|
2012-03-07 18:48:14 +02:00
|
|
|
|
|
|
|
{hook run='topic_content_end' topic=$oTopic bTopicList=$bTopicList}
|
|
|
|
</div>
|
2011-06-25 11:04:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-03-07 18:48:14 +02:00
|
|
|
{include file='topic_part_footer.tpl'}
|