'type' => 'BunchOfFieldsMultiple',
'bunch' => 'App\SubForms\Address',
'column' => false,
- 'tab' => 'Informations',
+ 'tab' => 'Infos client',
'edit_label' => 'Éditer « %city »'
],
[
'column' => true,
]);
+ $this->addField(['name' => 'status',
+ 'label' => 'Status',
+ 'type' => 'SelectFromArray',
+ 'column' => true,
+ 'options' => self::$_optionsForSelect,
+ 'default' => 'new',
+ 'tab' => $tabOrder
+ ]);
+
+ $this->addField(['name' => 'complete_status',
+ 'label' => 'Indication du status',
+ 'type' => 'Text',
+ 'tab' => $tabOrder
+ ]);
+
+ $this->addField(['name' => 'request_date',
+ 'label' => 'Date',
+ 'type' => 'Datetime',
+ 'column' => true,
+ 'tab' => $tabOrder]);
+
+
foreach ($this->fields as $fields) {
if ($fields['name'] === 'products') {
$fields = ['name' => 'products',
if ($fields['name'] === 'user_id') {
$fields['label'] = 'Utilisateur';
- $fields['tab'] = 'Informations';
+ $fields['tab'] = 'Infos client';
$fields['type'] = 'SelectFromArray';
$fields['options'] = $this->userOptions();
}
$this->addField($fields);
}
- $this->addField(['name' => 'status',
- 'label' => 'Status',
- 'type' => 'SelectFromArray',
- 'column' => true,
- 'options' => self::$_optionsForSelect,
- 'default' => 'new',
- 'tab' => $tabOrder
- ]);
-
- $this->addField(['name' => 'complete_status',
- 'label' => 'Indication du status',
- 'type' => 'Text',
- 'tab' => $tabOrder
- ]);
- $this->addField(['name' => 'request_date',
- 'label' => 'Date',
- 'type' => 'Datetime',
- 'column' => true,
- 'tab' => $tabOrder]);
parent::setFields();
}