if($this->_nested){
$this->crud->allowAccess('reorder');
- $this->crud->enableReorder('name', 2);
+ $this->crud->enableReorder('name', 4);
}
// $this->crud->with('revisionHistory');
protected function _common()
{
- $this->addFakeField([
+ $this->addField([
'name' => 'status',
'type' => 'SelectFromArray',
'default' => '0',
'label' => __('Status'),
'options' => ['0' => __('Offline'), '1' => __('Published')],
'translatable' => true,
+ 'column' => true,
'tab' => 'Informations principales',
]);
}
public function update(array $attributes = [], array $options = [])
{
- return parent::update($attributes, $options);
+ return parent::update($attributes, $options);
}
}