Code

Updated application filter.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Nov 2009 14:25:21 +0000 (14:25 +0000)
committerhickert <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

gosa-plugins/goto/admin/applications/application-filter-release.tpl
gosa-plugins/goto/admin/applications/application-list-release.tpl
gosa-plugins/goto/admin/applications/application-list-release.xml
gosa-plugins/goto/admin/applications/class_applicationManagement.inc

index fc24ad6391fd64af3f9a01b8bf7d0d51ac98e2d1..c46f8c5bc24850d7e328a32ceed91b417c9a73a7 100644 (file)
@@ -8,7 +8,7 @@
 
 <div style="border-top:1px solid #AAAAAA"></div>
 
- {$SCOPE}
+ <LABEL for='RELEASE'>{t}Release{/t}</LABEL>&nbsp;{$RELEASE}<br>
 
  <table summary="" style="width:100%;border-top:1px solid #B0B0B0;">
   <tr>
@@ -18,7 +18,6 @@
     </label>
    </td>
    <td>
-    {$RELEASE}
     {$NAME}
    </td>
   </tr>
index b233c5874c0a4d5101b80258c2d6c3e5687d5be6..15488fccdddfa5765b7fa283116b3dc4515cb5d6 100644 (file)
@@ -10,7 +10,8 @@
       <div class="contentboxb">
        <div style='background:white;padding:0px;padding:3px;'>
         <table><tr>
-          <td>{$ROOT}&nbsp;</td><td>{$BACK}&nbsp;</td><td>{$HOME}&nbsp;</td><td>{$RELOAD}&nbsp;</td><td>{$SEPARATOR}&nbsp;</td><td>{t}Base{/t} {$BASE}&nbsp;<input class='center' type='image' src='images/lists/submit.png' align='middle' title='{t}Update{/t}' name='submit_department' alt='{t}Submit{/t}'>&nbsp;</td><td>{$SEPARATOR}&nbsp;</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>
index bf3a22f3436fc0c41d0459003cade09d862ff197..f5992f2952f83e28ad5100a52211f183901021ee 100644 (file)
@@ -12,8 +12,8 @@
     <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>
@@ -76,7 +76,7 @@
       <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>
index 03c17d4fa30ebfede165e0e47d3de197dde7d705..d97976194bb7b7a5be2733d537b5aa9d406908b1 100644 (file)
@@ -39,20 +39,29 @@ class applicationManagement extends management
   {
     $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.
@@ -81,7 +90,7 @@ class applicationManagement extends management
     }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);