You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.9 KiB

{if $showtitle ne 'n'}{$menu_info.title|escape}<br>{/if}
<form method="post" action="{$ownurl}">
{ticket}
<input type="hidden" name="polls_pollId" value="{$menu_info.pollId|escape}">
{if !empty($showresult) && $showresult ne 'link'}<input type="hidden" name="showresult" value="{$showresult|escape}">{/if}
{if $tiki_p_vote_poll ne 'n' && ($user || $prefs.feature_poll_anonymous == 'y' || $prefs.feature_antibot eq 'y')}
{section name=ix loop=$channels}
<div class="form-check">
<input class="form-check-input" type="radio" name="polls_optionId" value="{$channels[ix].optionId|escape}"{if $polls_optionId == $channels[ix].optionId} checked="checked"{/if}>
<label class="form-check-label" for="polls_optionId">{tr}{$channels[ix].title|escape}{/tr}</label>
</div>
{/section}
{else}
<ul>
{section name=ix loop=$channels}
<li>{tr}{$channels[ix].title|escape}{/tr}</li>
{/section}
</ul>
{/if}
<div class="mt-2">
{if $prefs.feature_antibot eq 'y' && $user eq ''}
{include file='antibot.tpl' antibot_table='n'}
{/if}
{if $tiki_p_vote_poll ne 'n' && ($user || $prefs.feature_poll_anonymous == 'y' || $prefs.feature_antibot eq 'y')}
<input type="submit" class="btn btn-primary btn-sm mb-2" name="pollVote" value="{tr}Vote{/tr}"><br>
{/if}
{if $tiki_p_view_poll_results == 'y' and $showresult ne 'always' and $showresult ne 'voted'}
<a class="linkmodule" href="tiki-poll_results.php?pollId={$menu_info.pollId}">{tr}View Results{/tr}</a><br>
({tr}Votes:{/tr} {$menu_info.votes})
{/if}
</div>
{if $prefs.feature_poll_comments and $comments_cant and !isset($module_params)}
<br>
{include file='comments_button.tpl'}
{/if}
</form>