object/fields: allow to abort "edit"

This commit is contained in:
Thomas Gelf 2016-02-28 10:58:42 +01:00
parent 25e7a83374
commit 36cc3213f7
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,9 @@
<div class="controls"> <div class="controls">
<?= $this->tabs ?> <?= $this->tabs ?>
<h1><?= $this->escape($this->title) ?></h1> <h1><?= $this->escape($this->title) ?></h1>
<span>
<?= $this->actionLinks ?>
</span>
</div> </div>
<div class="content"> <div class="content">

View File

@ -184,6 +184,14 @@ abstract class ObjectController extends ActionController
$type . '_id' => $object->id, $type . '_id' => $object->id,
'datafield_id' => $id 'datafield_id' => $id
)); ));
$this->view->actionLinks = $this->view->qlink(
$this->translate('back'),
$this->getRequest()->getUrl()->without('field_id'),
null,
array('class' => 'icon-left-big')
);
} }
$form->handleRequest(); $form->handleRequest();