Code

Updated templates
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Sep 2005 14:39:25 +0000 (14:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 Sep 2005 14:39:25 +0000 (14:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1395 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiVariable.inc
plugins/admin/fai/class_faiVariableEntry.inc
plugins/admin/fai/faiProfile.tpl
plugins/admin/fai/faiScript.tpl
plugins/admin/fai/faiScriptEntry.tpl
plugins/admin/fai/faiTemplate.tpl
plugins/admin/fai/faiTemplateEntry.tpl
plugins/admin/fai/faiVariable.tpl
plugins/admin/fai/faiVariableEntry.tpl

index 606f18c3ed99a55f883124fc076fa62911413151..90faabf355e0ae6b27d56790bf7638da61fbc7a2 100644 (file)
@@ -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);
index 3f993cb90c9c0a4bdd56f19364261976074734b6..d3a19ebbe5d01662672a429d3b9daa4bb466979c 100644 (file)
@@ -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.");
     }
index 11185d262daa9b6c3f5002c6371699772547e177..7c9d1e0b1e1fa8dd128313144f4a439dec42e466 100644 (file)
@@ -1,4 +1,4 @@
-<h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2><br>
+<h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
 <table summary="" cellspacing="4">
        <tr>
                <td>
index 0d405a1028fd87b4b52b353631d630045b18cfdb..23345a41627b7537d5f0ecaf661e1e38595a8d4e 100644 (file)
@@ -1,7 +1,7 @@
 <table width="100%">
        <tr>
                <td width="50%" valign="top">
-                               <h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2><br>
+                               <h2><img alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
                                <table summary="" cellspacing="4">
                                        <tr>
                                                <td>
@@ -20,7 +20,7 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$description}" {$description} name="description" id="description">
+                                                       <input size=40 value="{$description}" {$description} name="description" id="description">
                                                </td>
                                        </tr>
                                </table>
                   &nbsp;
                </td>
                <td>
-                               <h2><img alt="" src="images/list_ogroup.png" align="middle" title="{t}Objects{/t}">&nbsp;
+                               <h2><img alt="" src="images/fai_script.png" align="middle" title="{t}Objects{/t}">&nbsp;
                                        <LABEL for="SubObject">
-                                               {t}This bundle contains the following objects{/t}
+                                               {t}List of scripts{/t}
                                        </LABEL>
-                               </h2><br>
+                               </h2>
                                <table width="100%">
                                <tr>
                                        <td>
-                                               <select name="SubObject" title="{t}Choose a script to delete or edit{/t}" style="width:350px;height:120px;" size=10 id="SubObject">
+                                               <select name="SubObject" title="{t}Choose a script to delete or edit{/t}" style="width:100%;" size=15 id="SubObject">
                                                        {html_options values=$SubObjectKeys output=$SubObjects}
                                                </select><br>
                                                <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}">
index c07a8dc0915e365e2691ddae33a46480a6eaf67d..a410994a4982c33dcb350a337db8ab7c6d63ee41 100644 (file)
@@ -17,7 +17,7 @@
                                                        {t}Description{/t}{$must}&nbsp;
                                                </td>
                                                <td>
-                                                       <input value="{$Object_description}" name="Object_description">
+                                                       <input size=40 value="{$Object_description}" name="Object_description">
                                                </td>
                                        </tr>
                                </table>
@@ -26,7 +26,7 @@
            &nbsp;
         </td>
                <td valign="top">
-                               <h2><img alt="" src="images/edit.png" align="middle" title="{t}Script attributes{/t}">&nbsp;{t}Script attributes{/t}</h2>
+                               <h2><img alt="" src="images/fai_script.png" align="middle" title="{t}Properties{/t}">&nbsp;{t}Script attributes{/t}</h2>
                                <table width="100%">
                                        <tr>
                                                <td>
        </tr>
 </table>
 <p class="seperator">&nbsp;</p>
-<h2><img alt="" src="images/envelope.png" align="middle" title="{t}Script attributes{/t}">&nbsp;
+<h2><img alt="" src="images/fai_script.png" align="middle" title="{t}Script attributes{/t}">&nbsp;
        <LABEL for="Object_FAIscript">
                {t}Script{/t}
        </LABEL>
        </h2>
-<div>
-       {t}Import script{/t} &nbsp;
-       <input type="file" name="ImportFile">&nbsp;
-       <input type="submit" name="ImportUpload" value="{t}Import{/t}">
-</div>
-<br>
-<table width="100%">
+<table width="99%">
     <tr>
         <td>
             <textarea name="Object_FAIscript" style="width:100%;height:300px;" id="Object_FAIscript">{$Object_FAIscript}</textarea>
         </td>
     </tr>
 </table>
+<br>
+<div>
+       <input type="file" name="ImportFile">&nbsp;
+       <input type="submit" name="ImportUpload" value="{t}Import script{/t}">
+</div>
 
 <br>
 <div style="align:right;" align="right">
index e310be27c5e77ad3112f7dcb792ecdaf72c0dc98..b22bc910210350ce4ca579cc990a9ed36c69b3a3 100644 (file)
@@ -1,7 +1,7 @@
 <table width="100%">
        <tr>
                <td width="50%" valign="top">
