From 2a61537f1a3858229c303d8a535fd143ad43ab3f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 Sep 2005 06:13:27 +0000 Subject: [PATCH] Template Design git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1321 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/FAI/class_faiManagement.inc | 1 + plugins/admin/FAI/class_faiTemplate.inc | 2 +- plugins/admin/FAI/class_faiTemplateEntry.inc | 8 +- plugins/admin/FAI/class_faiVariableEntry.inc | 6 +- plugins/admin/FAI/faiHook.tpl | 82 +++++++++------ plugins/admin/FAI/faiScript.tpl | 82 +++++++++------ plugins/admin/FAI/faiTemplate.tpl | 82 +++++++++------ plugins/admin/FAI/faiTemplateEntry.tpl | 105 +++++++++++++------ plugins/admin/FAI/faiVariable.tpl | 82 +++++++++------ plugins/admin/FAI/faiVariableEntry.tpl | 75 +++++++------ 10 files changed, 317 insertions(+), 208 deletions(-) diff --git a/plugins/admin/FAI/class_faiManagement.inc b/plugins/admin/FAI/class_faiManagement.inc index 3f38e2a9a..99665d4c1 100644 --- a/plugins/admin/FAI/class_faiManagement.inc +++ b/plugins/admin/FAI/class_faiManagement.inc @@ -203,6 +203,7 @@ class faiManagement extends plugin $a_setup = ( $this->get_type($entry)); $this->dn = $entry['dn']; + $this->dialog= new $a_setup[0]($this->config, $this->config->data['TABS'][$a_setup[2]],$this->dn); $this->is_dialog = true; diff --git a/plugins/admin/FAI/class_faiTemplate.inc b/plugins/admin/FAI/class_faiTemplate.inc index b97633897..e34fa213d 100644 --- a/plugins/admin/FAI/class_faiTemplate.inc +++ b/plugins/admin/FAI/class_faiTemplate.inc @@ -236,7 +236,7 @@ class faiTemplate extends plugin $tmp['objectClass'] = $this->subClasses; $sub_dn = "cn=".$obj['cn'].",".$this->dn; - + if($obj['status'] == "delete"){ $ldap->cd($sub_dn); $ldap->rmdir_recursive($sub_dn); diff --git a/plugins/admin/FAI/class_faiTemplateEntry.inc b/plugins/admin/FAI/class_faiTemplateEntry.inc index 58490b4af..ca0f879f4 100644 --- a/plugins/admin/FAI/class_faiTemplateEntry.inc +++ b/plugins/admin/FAI/class_faiTemplateEntry.inc @@ -9,15 +9,17 @@ class faiTemplateEntry extends plugin /* attribute list for save action */ var $ignore_account= TRUE; - var $attributes = array("Object_cn","Object_description","Object_FAIpriority","Object_FAIscript"); + var $attributes = array("Object_cn","Object_description","Object_FAItemplateFile","Object_FAItemplatePath","Object_FAIowner","Object_FAImode"); var $objectclasses= array(); var $orig_cn = ""; var $Object_dn = ""; var $Object_cn = ""; - var $Object_FAIpriority = ""; - var $Object_FAIscript = ""; + var $Object_FAItemplateFile = ""; + var $Object_FAItemplatePath = ""; + var $Object_FAIowner = ""; + var $Object_FAImode = ""; var $Object_description = ""; var $Object_status = "new"; diff --git a/plugins/admin/FAI/class_faiVariableEntry.inc b/plugins/admin/FAI/class_faiVariableEntry.inc index 1b630d491..01dff1dbb 100644 --- a/plugins/admin/FAI/class_faiVariableEntry.inc +++ b/plugins/admin/FAI/class_faiVariableEntry.inc @@ -9,15 +9,13 @@ class faiVariableEntry extends plugin /* attribute list for save action */ var $ignore_account= TRUE; - var $attributes = array("Object_cn","Object_description","Object_FAIpriority","Object_FAIscript"); + var $attributes = array("Object_cn","Object_description","Object_FAIvariableContent"); var $objectclasses= array(); var $orig_cn = ""; - var $Object_dn = ""; var $Object_cn = ""; - var $Object_FAIpriority = ""; - var $Object_FAIscript = ""; + var $Object_FAIvariableContent = ""; var $Object_description = ""; var $Object_status = "new"; diff --git a/plugins/admin/FAI/faiHook.tpl b/plugins/admin/FAI/faiHook.tpl index e7ac45b21..c40963328 100644 --- a/plugins/admin/FAI/faiHook.tpl +++ b/plugins/admin/FAI/faiHook.tpl @@ -1,35 +1,51 @@ -

{t}FAI script set{/t} -

- - - - - - - - - -
- {t}Name{/t} - - -
- {t}Description{/t} - - -
-
-
-

{t}Already defined scripts{/t}

- - - + + + + +
-
- - - -
+

 {t}Generic{/t}


+ + + + + + + + + +
+ + + +
+ + + +
+
+   + +

  + +


+ + + + +
+
+ + + +
+
diff --git a/plugins/admin/FAI/faiScript.tpl b/plugins/admin/FAI/faiScript.tpl index e7ac45b21..06930ef88 100644 --- a/plugins/admin/FAI/faiScript.tpl +++ b/plugins/admin/FAI/faiScript.tpl @@ -1,35 +1,51 @@ -

{t}FAI script set{/t} -

- - - - - - - - - -
- {t}Name{/t} - - -
- {t}Description{/t} - - -
-
-
-

{t}Already defined scripts{/t}

- - - + + + + +
-
- - - -
+

 {t}Generic{/t}


+ + + + + + + + + +
+ + + +
+ + + +
+
+   + +

  + +


+ + + + +
+
+ + + +
+
diff --git a/plugins/admin/FAI/faiTemplate.tpl b/plugins/admin/FAI/faiTemplate.tpl index e7ac45b21..1b61132e7 100644 --- a/plugins/admin/FAI/faiTemplate.tpl +++ b/plugins/admin/FAI/faiTemplate.tpl @@ -1,35 +1,51 @@ -

{t}FAI script set{/t} -

- - - - - - - - - -
- {t}Name{/t} - - -
- {t}Description{/t} - - -
-
-
-

{t}Already defined scripts{/t}

- - - + + + + +
-
- - - -
+

 {t}Generic{/t}


+ + + + + + + + + +
+ + + +
+ + + +
+
+   + +

  + +


+ + + + +
+
+ + + +
+
diff --git a/plugins/admin/FAI/faiTemplateEntry.tpl b/plugins/admin/FAI/faiTemplateEntry.tpl index 6a4ed396f..0e67301a2 100644 --- a/plugins/admin/FAI/faiTemplateEntry.tpl +++ b/plugins/admin/FAI/faiTemplateEntry.tpl @@ -1,44 +1,81 @@ -

{t}FAI script set{/t} -

- - - - - - - - - -
- {t}Name{/t} - - -
- {t}Description{/t} - - -
-

 

-
-

{t}Script{/t}

- - -
- + + + - - - + - +
+

 {t}Generic{/t}

+ + + + + + + + + +
+ {t}Name{/t} {$must} + + +
+ {t}Description{/t} {$must} + + +
- + +   + +

 {t}Template attributes{/t}

+ + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
-

 


- +  
diff --git a/plugins/admin/FAI/faiVariable.tpl b/plugins/admin/FAI/faiVariable.tpl index e7ac45b21..6c009f6a2 100644 --- a/plugins/admin/FAI/faiVariable.tpl +++ b/plugins/admin/FAI/faiVariable.tpl @@ -1,35 +1,51 @@ -

{t}FAI script set{/t} -

- - - - - - - - - -
- {t}Name{/t} - - -
- {t}Description{/t} - - -
-
-
-

{t}Already defined scripts{/t}

- - - + + + + +
-
- - - -
+

 {t}Generic{/t}


+ + + + + + + + + +
+ + + +
+ + + +
+
+   + +

  + +


+ + + + +
+
+ + + +
+
diff --git a/plugins/admin/FAI/faiVariableEntry.tpl b/plugins/admin/FAI/faiVariableEntry.tpl index 6a4ed396f..97abbe643 100644 --- a/plugins/admin/FAI/faiVariableEntry.tpl +++ b/plugins/admin/FAI/faiVariableEntry.tpl @@ -1,44 +1,51 @@ -

{t}FAI script set{/t} -

- - - - - - - - - -
- {t}Name{/t} - - -
- {t}Description{/t} - - -
-

 

-
-

{t}Script{/t}

- - -
- + + + - - - + - +
+

 {t}Generic{/t}

+ + + + + + + + + +
+ {t}Name{/t} {$must} + + +
+ {t}Description{/t} {$must} + + +
- + +   + +

 {t}Variable attributes{/t}

+ + + + + +
+ + + +
-

 


- +  
-- 2.30.2