From: cajus Date: Mon, 19 Sep 2005 14:39:25 +0000 (+0000) Subject: Updated templates X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d616a278a0cdf88007b6b9ff320c29a8225837e;p=gosa.git Updated templates git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1395 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiVariable.inc b/plugins/admin/fai/class_faiVariable.inc index 606f18c3e..90faabf35 100644 --- a/plugins/admin/fai/class_faiVariable.inc +++ b/plugins/admin/fai/class_faiVariable.inc @@ -159,7 +159,11 @@ class faiVariable extends plugin $a_return=array(); foreach($this->SubObjects as $obj){ if($obj['status'] != "delete"){ - $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]"; + if (preg_match("/\[\*\]/", $obj['description'])){ + $a_return[$obj['cn']]= $obj['cn']." [".preg_replace("/\s*\[\*\]\s*/", "", $obj['description'])."]"; + } else { + $a_return[$obj['cn']]= $obj['cn']."=".$obj['FAIvariableContent']." [".$obj['description']."]"; + } } } return($a_return); diff --git a/plugins/admin/fai/class_faiVariableEntry.inc b/plugins/admin/fai/class_faiVariableEntry.inc index 3f993cb90..d3a19ebbe 100644 --- a/plugins/admin/fai/class_faiVariableEntry.inc +++ b/plugins/admin/fai/class_faiVariableEntry.inc @@ -72,7 +72,6 @@ class faiVariableEntry extends plugin { $message= array(); - $str = utf8_encode("üöä"); if(empty($this->Object_FAIvariableContent)) { $message[]=_("Please specify a value for the attribute 'content'."); } @@ -81,10 +80,6 @@ class faiVariableEntry extends plugin $message[] = _("Please enter a description."); } - if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){ - $message[] = _("Invalid character in description. Please enter a valid description."); - } - if(empty($this->Object_cn)){ $message[] = _("Please enter a name."); } diff --git a/plugins/admin/fai/faiProfile.tpl b/plugins/admin/fai/faiProfile.tpl index 11185d262..7c9d1e0b1 100644 --- a/plugins/admin/fai/faiProfile.tpl +++ b/plugins/admin/fai/faiProfile.tpl @@ -1,4 +1,4 @@ -

 {t}Generic{/t}


+

 {t}Generic{/t}

diff --git a/plugins/admin/fai/faiScript.tpl b/plugins/admin/fai/faiScript.tpl index 0d405a102..23345a416 100644 --- a/plugins/admin/fai/faiScript.tpl +++ b/plugins/admin/fai/faiScript.tpl @@ -1,7 +1,7 @@
-

 {t}Generic{/t}


+

 {t}Generic{/t}

@@ -20,7 +20,7 @@ - +
@@ -29,15 +29,15 @@  
-

  +

  -


+
- {html_options values=$SubObjectKeys output=$SubObjects}
diff --git a/plugins/admin/fai/faiScriptEntry.tpl b/plugins/admin/fai/faiScriptEntry.tpl index c07a8dc09..a410994a4 100644 --- a/plugins/admin/fai/faiScriptEntry.tpl +++ b/plugins/admin/fai/faiScriptEntry.tpl @@ -17,7 +17,7 @@ {t}Description{/t}{$must} 
- +
@@ -26,7 +26,7 @@  
-

 {t}Script attributes{/t}

+

 {t}Script attributes{/t}

@@ -45,24 +45,23 @@

 

-

  +

 

-
- {t}Import script{/t}   -   - -
-
- +
+
+
+   + +

diff --git a/plugins/admin/fai/faiTemplate.tpl b/plugins/admin/fai/faiTemplate.tpl index e310be27c..b22bc9102 100644 --- a/plugins/admin/fai/faiTemplate.tpl +++ b/plugins/admin/fai/faiTemplate.tpl @@ -1,7 +1,7 @@
-

 {t}Generic{/t}


+

 {t}Generic{/t}

@@ -31,13 +31,13 @@

  -


+
- {html_options values=$SubObjectKeys output=$SubObjects}
diff --git a/plugins/admin/fai/faiTemplateEntry.tpl b/plugins/admin/fai/faiTemplateEntry.tpl index 70dd862f6..e0fda071b 100644 --- a/plugins/admin/fai/faiTemplateEntry.tpl +++ b/plugins/admin/fai/faiTemplateEntry.tpl @@ -17,7 +17,7 @@ {t}Description{/t}{$must} 
- +
@@ -30,22 +30,22 @@
- - +
- - +
diff --git a/plugins/admin/fai/faiVariable.tpl b/plugins/admin/fai/faiVariable.tpl index cc3871e7d..25843553c 100644 --- a/plugins/admin/fai/faiVariable.tpl +++ b/plugins/admin/fai/faiVariable.tpl @@ -1,7 +1,7 @@
-

 {t}Generic{/t}


+

 {t}Generic{/t}

@@ -20,7 +20,7 @@ - +
@@ -31,13 +31,13 @@

  -


+
- {html_options values=$SubObjectKeys output=$SubObjects}
diff --git a/plugins/admin/fai/faiVariableEntry.tpl b/plugins/admin/fai/faiVariableEntry.tpl index d2a80113a..655dd5d0b 100644 --- a/plugins/admin/fai/faiVariableEntry.tpl +++ b/plugins/admin/fai/faiVariableEntry.tpl @@ -2,7 +2,7 @@
-

 {t}Generic{/t}

+

 {t}Generic{/t}

@@ -17,7 +17,7 @@ {t}Description{/t}{$must}  - +
@@ -31,7 +31,7 @@