Merge pull request #5989 from WoltLab/wsc-rpc-api-const
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / pollVote.tpl
... / ...
CommitLineData
1<dl class="wide pollVoteContainer" data-max-votes="{@$poll->maxVotes}">
2 {foreach from=$poll->getOptions() item=option}
3 <dt></dt>
4 <dd>
5 <label>
6 {if $poll->canVote()}<input type="{if $poll->maxVotes > 1}checkbox{else}radio{/if}" name="pollOptions{@$poll->pollID}[]" value="{$option->optionID}"{if $option->voted} checked{/if}>{/if}
7 {$option->optionValue}
8 </label>
9 </dd>
10 {/foreach}
11</dl>
12{if $poll->canVote()}
13 {if $poll->maxVotes > 1}<p><small>{lang}wcf.poll.multipleVotes{/lang}</small></p>{/if}
14 {if $poll->endTime}<p><small>{lang}wcf.poll.endTimeInfo{/lang}</small></p>{/if}
15 {if $poll->isPublic}<p><small>{lang}wcf.poll.isPublic{/lang}</small></p>{/if}
16{else}
17 <p><small>{lang}wcf.poll.restrictedResult{/lang}</small></p>
18{/if}