N°2314 - Markup extensibility: Add attribute flags as metadata to object forms

This commit is contained in:
Molkobain
2020-02-10 13:24:42 +01:00
parent 58e8ca1f50
commit a259443735
5 changed files with 69 additions and 1 deletions

View File

@@ -943,6 +943,7 @@ EOF
$val['attcode'] = $sAttCode;
$val['atttype'] = $sAttDefClass;
$val['attlabel'] = $sAttLabel;
$val['attflags'] = ($bEditMode) ? $this->GetFormAttributeFlags($sAttCode) : OPT_ATT_READONLY;
// - How the field should be rendered
$val['layout'] = (in_array($oAttDef->GetEditClass(), static::GetAttEditClassesToRenderAsLargeField())) ? 'large' : 'small';