|
|
{if $perspectives|@count gt 0}
|
|
|
{tikimodule error=$module_params.error title=$tpl_module_title name="perspective" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
|
|
|
<form method="get" action="tiki-switch_perspective.php" role="form">
|
|
|
<div class="mb-3 row mx-0">
|
|
|
<div class="form-check">
|
|
|
<input id="mod-switch-perspective-back" type="checkbox" class="form-check-input" name="back" value="1"/>
|
|
|
<label for="mod-switch-perspective-back" class="form-check-label">{tr}Stay on this page{/tr}</label>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="mb-3 row mx-0">
|
|
|
<select name="perspective" class="form-select" onchange="this.form.submit();">
|
|
|
<option value="0">{tr}Default{/tr}</option>
|
|
|
{foreach from=$perspectives item=persp}
|
|
|
<option value="{$persp.perspectiveId|escape}"{if $persp.perspectiveId eq $current_perspective} selected="selected"{/if}>{$persp.name|escape}</option>
|
|
|
{/foreach}
|
|
|
</select>
|
|
|
</div>
|
|
|
<noscript>
|
|
|
<input type="submit" class="btn btn-primary btn-sm" value="{tr}Go{/tr}"/>
|
|
|
</noscript>
|
|
|
</form>
|
|
|
{if $tiki_p_perspective_admin eq 'y'}
|
|
|
<div align="center">
|
|
|
<a href="tiki-edit_perspective.php">{tr}Edit perspectives{/tr}</a>
|
|
|
</div>
|
|
|
{/if}
|
|
|
{/tikimodule}
|
|
|
{/if}
|