index de38244a728dec0793a8046008f94889d4a8be4f..4a7fb40ce02c08570c5ff4b94b07919f00c35963 100644 (file)
</tr>
<tr>
<td>
- {t}Path{/t}
+ {t}Path{/t} / {t}Volume{/t}
</td>
<td>
<input type="text" size="40" name="path" value="{$path}">
</tr>
<tr>
<td>
- <div id="vlabel">{t}Volume{/t}</div>
+ <div id="vlabel">{t}Server{/t}</div>
</td>
<td>
<input type="text" id="volume" size="40" name="volume" value="{$volume}">
</select>
{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>
+ <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}
- <br>
- <br>
- {/if}
</td>
</tr>
<tr>