object(s): add some icons

This commit is contained in:
Thomas Gelf 2015-12-17 21:39:59 +01:00
parent dd92946552
commit 1c36bb3f59
2 changed files with 7 additions and 4 deletions

View File

@ -127,7 +127,8 @@ abstract class ObjectController extends ActionController
$this->view->title = sprintf($title, ucfirst($ltype));
$this->view->form->handleRequest();
$this->view->actionLinks = $this->view->qlink(
$this->view->actionLinks = $this->view->icon('paste') . ' '
. $this->view->qlink(
sprintf($this->translate('Clone'), $this->translate(ucfirst($ltype))),
'director/' . $ltype .'/clone',
array('name' => $object->object_name)
@ -175,8 +176,9 @@ abstract class ObjectController extends ActionController
);
$this->view->form->handleRequest();
$this->view->actionLinks = $this->view->qlink(
sprintf($this->translate('<- back'), $this->translate(ucfirst($ltype))),
$this->view->actionLinks = $this->view->icon('left-big') . ' '
. $this->view->qlink(
sprintf($this->translate('back'), $this->translate(ucfirst($ltype))),
'director/' . $ltype,
array('name' => $this->object->object_name)
);

View File

@ -88,7 +88,8 @@ abstract class ObjectsController extends ActionController
$addTitle = $this->translate('Add %s');
}
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
sprintf($addTitle, $this->translate(ucfirst($ltype))),
'director/' . $ltype .'/add',
$addParams