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