-                               <h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2><br>
+                               <h2><img alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
                                <table summary="" cellspacing="4">
                                        <tr>
                                                <td>
                <td>
                                <h2><img alt="" src="images/fai_template.png" align="middle" title="{t}Objects{/t}">&nbsp;
                                        <LABEL for="SubObject">
-                                               {t}This bundle contains the following objects{/t}
+                                               {t}List of template files{/t}
                                        </LABEL>
-                               </h2><br>
+                               </h2>
                                <table width="100%">
                                <tr>
                                        <td>
-                                               <select name="SubObject" title="{t}Choose a template to delete or edit{/t}" style="width:350px;height:120px;" size=10 id="SubObject">
+                                               <select name="SubObject" title="{t}Choose a template to delete or edit{/t}" style="width:100%;" size=15 id="SubObject">
                                                        {html_options values=$SubObjectKeys output=$SubObjects}
                                                </select><br>
                                                <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}">
index 70dd862f65e376d39d08d41f5216af6fef305058..e0fda071b049fd07aa790c8f10700e982bb26b8a 100644 (file)
@@ -17,7 +17,7 @@
                                                        {t}Description{/t}{$must}&nbsp;
                                                </td>
                                                <td>
-                                                       <input value="{$Object_description}" name="Object_description">
+                                                       <input size=40 value="{$Object_description}" name="Object_description">
                                                </td>
                                        </tr>
                                </table>
                                <table width="100%">
                                        <tr>
                                                <td>
-                                                       <LABEL for="Object_FAItemplatePath">
-                                                       {t}Path{/t}{$must}&nbsp;
+                                                       <LABEL for="Object_FAItemplateFile">
+                                                       {t}File{/t}{$must}&nbsp;
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input type="text" name="Object_FAItemplatePath" value="{$Object_FAItemplatePath}" id="Object_FAItemplatePath">
+                                                       <input type="text" name="Object_FAItemplateFile" value="{$Object_FAItemplateFile}" id="Object_FAItemplateFile">
                                                </td>
                                        </tr>
                                        <tr>
                                                <td>
-                                                       <LABEL for="Object_FAItemplateFile">
-                                                       {t}File{/t}{$must}&nbsp;
+                                                       <LABEL for="Object_FAItemplatePath">
+                                                       {t}Destination path{/t}{$must}&nbsp;
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input type="text" name="Object_FAItemplateFile" value="{$Object_FAItemplateFile}" id="Object_FAItemplateFile">
+                                                       <input type="text" name="Object_FAItemplatePath" value="{$Object_FAItemplatePath}" id="Object_FAItemplatePath">
                                                </td>
                                        </tr>
                                </table>
index cc3871e7d4df0fa31b99575f1fc1f8e313f96e25..25843553c434e09b4330d44e9d2d9d1ff44694ea 100644 (file)
@@ -1,7 +1,7 @@
 <table width="100%">
        <tr>
                <td width="50%" valign="top">
-                               <h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2><br>
+                               <h2><img alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
                                <table summary="" cellspacing="4">
                                        <tr>
                                                <td>
@@ -20,7 +20,7 @@
                                                        </LABEL>
                                                </td>
                                                <td>
-                                                       <input value="{$description}" {$description} name="description" id="description">
+                                                       <input size=40 value="{$description}" {$description} name="description" id="description">
                                                </td>
                                        </tr>
                                </table>
                <td>
                                <h2><img alt="" src="images/fai_variable.png" align="middle" title="{t}Objects{/t}">&nbsp;
                                        <LABEL for="SubObject">
-                                               {t}This bundle contains the following objects{/t}
+                                               {t}List of assigned variables{/t}
                                        </LABEL>
-                               </h2><br>
+                               </h2>
                                <table width="100%">
                                <tr>
                                        <td>
-                                               <select name="SubObject" title="{t}Choose a variable to delete or edit{/t}" style="width:350px;height:120px;" size=10 id="SubObject">
+                                               <select name="SubObject" title="{t}Choose a variable to delete or edit{/t}" style="width:100%;" size=15 id="SubObject">
                                                        {html_options values=$SubObjectKeys output=$SubObjects}
                                                </select><br>
                                                <input type="submit" name="AddSubObject"     value="{t}Add{/t}"         title="{t}Add{/t}">
index d2a80113a5b271f7c02b910464a7f39758bfcd5f..655dd5d0b2fbf309b62251c7f6b95a054e750784 100644 (file)
@@ -2,7 +2,7 @@
 <table width="100%" summary="">
        <tr>
                <td valign="top" width="50%">
-                       <h2><img alt="" src="images/house.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
+                       <h2><img alt="" src="images/fai_small.png" align="middle" title="{t}Generic{/t}">&nbsp;{t}Generic{/t}</h2>
                                <table>
                                        <tr>
                                                <td>
@@ -17,7 +17,7 @@
                                                        {t}Description{/t}{$must}&nbsp;
                                                </td>
                                                <td>
-                                                       <input value="{$Object_description}" name="Object_description">
+                                                       <input size=40 value="{$Object_description}" name="Object_description">
                                                </td>
                                        </tr>
                                </table>
@@ -31,7 +31,7 @@
                                        <tr>
                                                <td>
                                                        <LABEL for="Content">
-                                                       {t}Variable Content{/t}{$must}&nbsp;
+                                                       {t}Variable content{/t}{$must}&nbsp;
                                                        </LABEL>
                                                </td>
                                                <td>