* [bug#60443] Hidde some item in edit charter form.

This commit is contained in:
xieqiyu
2025-03-13 14:49:15 +08:00
committed by 代婷婷
parent c5a05cd2a3
commit 51932d4841
2 changed files with 11 additions and 9 deletions
+9 -9
View File
@@ -27,12 +27,12 @@ formPanel
formGroup
(
set::width('1/2'),
set::label($lang->doc->title),
set::label($modalType == 'chapter' ? $lang->doc->chapterName : $lang->doc->title),
set::name('title'),
set::required(true),
set::value(isset($doc) ? $doc->title : '')
),
$objectType == 'project' ? formRow
$objectType == 'project' && $modalType != 'chapter' ? formRow
(
formGroup
(
@@ -50,14 +50,14 @@ formPanel
set::control(array('control' => 'picker', 'name' => 'execution', 'items' => $executions, 'value' => isset($execution) ? $objectID : ''))
) : null
) : null,
($objectType == 'execution') ? formGroup
($objectType == 'execution' && $modalType != 'chapter') ? formGroup
(
set::width('1/2'),
set::label($lang->doc->execution),
set::required(true),
set::control(array('control' => 'picker', 'name' => 'execution', 'items' => $objects, 'required' => true, 'value' => $lib->execution))
) : null,
($objectType == 'product') ? formGroup
($objectType == 'product' && $modalType != 'chapter') ? formGroup
(
set::width('1/2'),
set::label($lang->doc->product),
@@ -113,7 +113,7 @@ formPanel
set::required(true)
) : null,
),
$objectType !== 'mine' ? formGroup
$objectType !== 'mine' && $modalType != 'chapter' ? formGroup
(
set::label($lang->doc->mailto),
mailto(set::items($users), set::value(isset($doc) ? $doc->mailto : null))
@@ -124,7 +124,7 @@ formPanel
set::label($lang->doc->files),
fileSelector()
) : null,
formGroup
$modalType != 'chapter' ? formGroup
(
set::label($lang->doclib->control),
radioList
@@ -135,8 +135,8 @@ formPanel
set::value(isset($doc) ? $doc->acl : ($objectType == 'mine' ? 'private' : 'open')),
$objectType != 'mine' ? on::change('toggleWhiteList') : null
)
),
formGroup
) : null,
$modalType != 'chapter' ? formGroup
(
setID('whiteListBox'),
setClass((isset($doc) && $libID == $doc->lib && $objectType != 'mine' && $doc->acl == 'private') ? '' : 'hidden'),
@@ -167,5 +167,5 @@ formPanel
)
)
)
)
) : null
);