{=include-block:Y_Blocks.txt;head=}
<script src="/Y_Baselib.js"></script>
<script>
function form_init()
{
	var check = {=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_type_{=R1=}=};
	document.f.type[check].checked = true;

	check = {=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_automount_{=R1=}=};
	document.f.automount[check].checked = true;
}
function do_submit()
{
	show_waitbox(true);
	document.f.submit();
}
</script>
{=include-block:Y_Blocks.txt;head_close=}
<body onLoad="form_init()">
{=var-set:wait_text={=L:save_values=}=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
	<div class="work_box_head">
		<div class="work_box_head_h2">{=var-set:menu=Mount {=R1=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
	<div class="work_box_body">
	<form name="f" action="/y/cgi">
		<input type="hidden" name="nr" value="{=R1=}"/>
		<table border="0" class="y_form_table">
			<tr>
				<td>Typ</td>
				<td>
					<input type="radio" name="type" value="0"/>NFS&nbsp;
					<input type="radio" name="type" value="1"/>CIFS&nbsp;
				</td>
			</tr>
			<tr>
				<td>IP</td>
				<td><input type="text" name="ip" size="20" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_ip_{=R1=}=}"/></td>
			</tr>
			<tr>
				<td>Verzeichnis</td>
				<td><input type="text" name="dir" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_dir_{=R1=}=}" title="remote directory. For CIFS do not use a leading slash."/></td>
			</tr>
			<tr>
				<td>Lokales Verzeichnis</td>
				<td><input type="text" name="localdir" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_local_dir_{=R1=}=}" title="local directory to by mounted"/></td>
			</tr>
			<tr>
				<td>MAC</td>
				<td><input type="text" name="mac" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_mac_{=R1=}=}"/></td>
			</tr>
			<tr>
				<td>Optionen 1</td>
				<td><input type="text" name="opt1" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_mount_options1_{=R1=}=}" title="mount options 1"/></td>
			</tr>
			<tr>
				<td>Optionen 2</td>
				<td><input type="text" name="opt2" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_mount_options2_{=R1=}=}" title="mount options 2"/></td>
			</tr>
			<tr>
				<td>Automount</td>
				<td>
					<INPUT type="radio" name="automount" value="0" title="off"/>AUS&nbsp;
					<INPUT type="radio" name="automount" value="1" title="on"/>AN
				</td>
			</tr>
			<tr>
				<td>Benutzername</td>
				<td><input type="text" name="username" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_username_{=R1=}=}" title="username"/></td>
			</tr>
			<tr>
				<td>Passwort</td>
				<td><input type="password" name="password" size="30" value="{=ini-get:/var/tuxbox/config/neutrino.conf;network_nfs_password_{=R1=}=}" title="password"/></td>
			</tr>
		</table>
		<br/>
		<input type="hidden" name="tmpl" value="Y_Settings_mount_list.yhtm"/>
		<input type="hidden" name="execute" value="func:mount-set-values"/>
		<button type="button" ytype="save" title="submit and save values" onClick="do_submit()">Speichern</button>
		<button type="button" ytype="cancel" title="cancel" name="abort" onClick='window.document.location.href="/Y_Settings_mount_list.yhtm"'>Abbrechen</button>
	</form>
	</div>
</div>
</body>
</html>