controllers: add icon

This commit is contained in:
Thomas Gelf 2016-02-19 12:53:47 +01:00
parent c1f3e1c041
commit eb901dacca
4 changed files with 15 additions and 7 deletions

View File

@ -14,6 +14,7 @@ class ConfigController extends ActionController
public function deployAction()
{
// TODO: require POST
$isApiRequest = $this->getRequest()->isApiRequest();
$checksum = $this->params->get('checksum');
if ($checksum) {

View File

@ -66,7 +66,8 @@ class ImportsourceController extends ActionController
$id = $this->params->get('source_id');
$this->prepareTabs($id)->activate('modifier');
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add property modifier'),
'director/importsource/addmodifier',
array('source_id' => $id)

View File

@ -57,7 +57,8 @@ class ListController extends ActionController
public function datalistAction()
{
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add list'),
'director/datalist/add'
);
@ -72,7 +73,8 @@ class ListController extends ActionController
$listId = $this->params->get('list_id');
$this->view->lastId = $listId;
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add entry'),
'director/datalistentry/add' . '?list_id=' . $listId
);
@ -91,7 +93,8 @@ class ListController extends ActionController
public function datafieldAction()
{
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add field'),
'director/datafield/add'
);
@ -103,7 +106,8 @@ class ListController extends ActionController
public function importsourceAction()
{
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add import source'),
'director/importsource/add'
);
@ -123,7 +127,8 @@ class ListController extends ActionController
public function syncruleAction()
{
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add sync rule'),
'director/syncrule/add'
);

View File

@ -74,7 +74,8 @@ class SyncruleController extends ActionController
$this->view->stayHere = true;
$id = $this->params->get('rule_id');
$this->view->addLink = $this->view->qlink(
$this->view->addLink = $this->view->icon('plus') . ' '
. $this->view->qlink(
$this->translate('Add sync property rule'),
'director/syncrule/addproperty',
array('rule_id' => $id)