Code

Added FAI option to setup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 10:41:37 +0000 (10:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Jun 2007 10:41:37 +0000 (10:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6656 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.conf
setup/class_setupStep_Config2.inc
setup/setup_config2.tpl

index 5c2f36d46da6efd7d8da4190f3721a66c9930eeb..2cf1d4b331f8c86596d38606cee14cdc2a547cf6 100644 (file)
                        <!-- Use 'lock_dn'      for dn
                      'lock_name'    for name
                      'lock_type'    for branch/freeze -->
+
+{if $cv.enableFAI_management}
+                       <plugin acl="FAIclass" class="faiManagement" icon="fai.png" 
+                               path="plugins/admin/fai" />
+{else}
+<!--
                        <plugin acl="FAIclass" class="faiManagement" icon="fai.png" 
-                               postcreate="" 
-                postremove="" 
                                path="plugins/admin/fai" />
+-->
+{/if}
                        <plugin acl="blocklists" class="blocklist" icon="blocklists.png"
                                path="plugins/gofax/blocklists" />
                        <plugin acl="goFonMacro" class="gofonMacro" icon="macros.png"
                <tab class="servkolab" name="Kolab"/>
 {/if}
           <tab class="servrepository" name="Repository" />
+{if $cv.enableFAI_management}
           <tab class="faiSummaryTab" name="FAI summary" />
+{else}
+<!--   <tab class="faiSummaryTab" name="FAI summary" /> -->
+{/if}
           <tab class="terminfo" name="Information" />
           <tab class="glpiAccount" name="Inventory" />
           <tab class="reference" name="References" />
                <tab class="workservice" name="Devices" />
                <tab class="printgeneric" name="Printer" />
                <tab class="terminfo" name="Information" />
-               <tab class="faiSummaryTab" name="FAI summary" />
+{if $cv.enableFAI_management}
+           <tab class="faiSummaryTab" name="FAI summary" />
+{else}
+<!--    <tab class="faiSummaryTab" name="FAI summary" /> -->
+{/if}
                <tab class="glpiAccount" name="Inventory" />
                <tab class="reference" name="References" />
        </worktabs>
                <tab class="csvimport" name="CSV Import" />
        </ldiftab>
 
+{if $cv.enableFAI_management}
        <faipartitiontabs>
                <tab class="faiPartitionTable" name="Partitions" />
        </faipartitiontabs>
        <faipackagetabs>
                <tab class="faiPackage" name="Packages" />
        </faipackagetabs>
+{else}
+<!-- 
+       <faipartitiontabs>
+               <tab class="faiPartitionTable" name="Partitions" />
+       </faipartitiontabs>
+
+       <faiscripttabs>
+               <tab class="faiScript" name="Script" />
+       </faiscripttabs>
+
+       <faihooktabs>
+               <tab class="faiHook" name="Hooks" />
+       </faihooktabs>
+
+       <faivariabletabs>
+               <tab class="faiVariable" name="Variables" />
+       </faivariabletabs>
+
+       <faitemplatetabs>
+               <tab class="faiTemplate" name="Templates" />
+       </faitemplatetabs>
+
+       <faiprofiletabs>
+               <tab class="faiProfile" name="Profiles" />
+               <tab class="faiSummaryTab" name="Summary" />
+       </faiprofiletabs>
+
+       <faipackagetabs>
+               <tab class="faiPackage" name="Packages" />
+       </faipackagetabs>
+-->
+{/if}
        
        <main default="{$cv.location}"
 
index 2e0d333f1bd5f7045f8912f125896ba52aeb99f9..27efe10cee542aee6c8537c4a36b097d0a457774 100644 (file)
@@ -42,10 +42,11 @@ class Step_Config2 extends setup_step
                                   "smbhash"          => 'SMBHASH',
                                   "samba_rid_active" => FALSE); 
 
-  var $sambaDomain_found = FALSE;
-  var $use_netatalk = FALSE;
+  var $sambaDomain_found    = FALSE;
+  var $use_netatalk         = FALSE;
+  var $enableFAI_management = FALSE;
 
-  var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk");
+  var $attributes = array("governmentmode","sambaidmapping","cyrusunixstyle","mail","use_netatalk","enableFAI_management");
   var $called = FALSE;
 
   function Step_Config2()
@@ -106,6 +107,12 @@ class Step_Config2 extends setup_step
       if(is_array($tmp) && isset($tmp['apple-user'])) {
         $this->use_netatalk = TRUE;
       }
+
+      /* Check the FAI schema is used */
+      if(is_array($tmp) && isset($tmp['FAIclass'])){
+#        $this->enableFAI_management = TRUE;
+      }
+
       $this->called = TRUE;
     }
 
index d8d09e76ac97163b22db69d770f4d94a29c19be0..d85d5126a50d22b654b897d5004f13bc0a9e4958 100644 (file)
         </div>
     </div>
 
+       <div class='step4_container'>
+        <div class='step4_name'>
+            {t}Enable FAI release management{/t}
+        </div>
+        <div class='step4_value'>
+
+            <select name="enableFAI_management" size="1" title="">
+                {html_options options=$bool selected=$enableFAI_management}
+            </select>
+        </div>
+    </div>
+
        <div class='step4_container'>
         <div class='step4_name'>
             {t}Enable user netatalk plugin{/t}