From: hickert Date: Thu, 7 Oct 2010 09:42:49 +0000 (+0000) Subject: Added first shot of the folder widget X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9bc8306ed6bf6aeb7ff4e6b2e116b114c13ca28a;p=gosa.git Added first shot of the folder widget git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19934 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-filter.xml b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-filter.xml new file mode 100644 index 000000000..54d213cc4 --- /dev/null +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-filter.xml @@ -0,0 +1,27 @@ + + + + + + Groupware + true + default + sub + - + + + + default + + + LDAP + $ + + + cn + 0.5 + 3 + + + + diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.tpl b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.tpl new file mode 100644 index 000000000..c80f9a238 --- /dev/null +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.tpl @@ -0,0 +1,24 @@ +
+ +
+

{$HEADLINE} {$SIZELIMIT}

+
+ + + + + + + + + +
{$ROOT}{$BACK}{$HOME}{$RELOAD}{$ACTIONS}{$FILTER}
+
+
+ + {$LIST} +
+ +
+ + diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.xml b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.xml new file mode 100644 index 000000000..66937308a --- /dev/null +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderWidget-list.xml @@ -0,0 +1,135 @@ + + + + + true + true + true + true + + users + + 1 + + + + FAKE_OC_Folder + users + none + plugins/sudo/images/select_sudo.png + + + + + + |20px;c|120px||170px;r| + + + %{filter:objectType(dn,objectClass)} + + + + + cn + string + %{filter:link(row,dn,"%s",cn)} + true + + + + + description + string + %{filter:link(row,dn,"%s",description)} + true + + + + + %{filter:actions(dn,row,objectClass)} + + +
+ + + + + sub + images/lists/element.png[new] + + + + new + entry + plugins/sudo/images/select_sudo.png[new] + + + + + new_default + entry + plugins/sudo/images/select_sudo.png + + + + + + + separator + + + + remove + entry + images/lists/trash.png + + + + + exporter + + + + separator + + + + copypaste + + + + snapshot + + + + + + + + cp + copypaste + + + + edit + entry + images/lists/edit.png + + + + + snapshot + snapshot + + + + remove + entry + images/lists/trash.png + sudo/sudo[d] + + + + + +
diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc new file mode 100644 index 000000000..899e20916 --- /dev/null +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc @@ -0,0 +1,23 @@ +FolderWidgetListing = new FolderWidgetListing($this->config, get_userinfo()); + } + + + function execute() + { + return($this->FolderWidgetListing->execute()); + } +} + +?> diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc new file mode 100644 index 000000000..3712d2b52 --- /dev/null +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc @@ -0,0 +1,32 @@ +config = $config; + $this->ui = $ui; + + $this->storagePoints = array(""); + + // Build filter + if (session::global_is_set(get_class($this)."_filter")){ + $filter= session::global_get(get_class($this)."_filter"); + } else { + $filter = new filter(get_template_path("FolderWidget-filter.xml", true, dirname(__FILE__))); + $filter->setObjectStorage($this->storagePoints); + } + $this->setFilter($filter); + + // Build headpage + $headpage = new listing(get_template_path("FolderWidget-list.xml", true, dirname(__FILE__))); + $headpage->setFilter($filter); + + parent::__construct($config, $ui, "Folder", $headpage); + } + + +} + + +?> diff --git a/gosa-plugins/groupware/personal/groupware/generic.tpl b/gosa-plugins/groupware/personal/groupware/generic.tpl index 41482d574..eed7df840 100644 --- a/gosa-plugins/groupware/personal/groupware/generic.tpl +++ b/gosa-plugins/groupware/personal/groupware/generic.tpl @@ -7,6 +7,7 @@ {else} {if $mailFolder_isActive} + {$fileBrowser} {t}Add folder{/t}: