| 1 | <dl class="wide jsPollVote" 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->optionValue}" data-option-id="{@$option->optionID}"{if $option->voted} checked="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 | {else} |
| 16 | <p><small>{lang}wcf.poll.restrictedResult{/lang}</small></p> |
| 17 | {/if} |