{* $Id$ *} {title help="Polls" admpage="polls"}{tr}Admin Polls{/tr}{/title}
{ticket}
{if $pollId neq '0'} {button pollId=0 cookietab=1 _class="btn btn-link" _icon_name="create" _text="{tr}Create poll{/tr}"} {/if}
{tabset} {if $pollId eq '0'} {assign var='title' value="{tr}Create poll{/tr}"} {else} {assign var='title' value="{tr}Edit poll{/tr}"} {/if} {tab name=$title}

{$title}

{ticket}
{if ($prefs.feature_jscalendar) == 'y'} {jscalendar showtime="y" fieldname="pollPublishDate" date=$info.publishDate} {else}
{html_select_date time=$info.publishDate end_year="+1" field_order=$prefs.display_field_order}
{html_select_time time=$info.publishDate display_seconds=false use_24_hours=$use_24hr_clock} {/if}
{tr}0 for no limit{/tr}
{include file='categorize.tpl' labelcol="3" inputcol="7"}
{/tab} {tab name="{tr}Polls{/tr}"}

{tr}Polls{/tr}

{if $channels or ($find ne '')} {include file='find.tpl'} {/if}
{* table-responsive class cuts off css drop-down menus *} {assign var=numbercol value=8} {if $prefs.poll_list_categories eq 'y'}{assign var=numbercol value=$numbercol+1}{/if} {if $prefs.poll_list_objects eq 'y'}{assign var=numbercol value=$numbercol+1}{/if} {section name=user loop=$channels} {if $prefs.poll_list_categories eq 'y'} {/if} {if $prefs.poll_list_objects eq 'y'} {/if} {sectionelse} {norecords _colspan=$numbercol} {/section}
{self_link _sort_arg='sort_mode' _sort_field='pollId' title="{tr}ID{/tr}"}{tr}ID{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='title' title="{tr}Title{/tr}"}{tr}Title{/tr}{/self_link}{tr}Categories{/tr}{tr}Objects{/tr}{self_link _sort_arg='sort_mode' _sort_field='active' title="{tr}Active{/tr}"}{tr}Active{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='votes' title="{tr}Votes{/tr}"}{tr}Votes{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='publishDate' title="{tr}Publish{/tr}"}{tr}Publish{/tr}{/self_link} {self_link _sort_arg='sort_mode' _sort_field='voteConsiderationSpan' title="{tr}Span{/tr}"}{tr}Span{/tr}{/self_link} {tr}Options{/tr}
{$channels[user].pollId} {$channels[user].title|escape} {section name=cat loop=$channels[user].categories} {$channels[user].categories[cat].name} {if !$smarty.section.cat.last}
{/if} {/section}
{section name=obj loop=$channels[user].objects} {$channels[user].objects[obj].name} {if !$smarty.section.obj.last}
{/if} {/section}
{$channels[user].active} {$channels[user].votes} {$channels[user].publishDate|tiki_short_datetime} {$channels[user].voteConsiderationSpan|escape} {$channels[user].options} {actions} {strip} {icon name='list' _menu_text='y' _menu_icon='y' alt="{tr}Options{/tr}"} {icon name="chart" _menu_text='y' _menu_icon='y' alt="{tr}Results{/tr}"} {self_link pollId=$channels[user].pollId cookietab=1 _menu_text='y' _menu_icon='y' _icon_name="edit"} {tr}Edit{/tr} {/self_link} {icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"} {/strip} {/actions}
{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} {/tab} {tab name="{tr}Add poll to pages{/tr}"}

{tr}Add poll to pages{/tr}

{ticket}
{tr}Only polls with a status of "template" shown{/tr}
{tr}Use Ctrl+Click to select multiple options{/tr}
{if $prefs.feature_wiki_usrlock eq 'y'}
{/if}
{/tab} {/tabset}