Code

Group generic used template fro copy & paste now
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Mar 2006 12:29:57 +0000 (12:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Mar 2006 12:29:57 +0000 (12:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2896 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupGeneric.inc
plugins/admin/groups/paste_generic.tpl [new file with mode: 0644]

index 9659a70428a1df53676cdd80b938733fb7664736..de07e7d4c1c6487f3bdcf5881e3cb329c23a9a0f 100644 (file)
@@ -821,33 +821,12 @@ class group extends plugin
       $dis  = " disabled ";
     }
 
-    $str =" <h2>"._("Group settings")."</h2>
-            <table width='100%'>
-              <tr>
-                <td style='width:150px;'>".
-                  _("Group name").
-                "</td>
-                <td>
-                   <input id='cn' name='cn' size='35' maxlength='60'
-                    value='".$this->cn."'
-                    title='"._("Posix name of the group")."'>
-                </td>
-              </tr>
-              <tr>
-                <td>
-                  <input type=checkbox name='force_gid' value='1' ".$used."   
-                      title='"._("Normally IDs are autogenerated, select to specify manually")."' 
-                        onclick='changeState(\"gidNumber\")'
-                  <LABEL for='gidNumber'>"._("Force GID")."</LABEL>
-                &nbsp;
-                </td>
-                <td>
-                <input name='gidNumber' size=5 maxlength=5 id='gidNumber' ".$dis."  
-                    value='".$this->gidNumber."' title='"._("Forced ID number")."'>
-               </td>
-              </tr>
-          </table>";
-    return($str);
+    $smarty = get_smarty();
+    $smarty->assign("used",$used);
+    $smarty->assign("dis" ,$dis);
+    $smarty->assign("cn" ,$this->cn);
+    $smarty->assign("gidNumber",$this->gidNumber);
+    return($smarty->fetch(get_template_path("paste_generic.tpl",TRUE)));
   }
 
   function saveCopyDialog()
diff --git a/plugins/admin/groups/paste_generic.tpl b/plugins/admin/groups/paste_generic.tpl
new file mode 100644 (file)
index 0000000..6b98184
--- /dev/null
@@ -0,0 +1,21 @@
+<h2>{t}Group settings{/t}</h2>
+<table width='100%'>
+       <tr>
+               <td style='width:150px;'>
+                       {t}Group name{/t}
+               </td>
+               <td>
+                       <input id='cn' name='cn' size='35' maxlength='60' value='{$cn}' title='{t}Posix name of the group{/t}'>
+               </td>
+       </tr>
+       <tr>
+               <td>
+                       <input type=checkbox name='force_gid' value='1' {$used} title='{t}Normally IDs are autogenerated, select to specify manually{/t}' 
+                               onclick='changeState(\"gidNumber\")'>
+                       <LABEL for='gidNumber'>{t}Force GID{/t}</LABEL>
+               </td>
+               <td>
+                       <input name='gidNumber' size=5 maxlength=5 id='gidNumber' {$dis} value='{$gidNumber}' title='{t}Forced ID number{/t}'>
+               </td>
+       </tr>
+</table>