Merge branch '2.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / pollVote.tpl
CommitLineData
e25b7b61
MW
1<dl class="wide jsPollVote" data-max-votes="{@$poll->maxVotes}">
2 {foreach from=$poll->getOptions() item=option}
3 <dd>
4 <label>
5 {if $poll->canVote()}<input type="{if $poll->maxVotes > 1}checkbox{else}radio{/if}" name="pollOptions{@$poll->pollID}[]" value="{$option->optionValue}" data-option-id="{@$option->optionID}"{if $option->voted} checked="checked"{/if} />{/if}
6 {$option->optionValue}
7 </label>
8 </dd>
9 {/foreach}
10</dl>
11{if $poll->canVote()}
027ecf95
MW
12 {if $poll->maxVotes > 1}<p><small>{lang}wcf.poll.multipleVotes{/lang}</small></p>{/if}
13 {if $poll->endTime}<p><small>{lang}wcf.poll.endTimeInfo{/lang}</small></p>{/if}
e25b7b61 14{else}
027ecf95 15 <p><small>{lang}wcf.poll.restrictedResult{/lang}</small></p>
e25b7b61 16{/if}