Code

Removed duplicated post call
[gosa.git] / plugins / admin / systems / servnfs.tpl
index 5d8000e4ced76754b327e6dd43599da1a2dfa934..9fb70a5f49520e77149b06577cde228b40a21e99 100644 (file)
@@ -9,7 +9,9 @@
                                                {t}Name{/t} {$must}
                                        </td>
                                        <td>
-                                               <input type="text" name="name" value="{$name}" {$nameACL}>
+{render acl=$nameACL}
+                                               <input type="text" name="name" value="{$name}" >
+{/render}
                                        </td>
                                </tr>
                                <tr>
                                                {t}Description{/t}
                                        </td>
                                        <td>
+{render acl=$descriptionACL}
                                                <input type="text" size="40" name="description" value="{$description}">
+{/render}
                                        </td>
                                </tr>
                                <tr>
                                        <td>
-                                               {t}Path{/t}
+                                               {t}Path{/t} / {t}Volume{/t}
                                        </td>
                                        <td>
+{render acl=$pathACL}
                                                <input type="text" size="40" name="path" value="{$path}">
+{/render}
                                        </td>
                                </tr>
                                <tr>
                                        <td>
-                                               <div id="vlabel">{t}Volume{/t}</div>
+                                               <div id="vlabel">{t}Server{/t}</div>
                                        </td>
                                        <td>
+{render acl=$volumeACL}
                                                <input type="text" id="volume" size="40" name="volume" value="{$volume}">
+{/render}
                                        </td>
                                </tr>
                        </table>
                        <table summary="">
                                <tr>
                                        <td style="vertical-align:top">
+
                                                {t}Type{/t}
                                        </td>
                                        <td>
+{render acl=$typeACL}
                                                <select size="1" name="type" id="sharetype">
                                                        {html_options options=$types selected=$type}
                                                </select>
+{/render}
                                                {if $allow_mounts == TRUE}
-                                                       <br><br><input type="checkbox" name="netatalk_mount" id="netatalk_mount" {$mount_checked} {$appleMountsACL}/><label for="netatalk_mount">{t}Auto-mount share on Apple systems{/t}</label>
-                                                       {if $appleMountsACLset == FALSE}
+                                               <br><br>
+{render acl=$netatalkmountACL}
+                                               <input type="checkbox" name="netatalk_mount" id="netatalk_mount" {$mount_checked} />
+{/render}
+                                               <label for="netatalk_mount">{t}Auto-mount share on Apple systems{/t}</label>
+                                                       <br>
+                                                       <br>
+                                               {/if}
+
                                                                {literal}
                                                                        <script language="JavaScript">
                                                                                document.getElementById('sharetype').onchange=function() {
                                                                                        var box=document.getElementById('netatalk_mount');
                                                                                        var volume=document.getElementById('volume');
                                                                                        var vlabel=document.getElementById('vlabel');
+                                                               {/literal}
+                                                                       <!-- Only add checkbox enable/disable js part if checkbox is available --> 
+                                                                       {if $allow_mounts == TRUE}
+                                                                               {literal}
                                                                                        if(foobar=="NFS"||foobar=="netatalk"){
                                                                                                box.disabled=false;
                                                                                        } else {
                                                                                                box.disabled=true;
                                                                                                box.checked=false;
                                                                                        }
+                                                                               {/literal}
+                                                                       {/if}
+                                                               {literal}
                                                                                        if(foobar=="NCP"){
                                                                                                volume.style.visibility="visible";
                                                                                                vlabel.style.visibility="visible";
                                                                                document.getElementById('sharetype').onchange();
                                                                        </script>
                                                                {/literal}
-                                                       {/if}
-                                                       <br>
-                                                       <br>
-                                               {/if}
                                        </td>
                                </tr>
                                <tr>
                                                {t}Codepage{/t}
                                        </td>
                                        <td>
+{render acl=$charsetACL}
                                                <select size="1" name="charset">
                                                        {html_options options=$charsets selected=$charset}
                                                </select>       
+{/render}
                                        </td>
                                </tr>
                                <tr>
                                        {t}Option{/t}
                                    </td>
                                    <td>
+{render acl=$optionACL}
                                                                <input type="text" name="option" value="{$option}">
+{/render}
                                    </td>
                                </tr>
                        </table>
                </td>
        </tr>
 </table>
+<input type='hidden' name='servnfs_posted' value='1'>