mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
yWeb: rename Y_NI_NetFS-control.yhtm => Y_Tools_NetFS.yhtm
Origin commit data
------------------
Branch: ni/coolstream
Commit: ef396f48bf
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Origin message was:
------------------
- yWeb: rename Y_NI_NetFS-control.yhtm => Y_Tools_NetFS.yhtm
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
116
data/y-web/Y_Tools_NetFS.yhtm
Normal file
116
data/y-web/Y_Tools_NetFS.yhtm
Normal file
@@ -0,0 +1,116 @@
|
||||
{=var-set:nr=0=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=1=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=2=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=3=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=4=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=5=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=6=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
{=var-set:nr=7=} {=include-block:Y_Blocks.txt;netfs_local_dir=}
|
||||
|
||||
{=var-set:nr=0=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=1=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=2=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=3=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=4=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=5=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=6=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
{=var-set:nr=7=} {=include-block:Y_Blocks.txt;netfs_is_mount=}
|
||||
|
||||
{=include-block:Y_Blocks.txt;head_ni=}
|
||||
<script src="/Y_Baselib.js"></script>
|
||||
<script>
|
||||
function edit_popup()
|
||||
{
|
||||
popup = window.open('/Y_Filemgr_Edit.yhtm?file={=if-file-exists:/var/etc/{=L:tools.netfs.{=mount_type=}=}~/var/etc/{=L:tools.netfs.{=mount_type=}=}~/etc/{=L:tools.netfs.{=mount_type=}=}=}', 'edit', 'width=800,height=600,resizable=yes');
|
||||
check_popup();
|
||||
}
|
||||
|
||||
function check_popup()
|
||||
{
|
||||
if(popup.closed == true)
|
||||
{
|
||||
restart_menu();
|
||||
}
|
||||
else
|
||||
{
|
||||
wait_for_popup();
|
||||
}
|
||||
}
|
||||
|
||||
function wait_for_popup()
|
||||
{
|
||||
window.setTimeout("check_popup()", 10);
|
||||
}
|
||||
|
||||
function restart_menu()
|
||||
{
|
||||
alert('{=L:tools.netfs.restart_menu=}');
|
||||
window.document.location.href='/Y_Tools_NetFS_init.yhtm?mount_type={=mount_type=}&mount_type_s={=mount_type_s=}';
|
||||
}
|
||||
|
||||
function do_submit()
|
||||
{
|
||||
show_waitbox(true);
|
||||
document.f.submit();
|
||||
}
|
||||
</script>
|
||||
{=include-block:Y_Blocks.txt;head_close=}
|
||||
<body>
|
||||
{=var-set:wait_text={=L:tools.netfs.title=}<br/>=}{=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={=L:tools.netfs.title=}=}{=include-block:Y_Blocks.txt;work_menu=}
|
||||
</div></div>
|
||||
<div class="work_box_body">
|
||||
<table class="y_invisible_table" cellpadding="5">
|
||||
<tr>
|
||||
<td class="y_form_header" width="30%">
|
||||
{=L:tools.netfs.entrys=} {=L:tools.netfs.{=mount_type=}=}
|
||||
</td>
|
||||
<td class="y_form_header">
|
||||
<a href="javascript:edit_popup();" title="{=L:ni.edit=}: {=L:tools.netfs.{=mount_type=}=}">
|
||||
<img src="/images/modify.png">
|
||||
</a>
|
||||
{=if-equal:{=mount_type=}~0~
|
||||
<a href="javascript:Y_NI_Tools('do_mount_all', 5000);" title="{=L:tools.netfs.mount_all=}">
|
||||
<img src="/images/server_add.png">
|
||||
</a>
|
||||
<a href="javascript:Y_NI_Tools('do_umount_all', 5000);" title="{=L:tools.netfs.umount_all=}">
|
||||
<img src="/images/server_delete.png">
|
||||
</a>
|
||||
~
|
||||
=}
|
||||
{=if-equal:{=mount_type=}~1~
|
||||
<a href="javascript:Y_NI_Tools('do_autofs restart', 5000);" title="{=L:tools.netfs.autofs_restart=}">
|
||||
<img src="/images/server_link.png">
|
||||
</a>
|
||||
~
|
||||
=}
|
||||
</td>
|
||||
</tr>
|
||||
{=var-set:nr=0=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=1=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=2=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=3=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=4=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=5=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=6=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
{=var-set:nr=7=} {=include-block:Y_Blocks.txt;netfs_table_row=}
|
||||
</table>
|
||||
<br />
|
||||
<button type="button" ytype="save" title="{=L:ni.save=}: {=L:tools.netfs.{=mount_type=}=}" onclick="$('out').update(''); goUrl('/y/cgi?execute=func:netfs_write_config {=mount_type=}')">{=L:ni.save=}</button>
|
||||
{=if-equal:{=mount_type=}~1~
|
||||
<button type="button" ytype="refresh" title="{=L:tools.netfs.autofs_restart=}" onclick="Y_NI_Tools('do_autofs restart', 5000)">{=L:ni.reload=}</button>
|
||||
~
|
||||
=}
|
||||
</div>
|
||||
</div>
|
||||
<div class="work_box">
|
||||
<div class="work_box_head"><div class="work_box_head_h2">
|
||||
{=var-set:menu={=L:answer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
||||
<div class="work_box_body">
|
||||
<div id="out"></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user