{title help="Perspectives"}{tr}Perspectives{/tr}{/title} {tabset} {tab name="{tr}List{/tr}"}

{tr}List{/tr}

{tr}Return to the default perspective{/tr}
{* table-responsive class cuts off css drop-down menus *} {foreach from=$perspectives item=persp} {/foreach}
{tr}Perspective{/tr} {tr}Preferences{/tr}
{if $persp.can_edit} {self_link _icon_name='edit' action=edit _ajax='y' _menu_text='y' _menu_icon='y' id=$persp.perspectiveId cookietab=3} {$persp.name|escape} {/self_link} {else} {icon name='move' _menu_icon='y' alt="{tr}Switch to{/tr}"} {$persp.name|escape} {/if} {foreach from=$persp.preferences key=name item=val} {if is_array($val)} {$name}={$val|implode:','}
{else} {$name}={$val}
{/if} {/foreach}
{actions} {strip} {icon name='move' _menu_text='y' _menu_icon='y' alt="{tr}Switch to{/tr}"} {if $persp.can_perms} {permission_link mode=text type="perspective" id=$persp.perspectiveId title=$persp.name} {/if} {if $persp.can_edit} {self_link _icon_name='edit' action=edit _ajax='y' _menu_text='y' _menu_icon='y' id=$persp.perspectiveId cookietab=3} {tr}Edit{/tr} {/self_link} {/if} {if $persp.can_remove} {self_link action=remove id=$persp.perspectiveId _menu_text='y' _menu_icon='y' _icon_name='remove'} {tr}Delete{/tr} {/self_link} {/if} {/strip} {/actions}
{pagination_links offset=$offset step=$prefs.maxRecords cant=$count}{/pagination_links} {/tab} {if $tiki_p_perspective_create eq 'y'} {tab name="{tr}Create{/tr}"}

{tr}Create{/tr}

{/tab} {/if} {if $perspective_info && $perspective_info.can_edit} {tab name="{tr}Edit{/tr}"}

{tr}Edit{/tr}

{tr}Preference List{/tr}
{foreach from=$perspective_info.preferences key=name item=val} {preference name=$name source=$perspective_info.preferences} {/foreach}
{remarksbox type="info" title="{tr}Hint{/tr}"} {tr}Search preferences below and drag them into the preference list above.{/tr} {/remarksbox}
{icon name="search"}
{jq} $('#preferences') .droppable( { activeClass: 'ui-state-highlight', drop: function( e, ui ) { $('#preferences').append( ui.draggable ); $(ui.draggable) .draggable('destroy') .draggable( { distance: 50, handle: 'label', axis: 'x', stop: function( e, ui ) { $(this).remove(); } } ); } } ) .find('div.adminoptionbox').draggable( { distance: 50, handle: 'label', axis: 'x', stop: function( e, ui ) { $(this).remove(); } } ); $('#searchform').submit( function(e) { e.preventDefault(); if (typeof ajaxLoadingShow == 'function') { ajaxLoadingShow('resultzone'); } $('#resultzone').load( this.action, $(this).serialize(), function() { $('#resultzone div.adminoptionbox').draggable( { scroll: true, cursor: 'move', helper: 'clone' } ); $(this).tiki_popover(); if (typeof ajaxLoadingHide == 'function') { ajaxLoadingHide(); } } ); } ); {/jq} {/tab} {/if} {/tabset}