Merge branch '2.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / pollVote.tpl
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()}
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}
14 {else}
15 <p><small>{lang}wcf.poll.restrictedResult{/lang}</small></p>
16 {/if}