1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/components/poll/poll.tpl
2015-10-27 16:02:57 +07:00

15 lines
452 B
Smarty

{**
* Опрос
*
* @param ModulePoll_EntityPoll $poll Опрос
*}
<div class="ls-poll poll-type-{$poll->getTargetType()} js-poll" data-poll-id="{$poll->getId()}" data-poll-answer-max="{$poll->getCountAnswerMax()}">
<h3 class="ls-poll-title">{$poll->getTitle()}</h3>
{if ! $poll->getVoteCurrent()}
{component 'poll' template='vote' poll=$poll}
{else}
{component 'poll' template='result' poll=$poll}
{/if}
</div>