mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
use new et2 site config
This commit is contained in:
parent
62ab3ce897
commit
1fb53f8e0e
@ -460,47 +460,8 @@ class preferences_hooks
|
||||
unset($args); // unused, but required by function signature
|
||||
$appname = 'preferences';
|
||||
$file = Array(
|
||||
'Site configuration' => egw::link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname),
|
||||
'Site configuration' => egw::link('/index.php','menuaction=admin.admin_config.index&appname=' . $appname.'&ajax=true'),
|
||||
);
|
||||
display_section($appname, $file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook returning options for deny_acl groups
|
||||
*
|
||||
* @param array $config
|
||||
*/
|
||||
public static function deny_prefs($config)
|
||||
{
|
||||
$accountsel = new uiaccountsel();
|
||||
|
||||
return '<input type="hidden" value="" name="newsettings[deny_prefs]" />'.
|
||||
$accountsel->selection('newsettings[deny_prefs]', 'deny_prefs', $config['deny_prefs'], 'groups', 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook returning options for deny_acl groups
|
||||
*
|
||||
* @param array $config
|
||||
*/
|
||||
public static function deny_acl($config)
|
||||
{
|
||||
$accountsel = new uiaccountsel();
|
||||
|
||||
return '<input type="hidden" value="" name="newsettings[deny_acl]" />'.
|
||||
$accountsel->selection('newsettings[deny_acl]', 'deny_acl', $config['deny_acl'], 'groups', 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook returning options for deny_cats groups
|
||||
*
|
||||
* @param array $config
|
||||
*/
|
||||
public static function deny_cats($config)
|
||||
{
|
||||
$accountsel = new uiaccountsel();
|
||||
|
||||
return '<input type="hidden" value="" name="newsettings[deny_cats]" />'.
|
||||
$accountsel->selection('newsettings[deny_cats]', 'deny_cats', $config['deny_cats'], 'groups', 4);
|
||||
}
|
||||
}
|
||||
|
@ -1,40 +0,0 @@
|
||||
<!-- $Id: config.tpl 43784 2013-09-11 13:08:59Z ralfbecker $ -->
|
||||
<!-- BEGIN header -->
|
||||
<p style="text-align: center; color: red; font-weight: bold;">{error}</p>
|
||||
<form method="POST" action="{action_url}">
|
||||
<table align="center" width="85%">
|
||||
<tr class="th">
|
||||
<td colspan="2"> <b>{title}</b></td>
|
||||
</tr>
|
||||
<!-- END header -->
|
||||
<!-- BEGIN body -->
|
||||
<tr class="row_off">
|
||||
<td>{lang_Deny_following_groups_access_to_preferences}:</td>
|
||||
<td>{call_preferences_hooks::deny_prefs}</td>
|
||||
</tr>
|
||||
<tr class="row_on">
|
||||
<td>{lang_Deny_following_groups_access_to_ACL_(grant_access)}:</td>
|
||||
<td>{call_preferences_hooks::deny_acl}</td>
|
||||
</tr>
|
||||
<tr class="row_off">
|
||||
<td>{lang_Deny_following_groups_access_to_edit_categories}:</td>
|
||||
<td>{call_preferences_hooks::deny_cats}</td>
|
||||
</tr>
|
||||
<!-- END body -->
|
||||
|
||||
<!-- BEGIN footer -->
|
||||
<tr class="th">
|
||||
<td colspan="2">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" align="center">
|
||||
<input type="submit" name="submit" value="{lang_submit}">
|
||||
<input type="submit" name="cancel" value="{lang_cancel}">
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<!-- END footer -->
|
27
preferences/templates/default/config.xet
Normal file
27
preferences/templates/default/config.xet
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE overlay PUBLIC "-//Stylite AG//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
|
||||
<!-- $Id$ -->
|
||||
<overlay>
|
||||
<template id="preferences.config" template="" lang="" group="0" version="16.1">
|
||||
<grid width="100%" class="admin-config egwGridView_grid">
|
||||
<columns>
|
||||
<column width="60%"/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<description value="Deny following groups access to preferences" label="%s:"/>
|
||||
<select-account id="newsettings[deny_prefs]" account_type="groups" multiple="true" tags="true" width="100%"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Deny following groups access to ACL (grant access)" label="%s:"/>
|
||||
<select-account id="newsettings[deny_acl]" account_type="groups" multiple="true" tags="true" width="100%"/>
|
||||
</row>
|
||||
<row>
|
||||
<description value="Deny following groups access to edit categories" label="%s:"/>
|
||||
<select-account id="newsettings[deny_cats]" account_type="groups" multiple="true" tags="true" width="100%"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</template>
|
||||
</overlay>
|
Loading…
Reference in New Issue
Block a user