1{title help="polls" admpage="polls"}{tr}Polls{/tr}{/title} 2 3{include file='find.tpl'} 4<div class="{if $js}table-responsive{/if}"> {*the table-responsive class cuts off dropdown menus *} 5<table class="table table-striped table-hover"> 6<tr> 7<th>{self_link _sort_arg='sort_mode' _sort_field='title' title="{tr}Title{/tr}"}{tr}Title{/tr}{/self_link}</th> 8<th>{self_link _sort_arg='sort_mode' _sort_field='publishDate' title="{tr}Published{/tr}"}{tr}Published{/tr}{/self_link}</th> 9<th>{self_link _sort_arg='sort_mode' _sort_field='votes' title="{tr}Votes{/tr}"}{tr}Votes{/tr}{/self_link}</th> 10<th></th> 11</tr> 12 13{section name=changes loop=$listpages} 14<tr> 15<td class="text">{$listpages[changes].title|escape}</td> 16<td class="date">{$listpages[changes].publishDate|tiki_short_datetime}</td> 17<td class="text">{$listpages[changes].votes}</td> 18<td class="action"> 19 {actions} 20 {strip} 21 <action> 22 <a href="tiki-poll_results.php?pollId={$listpages[changes].pollId}"> 23 {icon name='chart' _menu_text='y' _menu_icon='y' alt="{tr}Results{/tr}"} 24 </a> 25 </action> 26 {if $tiki_p_vote_poll ne 'n'} 27 <action> 28 <a href="tiki-poll_form.php?pollId={$listpages[changes].pollId}"> 29 {icon name='ok' _menu_text='y' _menu_icon='y' alt="{tr}Vote{/tr}"} 30 </a> 31 </action> 32 {/if} 33 {/strip} 34 {/actions} 35</td> 36</tr> 37{sectionelse} 38 {norecords _colspan=4} 39{/section} 40</table> 41</div> 42{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links} 43