AddNewTile: render an icon

This commit is contained in:
Thomas Gelf 2016-11-28 16:03:12 +01:00
parent d716b97c25
commit 28f6026322
3 changed files with 9 additions and 4 deletions

View file

@ -2,6 +2,7 @@
<div class="controls">
<?= $this->tabs ?>
<h1><?= $this->title ?></h1>
<?= $this->breadcrumb->render() ?>
<?= $this->actions->render() ?>
</div>
<?php endif ?>

View file

@ -6,10 +6,13 @@ use Icinga\Module\Businessprocess\BusinessProcess;
<?php if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs ?>
<h1><form method="post" action="<?= $this->url()->without('node')->without('unlocked') ?>">
<h1><?= $this->escape($this->title) ?></h1>
<!--
<form method="post" action="<?= $this->url()->without('node')->without('unlocked') ?>">
<input type="hidden" name="action" value="switchConfig" />
<?= $this->formSelect('config', $this->configName, array('class' => 'autosubmit'), $this->processList) ?>
</form></h1>
</form>-->
<?= $this->breadcrumb->render() ?>
<?= $this->actions ?>
</div>
<?php endif ?>

View file

@ -4,6 +4,7 @@ namespace Icinga\Module\Businessprocess\Renderer\TileRenderer;
use Icinga\Module\Businessprocess\BusinessProcess;
use Icinga\Module\Businessprocess\Html\BaseElement;
use Icinga\Module\Businessprocess\Html\Icon;
use Icinga\Module\Businessprocess\Html\Link;
use Icinga\Module\Businessprocess\Renderer\Renderer;
use Icinga\Module\Businessprocess\Web\Url;
@ -35,13 +36,13 @@ class AddNewTile extends BaseElement
$this->add(
Link::create(
$this->translate('Add'),
Icon::create('plus'),
$url,
null,
array(
'title' => $this->translate('Add a new business process node')
)
)
)->addContent($this->translate('Add'))
);
}
}