parent
2fc79e1ecb
commit
baa3ae248f
|
@ -58,13 +58,17 @@ class DataController extends ActionController
|
|||
|
||||
public function fieldsAction()
|
||||
{
|
||||
$this->setAutorefreshInterval(10);
|
||||
$this->tabs(new DataTabs())->activate('datafield');
|
||||
$this->addTitle($this->translate('Data Fields'));
|
||||
$this->actions()->add(Link::create(
|
||||
$this->translate('Add'),
|
||||
'director/datafield/add',
|
||||
null,
|
||||
['class' => 'icon-plus']
|
||||
[
|
||||
'class' => 'icon-plus',
|
||||
'data-base-target' => '_next',
|
||||
]
|
||||
));
|
||||
|
||||
(new DatafieldTable($this->db()))->renderTo($this);
|
||||
|
|
|
@ -26,7 +26,6 @@ class DatafieldController extends ActionController
|
|||
}
|
||||
|
||||
$form = DirectorDatafieldForm::load()
|
||||
->setSuccessUrl('director/data/fields')
|
||||
->setDb($this->db());
|
||||
|
||||
if ($edit) {
|
||||
|
|
|
@ -13,6 +13,8 @@ class DirectorDatafieldForm extends DirectorObjectForm
|
|||
{
|
||||
protected $objectName = 'Data field';
|
||||
|
||||
protected $listUrl = 'director/data/fields';
|
||||
|
||||
protected function onRequest()
|
||||
{
|
||||
if ($this->hasBeenSent()) {
|
||||
|
|
Loading…
Reference in New Issue