[eGroupWare-svn] r55818 - in /trunk/preferences: inc/class.preferences_hooks.inc.php templates/default/config.tpl templates/default/config.xet

[email protected]
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Mon Apr 25 09:33:30 2016
New Revision: 55818

URL: http://svn.stylite.de/viewvc/egroupware?rev=55818&view=rev
Log:
use new et2 site config

Added:
    trunk/preferences/templates/default/config.xet   (with props)
Removed:
    trunk/preferences/templates/default/config.tpl
Modified:
    trunk/preferences/inc/class.preferences_hooks.inc.php

Modified: trunk/preferences/inc/class.preferences_hooks.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/preferences/inc/class.preferences_hooks.inc.php?rev=55818&r1=55817&r2=55818&view=diff
==============================================================================
--- trunk/preferences/inc/class.preferences_hooks.inc.php (original)
+++ trunk/preferences/inc/class.preferences_hooks.inc.php Mon Apr 25 09:33:30 2016
@@ -460,47 +460,8 @@
 		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);
-	}
 }

Added: trunk/preferences/templates/default/config.xet
URL: http://svn.stylite.de/viewvc/egroupware/trunk/preferences/templates/default/config.xet?rev=55818&view=auto
==============================================================================
--- trunk/preferences/templates/default/config.xet (added)
+++ trunk/preferences/templates/default/config.xet Mon Apr 25 09:33:30 2016
@@ -1,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>

Propchange: trunk/preferences/templates/default/config.xet
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/preferences/templates/default/config.xet
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Rev URL

Propchange: trunk/preferences/templates/default/config.xet
------------------------------------------------------------------------------
    svn:mime-type = text/xml


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.