summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4761008)
raw | patch | inline | side by side (parent: 4761008)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Nov 2009 14:25:21 +0000 (14:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Nov 2009 14:25:21 +0000 (14:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14775 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/goto/admin/applications/application-filter-release.tpl b/gosa-plugins/goto/admin/applications/application-filter-release.tpl
index fc24ad6391fd64af3f9a01b8bf7d0d51ac98e2d1..c46f8c5bc24850d7e328a32ceed91b417c9a73a7 100644 (file)
<div style="border-top:1px solid #AAAAAA"></div>
- {$SCOPE}
+ <LABEL for='RELEASE'>{t}Release{/t}</LABEL> {$RELEASE}<br>
<table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
<tr>
</label>
</td>
<td>
- {$RELEASE}
{$NAME}
</td>
</tr>
diff --git a/gosa-plugins/goto/admin/applications/application-list-release.tpl b/gosa-plugins/goto/admin/applications/application-list-release.tpl
index b233c5874c0a4d5101b80258c2d6c3e5687d5be6..15488fccdddfa5765b7fa283116b3dc4515cb5d6 100644 (file)
<div class="contentboxb">
<div style='background:white;padding:0px;padding:3px;'>
<table><tr>
- <td>{$ROOT} </td><td>{$BACK} </td><td>{$HOME} </td><td>{$RELOAD} </td><td>{$SEPARATOR} </td><td>{t}Base{/t} {$BASE} <input class='center' type='image' src='images/lists/submit.png' align='middle' title='{t}Update{/t}' name='submit_department' alt='{t}Submit{/t}'> </td><td>{$SEPARATOR} </td><td><img src='images/rocket.png' alt='' class='center'></td><td> {$ACTIONS}</td>
+ <td><img src='images/rocket.png' alt='' class='center'></td>
+ <td> {$ACTIONS}</td>
</tr></table>
</div>
</div>
diff --git a/gosa-plugins/goto/admin/applications/application-list-release.xml b/gosa-plugins/goto/admin/applications/application-list-release.xml
index bf3a22f3436fc0c41d0459003cade09d862ff197..f5992f2952f83e28ad5100a52211f183901021ee 100644 (file)
<defaultSortColumn>1</defaultSortColumn>
<objectType>
- <label>Group</label>
- <objectClass>posixGroup</objectClass>
+ <label>Application</label>
+ <objectClass>gosaApplication</objectClass>
<category>application</category>
<class>application</class>
<image>plugins/applications/images/applications.png</image>
<name>new</name>
<type>entry</type>
<image>plugins/applications/images/new.png</image>
- <label>Group</label>
+ <label>Application</label>
</action>
</action>
<label>Remove</label>
</action>
- <action>
- <name>sendMessage</name>
- <type>entry</type>
- <depends>DaemonEvent_notify</depends>
- <image>plugins/goto/images/notify.png</image>
- <label>Send message</label>
- </action>
-
<action>
<type>exporter</type>
</action>
diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc
index 03c17d4fa30ebfede165e0e47d3de197dde7d705..d97976194bb7b7a5be2733d537b5aa9d406908b1 100644 (file)
{
$this->config = $config;
$this->ui = $ui;
-
- $this->storagePoints = array(get_ou("applicationRDN"));
-
-# // 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("application-filter-release.xml", true));
-# $filter->setObjectStorage($this->storagePoints);
-# }
+
+ if($this->IsReleaseManagementActivated()){
+ $this->app_release = get_ou('applicationRDN').$this->config->current['BASE'];
+ $filter_xml = "application-filter-release.xml";
+ $list_xml = "application-list-release.xml";
+ $this->storagePoints= array();
+ }else{
+ $filter_xml = "application-filter.xml";
+ $list_xml = "application-list.xml";
+ $this->storagePoints= array(get_ou("applicationRDN"));
+ }
+
+ // 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($filter_xml, true));
+ $filter->setObjectStorage($this->storagePoints);
+ }
$this->setFilter($filter);
// Build headpage
- $headpage = new listing(get_template_path("application-list-release.xml", true));
+ $headpage = new listing(get_template_path($list_xml, true));
$headpage->setFilter($filter);
// Add copy&paste and snapshot handler.
}else{
$headpage->setBase($base = get_ou('applicationRDN').$this->config->current['BASE']);
}
-
+ $this->app_release = $headpage->getBase();
$headpage->update();
$display = $headpage->render();
return($this->getHeader().$display);