{=include-block:Y_Blocks.txt;head=}
<script src="/Y_Baselib.js"></script>
<script>
function do_submit()
{
	show_waitbox(true);
	document.f.submit();
}
function do_edit()
{
	document.f.cmd.value = "edit";
	do_submit();
}
function do_add()
{
	document.f.cmd.value = "add";
	do_submit();
}
function do_delete()
{
	if(confirm("Mount wirklich loeschen?") == true)
	{
		var mountname = obj_get_radio_value("R1");
		var _url ="/control/exec?Y_Tools&automount_setline&{=if-file-exists:/var/etc/auto.net~/var/etc/auto.net~/etc/auto.net=}&"+mountname+"&";
		var res = loadSyncURL(_url);
		alert("geloescht!");
		location.reload();
	}
}
</script>
{=include-block:Y_Blocks.txt;head_close=}
<body>
{=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=AutoMount=}{=include-block:Y_Blocks.txt;work_menu=}</div>
	</div>
	<div class="work_box_body">
	<form action="/y/cgi" name="f" id="f">
		{=script:Y_Tools automount_list {=if-file-exists:/var/etc/auto.net~/var/etc/auto.net~/etc/auto.net=}=}
		<br/>
		<input type="hidden" name="tmpl" value="Y_Settings_automount.yhtm"/>
		<input type="hidden" name="execute" value=""/>
		<input type="hidden" name="cmd" value=""/>
		<button type="button" ytype="edit" title="edit mount settings" onclick="do_edit()">&auml;ndern</button>
		<button type="button" ytype="add" title="add new mount" onclick="do_add()">hinzuf&uuml;gen</button>
		<button type="button" ytype="delete" title="delete mount" onclick="do_delete()">l&ouml;schen</button>
	</form>
	</div>
</div>
{=include-block:Y_Blocks_Neutrino.txt;neutrino_form_helpbox=}
</body>
</html>