ObjectController: fix clone link html/css

This commit is contained in:
Thomas Gelf 2016-03-03 09:45:33 +01:00
parent 9ae4553546
commit 2fa9e7e998
1 changed files with 6 additions and 7 deletions

View File

@ -131,13 +131,12 @@ abstract class ObjectController extends ActionController
$this->view->title = sprintf($this->translate('Modify %s'), ucfirst($ltype)); $this->view->title = sprintf($this->translate('Modify %s'), ucfirst($ltype));
$this->view->form->handleRequest(); $this->view->form->handleRequest();
$this->view->actionLinks = $this->view->icon('paste') $this->view->actionLinks = $this->view->qlink(
. ' ' sprintf($this->translate('Clone'), $this->translate(ucfirst($ltype))),
. $this->view->qlink( 'director/' . $ltype .'/clone',
sprintf($this->translate('Clone'), $this->translate(ucfirst($ltype))), array('name' => $object->object_name),
'director/' . $ltype .'/clone', array('class' => 'icon-paste')
array('name' => $object->object_name) );
);
$this->render('object/form', null, true); $this->render('object/form', null, true);
} }