Filemanager: Adjust Extended ACL template to make better use of space

This commit is contained in:
nathan 2023-07-14 13:15:44 -06:00
parent 96621ac3c5
commit 1a20ba504b

View File

@ -115,15 +115,8 @@
</grid> </grid>
</template> </template>
<template id="filemanager.file.eacl" template="" lang="" group="0" version="1.9.001"> <template id="filemanager.file.eacl" template="" lang="" group="0" version="1.9.001">
<grid width="100%" spacing="10"> <et2-vbox class="full-height">
<columns> <groupbox style="flex-grow: 1">
<column width="120"/>
<column/>
<column/>
</columns>
<rows>
<row valign="top" height="200">
<groupbox span="all">
<caption label="Extended access control list"/> <caption label="Extended access control list"/>
<grid width="100%" overflow="auto" id="eacl"> <grid width="100%" overflow="auto" id="eacl">
<columns> <columns>
@ -148,14 +141,12 @@
</rows> </rows>
</grid> </grid>
</groupbox> </groupbox>
</row> <et2-hbox valign="bottom" disabled="!@is_owner">
<row valign="bottom" disabled="!@is_owner"> <et2-select-account class="filemanager-file_filemanager-file-eaclowner eaclAccount" label="Owner" id="eacl_owner" emptyLabel="select one" accountType="both" placement="top"></et2-select-account>
<et2-select-account class="filemanager-file_filemanager-file-eaclowner eaclAccount" label="Owner" id="eacl_owner" emptyLabel="select one" accountType="both"></et2-select-account>
<et2-select class="eaclRights" statustext="You can only grant additional rights, you can NOT take rights away!" label="Rights" id="eacl[rights]"></et2-select> <et2-select class="eaclRights" statustext="You can only grant additional rights, you can NOT take rights away!" label="Rights" id="eacl[rights]"></et2-select>
<et2-button label="Add" id="button[eacl]" image="add"></et2-button> <et2-button label="Add" id="button[eacl]" image="add"></et2-button>
</row> </et2-hbox>
</rows> </et2-vbox>
</grid>
</template> </template>
<template id="filemanager.file.preview" template="" lang="" group="0" version="1.5.001"> <template id="filemanager.file.preview" template="" lang="" group="0" version="1.5.001">
<grid width="100%" spacing="10" overflow="auto"> <grid width="100%" spacing="10" overflow="auto">
@ -291,8 +282,9 @@
</rows> </rows>
</grid> </grid>
<styles> <styles>
.eaclAccount select,.eaclRights select { width: 160px; } .full-height { height: 100% }
.superuser { .full-height > fieldset { flex-grow: 1; }
.superuser {
position: absolute; position: absolute;
top: 130px; top: 130px;
left: 120px; left: 120px;
@ -300,7 +292,7 @@
background-color: white; background-color: white;
z-index: 1; z-index: 1;
display: none; display: none;
} }
</styles> </styles>
</template> </template>
</overlay> </overlay>