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.
 
 
 
 
 
 

106 lines
5.5 KiB

{* $Id$ *}
<form action="tiki-admin.php?page=workspace" method="post">
{ticket}
<div class="t_navbar mb-4 clearfix">
{if $prefs.workspace_ui eq "y"}
<a class="btn btn-info btn-sm" href="{service controller=workspace action=list_templates}" title="{tr}List{/tr}">
{icon name="list"} {tr}Workspace Templates{/tr}
</a>
{/if}
{include file='admin/include_apply_top.tpl'}
</div>
{tabset name="admin_workspaces_areas"}
{tab name="{tr}Workspaces{/tr}"}
<br>
<fieldset>
<legend>{tr}Activate the feature{/tr}</legend>
{preference name=workspace_ui visible="always"}
</fieldset>
<fieldset>
<legend>{tr}Dependencies{/tr}</legend>
{preference name=namespace_enabled}
{preference name=namespace_separator}
{preference name=namespace_force_links}
{preference name=feature_perspective}
{preference name=feature_categories}
{preference name=feature_wiki}
</fieldset>
<fieldset>
<legend>{tr}Advanced{/tr}</legend>
{preference name=workspace_root_category}
</fieldset>
{jq}
$('#tiki-center').on('click', '.service-dialog', function () {
$(this).serviceDialog({
title: $(this).text(),
success: function () {
if ($(this).is('.reload')) {
$('#template-list').load($.service('workspace', 'list_templates'));
}
}
});
return false;
});
$('#template-list').load($.service('workspace', 'list_templates'));
{/jq}
{/tab}
{tab name="{tr}Areas{/tr}"}
<br>
<fieldset>
<legend>{tr}Activate the feature{/tr}</legend>
{preference name=feature_areas}
</fieldset>
<fieldset>
<legend>{tr}Areas{/tr}</legend>
<div class="table-responsive">
<table class="table">
<tr>
<th>{tr}On{/tr}</th>
<th colspan="2">{tr}Category{/tr}</th>
<th>{tr}Perspectives{/tr}</th>
<th>{tr}Exclusive{/tr}</th>
<th>{tr}Share Common{/tr}</th>
<th>{tr}Description{/tr}</th>
</tr>
{if $areas|count}
{foreach from=$areas item=area}
<tr class="{cycle}{if $area.enabled neq 'y'} disabled{/if}">
<td><input type="checkbox" name="enabled[{$area.categId}]"{if $area.enabled eq 'y'} checked="checked"{/if} class="enabledChecks"></td>
<td>{$area.categId}</td>
<td>{$area.categName}</td>
<td>
{foreach from=$area.perspectives item=persp}
<a href="tiki-edit_perspective.php?action=edit&id={$persp.perspectiveId}" title="{tr}Edit perspective{/tr} {$persp.name}">{$persp.name}</a>{if not $persp@last},{/if}
{/foreach}
</td>
<td><input type="checkbox" name="exclusive[{$area.categId}]"{if $area.exclusive eq 'y'} checked="checked"{/if}{if $area.enabled neq 'y'} disabled="disabled"{/if} class="otherChecks"></td>
<td><input type="checkbox" name="share_common[{$area.categId}]"{if $area.share_common eq 'y'} checked="checked"{/if}{if $area.enabled neq 'y'} disabled="disabled"{/if} class="otherChecks"></td>
<td>{$area.description}</td>
</tr>
{/foreach}
{jq}
$(".enabledChecks").click(function() {
var checked = ! $(this).prop("checked");
$(".otherChecks", $(this).parents("tr:first")).each(function() {
$(this).prop("disabled", checked);
});
});
{/jq}
{else}
<td colspan="7">{tr}No areas found. Click "Update Areas" to populate this list{/tr}</td>
{/if}
</table>
</div>
</fieldset>
{remarksbox type="info" title="{tr}Hint{/tr}"}{tr}This tab shows you an overview of categories affected by the areas feature. <br> More help here: <a href="http://doc.tiki.org/Areas" target="tikihelp" class="alert-link">doc.tiki.org/Areas</a> {/tr}{/remarksbox}
<div class="mb-3 heading input_submit_container" style="text-align: center">
<input type="submit" class="btn btn-primary" name="update_areas" value="{tr}Update areas{/tr}">
</div>
<div class="adminoptionboxchild" id="feature_areas_childcontainer">
{preference name=areas_root}
</div>
{/tab}
{/tabset}
{include file='admin/include_apply_bottom.tpl'}
</form>