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() public function deployAction()
{ {
// TODO: require POST
$isApiRequest = $this->getRequest()->isApiRequest(); $isApiRequest = $this->getRequest()->isApiRequest();
$checksum = $this->params->get('checksum'); $checksum = $this->params->get('checksum');
if ($checksum) { if ($checksum) {

View File

@ -66,7 +66,8 @@ class ImportsourceController extends ActionController
$id = $this->params->get('source_id'); $id = $this->params->get('source_id');
$this->prepareTabs($id)->activate('modifier'); $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'), $this->translate('Add property modifier'),
'director/importsource/addmodifier', 'director/importsource/addmodifier',
array('source_id' => $id) array('source_id' => $id)

View File

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

View File

@ -74,7 +74,8 @@ class SyncruleController extends ActionController
$this->view->stayHere = true; $this->view->stayHere = true;
$id = $this->params->get('rule_id'); $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'), $this->translate('Add sync property rule'),
'director/syncrule/addproperty', 'director/syncrule/addproperty',
array('rule_id' => $id) array('rule_id' => $id)