egroupware/filemanager/templates/default/admin.xet
2021-09-14 08:59:09 +02:00

124 lines
5.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2//EN" "http://www.egroupware.org/etemplate2.dtd">
<overlay>
<template id="filemanager.admin" template="" lang="" group="0" version="1.7.001">
<groupbox disabled="!@percent_size">
<caption label="sqlFS Statistics"/>
<grid>
<columns>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row>
<description value="All files"/>
<int id="total_files" readonly="true" align="right"/>
<description value="Files"/>
<vfs-size id="total_size" class="bold"/>
</row>
<row>
<description value="Older versions or deleted files"/>
<int id="version_files" readonly="true" align="right"/>
<description value="Files"/>
<vfs-size id="version_size" align="right" class="bold"/>
</row>
<row>
<description value="Percentage"/>
<description id="percent_files" align="right" class="bold"/>
<description/>
<description id="percent_size" align="right" class="bold"/>
</row>
</rows>
</grid>
</groupbox>
<description value="Mountpoints" class="filemanager_header"/>
<grid id="mounts" class="egwGridView_grid">
<columns>
<column/>
<column/>
<column disabled="!@@is_root"/>
<column disabled="!@@is_root"/>
</columns>
<rows>
<row class="th" part="header">
<description value="Path"/>
<description value="Backend URL"/>
<description value="Versioning" align="center"/>
<description value="Mount" align="center"/>
</row>
<row disabled="!@@is_root" part="footer" valign="bottom">
<textbox id="path" size="48"/>
<vbox width="100%">
<groupbox>
<caption label="Protocols"/>
<vbox class="filemanager_protocols">
<description value="WebDAVs: mount EGroupware or *Cloud shares"/>
<description value="SMB: mount Samba or Windows fileserver shares"/>
<description value="{Versioning}: {Versioning requires EGroupware EPL}"
extra_link_target="_blank" href="https://www.egroupware.org/EPL"/>
<description value="Filesystem: mount directory (inside /var/lib/egroupware!) from host filesystem"
extra_link_target="_blank" href="https://github.com/EGroupware/egroupware/blob/master/api/src/Vfs/Filesystem/StreamWrapper.php#L20"/>
</vbox>
</groupbox>
<hbox width="100%">
<select id="url[scheme]" statustext="Protocol to use" onchange="app.filemanager.changeMountScheme"/>
<description value="://"/>
<textbox id="url[user]" blur="user" statustext="Username for WebDAV and SMB, use $user for name of logged in user" size="12"/>
<description id="colon" value=":"/>
<passwd id="url[pass]" blur="password" statustext="Password for WebDAV and SMB, use $pass for password of logged in user" class="filemanager_password" size="12"/>
<description id="at"/>
<textbox id="url[host]" blur="host" statustext="Hostname/IP for WebDAV and SMB"/>
<textbox id="url[path]" blur="Path and query-parameters, SMB: share and optional path (with /)" size="64"/>
</hbox>
</vbox>
<button label="Enable" id="enable" statustext="Enable versioning for given mountpoint" class="filemanager_smallButton" align="center"/>
<button label="Mount" id="mount" class="filemanager_smallButton" align="center"/>
</row>
<row class="row">
<description id="${row}[path]"/>
<description id="${row}[url]"/>
<button label="Disable" id="disable[$row_cont[path]]" statustext="Disable versioning for this mountpoint" class="filemanager_smallButton" align="center"/>
<button label="Unmount" id="umount[$row_cont[path]]" class="filemanager_smallButton" align="center"/>
</row>
</rows>
</grid>
<vbox class="filemanager_config">
<button label="Mount /etemplates to allow customizing of eTemplates" id="etemplates"/>
<menulist>
<menupopup id="allow_delete_versions" onchange="1" label="Who should be allowed to finally delete deleted files or old versions of a file:" empty_label="Noone" disabled="!@versioning"/>
</menulist>
<hbox disabled="!@versioning">
<integer id="mtime" label="Delete all older versions and deleted files older then %s days" statustext="0 means all, -N newer then N days"/>
<textbox size="30" label="under directory" id="versionedpath" statustext="/ = everywhere"/>
<button id="delete-versions" label="Finally delete" onclick="et2_dialog.confirm(widget,'Finally delete all older versions and deleted files under given directory.\n\nThis can NOT be undone!','Confirm final delete');" image="delete" background_image="1"/>
</hbox>
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row disabled="@is_root">
<description span="all" value="Some functionalities require superuser permissions, please login here as filemanager superuser - allowed users are defined in setup."/>
</row>
<row disabled="@is_root">
<description value="User"/>
<textbox id="user"/>
</row>
<row disabled="@is_root">
<description value="Password"/>
<passwd id="password" autocomplete="on"/>
</row>
<row disabled="@is_root">
<description/>
<button label="Submit" id="sudo"/>
</row>
</rows>
</grid>
<button id="logout" label="Logout" statustext="Log out as superuser"/>
</vbox>
</template>
</overlay>