Code

Updated share service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Mar 2010 16:41:58 +0000 (16:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Mar 2010 16:41:58 +0000 (16:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16969 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/services/shares/class_servNfs.inc
gosa-plugins/goto/admin/systems/services/shares/goShareServer.tpl
gosa-plugins/goto/admin/systems/services/shares/servnfs.tpl

index 14bd2677e4a58c0ff4d1bfee7197d2bde1240f63..8e50b5fc20228347344fdd49e6b972ba990cb847 100644 (file)
@@ -108,7 +108,7 @@ class servnfs extends plugin
     $smarty->assign("allow_mounts", $this->parent->allow_mounts);
     $smarty->assign("mount_checked", "");
 
-    $smarty->assign("appleMountsACL",    $this->getacl("appleMounts"));
+    $smarty->assign("appleMountsACL",    $this->parent->getacl("appleMounts"));
 
     if (($this->type == "netatalk") || ($this->type == "NFS")) {
       if ($this->create_mount_init) {
@@ -264,8 +264,6 @@ class servnfs extends plugin
   function should_create_mount() {
     return $this->create_mount;
   }
-
-
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index 10f0c7f3c211494153fdfeb4d0f87b5835a3ca17..647d21a26a536b1cc5ef94484bbe7734168f02a0 100644 (file)
@@ -1,40 +1,33 @@
 <h3>{t}Shares{/t}</h3>
-   <table summary="" style="width:100%">
-    <tr>
-     <td>
-{render acl=$nameACL  mode=read_active}
-        <select style="width:100%" id="goExportEntry" name="goExportEntryList[]" size=12 multiple >
-            {html_options values=$goExportEntry output=$goExportEntryKeys}
-            <option disabled>&nbsp;</option>
-        </select>
-{/render}
-    <br>
-       
-{render acl=$nameACL}
-        <button type='submit' name='NewNfsAdd' id="NewNfsAddId" {if !$createable} disabled {/if}
->{msgPool type=addButton}</button>
-
-{/render}
-{render acl=$nameACL mode=read_active}
-        <button type='submit' name='NewNfsEdit' id="NewNfsEditId">{t}Edit{/t}</button>
-
-{/render}
-{render acl=$nameACL}
-        <button type='submit' name='DelNfsEnt' id="DelNfsEntId" {if !$removeable} disabled {/if}
->{msgPool type=delButton}</button>
-
-{/render}
-    </td>
-    </tr>
-   </table>
 
+<table summary="{t}Shares{/t}" style="width:100%">
+ <tr>
+  <td>
+   {render acl=$nameACL  mode=read_active}
+    <select style="width:100%" id="goExportEntry" name="goExportEntryList[]" size=12 multiple >
+      {html_options values=$goExportEntry output=$goExportEntryKeys}
+      <option disabled>&nbsp;</option>
+    </select>
+   {/render}
+   <br>
+   {render acl=$nameACL}
+    <button type='submit' name='NewNfsAdd' id="NewNfsAddId" 
+      {if !$createable} disabled {/if}>{msgPool type=addButton}</button>
+   {/render}
+   {render acl=$nameACL mode=read_active}
+    <button type='submit' name='NewNfsEdit' id="NewNfsEditId">{t}Edit{/t}</button>
+   {/render}
+   {render acl=$nameACL}
+    <button type='submit' name='DelNfsEnt' id="DelNfsEntId" 
+      {if !$removeable} disabled {/if}>{msgPool type=delButton}</button>
+   {/render}
+  </td>
+ </tr>
+</table>
 
 <hr>
-<div style="width:100%; text-align:right;padding-top:10px;padding-bottom:3px;">
-    <button type='submit' name='SaveService'>{msgPool type=saveButton}</button>
-
-    &nbsp;
-    <button type='submit' name='CancelService'>{msgPool type=cancelButton}</button>
-
+<div class="plugin-actions">
+ <button type='submit' name='SaveService'>{msgPool type=saveButton}</button>
+ <button type='submit' name='CancelService'>{msgPool type=cancelButton}</button>
 </div>
 <input type="hidden" name="goShareServerPosted" value="1">
index 9e91a55d389c64019f08841771d5fdc9ae06fbc7..dbaf9e79439b39703f7bb10d29c40440ffb6fb99 100644 (file)
@@ -75,7 +75,7 @@
                                                {/if}
 
                                                                {literal}
-                                                                       <script language="JavaScript">
+                                                                       <script type="text/javascript" language="JavaScript">
                                                                                document.getElementById('sharetype').onchange=function() {
                                                                                        var foobar=this[this.selectedIndex].value;
                                                                                        var box=document.getElementById('netatalk_mount');
                        </table>
                </td>
        </tr>
-       <tr>
-               <td colspan=2>
-                       <hr>
-               </td>
-       </tr>
-       <tr>
-               <td colspan=2 style="text-align:right">
-                       <button type='submit' name='NFSsave'>{msgPool type=saveButton}</button>
+</table>
 
+<hr>
+<div class="plugin-actions">
+                       <button type='submit' name='NFSsave'>{msgPool type=saveButton}</button>
                        <button type='submit' name='NFScancel'>{msgPool type=cancelButton}</button>
-
-               </td>
-       </tr>
-</table>
+</div>
 <input type='hidden' name='servnfs_posted' value='1'>