syncrule/property: stay on list on edit

This commit is contained in:
Thomas Gelf 2015-12-02 04:39:49 +01:00
parent 9d25418573
commit 630e2f4ecc
2 changed files with 7 additions and 4 deletions

View File

@ -71,6 +71,7 @@ class SyncruleController extends ActionController
public function propertyAction()
{
$this->view->stayHere = true;
$id = $this->params->get('rule_id');
$this->view->addLink = $this->view->qlink(
@ -100,6 +101,7 @@ class SyncruleController extends ActionController
public function addpropertyAction()
{
$this->view->stayHere = true;
$edit = false;
if ($id = $this->params->get('id')) {

View File

@ -1,13 +1,14 @@
<div class="controls">
<?= $this->tabs ?>
<h1><?= $this->escape($this->title) ?></h1>
<span data-base-target="_next">
<span<?php if (! $this->stayHere): ?> data-base-target="_next"<?php endif ?>>
<?= $this->addLink ?>
</span><br />
<?= $this->filterEditor ?><br />
</span>
<?= $this->filterEditor ?>
<?= $this->table->getPaginator() ?>
</div>
<div class="content" data-base-target="_next">
<div class="content"<?php if (! $this->stayHere): ?> data-base-target="_next"<?php endif ?>>
<?= $this->form ?>
<?= $this->table->render() ?>
</div>