Show quota as disabled for non-stylite

This commit is contained in:
nathan 2022-12-16 10:46:07 -07:00
parent 9ce0520e5c
commit bf97118963
2 changed files with 3 additions and 2 deletions

View File

@ -423,7 +423,7 @@ class filemanager_admin extends filemanager_ui
{ {
$content['check_oversize'] = true; $content['check_oversize'] = true;
} }
$readonlys['quota'] = !($GLOBALS['egw_info']['apps']['stylite']);
$tpl = new Etemplate('filemanager.quota'); $tpl = new Etemplate('filemanager.quota');
$GLOBALS['egw_info']['flags']['app_header'] = lang('Quota'); $GLOBALS['egw_info']['flags']['app_header'] = lang('Quota');
$tpl->exec('filemanager.filemanager_admin.quota', $content, $sel_options, $readonlys); $tpl->exec('filemanager.filemanager_admin.quota', $content, $sel_options, $readonlys);

View File

@ -4,8 +4,9 @@
<overlay> <overlay>
<template id="filemanager.quota" template="" lang="" group="0" version="1.9.004"> <template id="filemanager.quota" template="" lang="" group="0" version="1.9.004">
<vbox> <vbox>
<textbox label="User home quota" id="quota" blur="(EPL Only)" disabled="true"/> <textbox label="User home quota" id="quota" blur="(EPL Only)" disabled="true" class="et2-label-fixed"/>
<textbox label="Group home quota" id="group_quota" blur="(EPL Only)" disabled="true" <textbox label="Group home quota" id="group_quota" blur="(EPL Only)" disabled="true"
class="et2-label-fixed"
help-text="Enter a file size, e.g. 100K, 200M or 2G"/> help-text="Enter a file size, e.g. 100K, 200M or 2G"/>
<button label="Recalculate" id="button[recalculate]" statustext="Recalculate directory sizes"/> <button label="Recalculate" id="button[recalculate]" statustext="Recalculate directory sizes"/>
<grid id="oversize" disabled="!@oversize"> <grid id="oversize" disabled="!@oversize">