mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-28 18:09:33 -05:00
AddNewTile: render an icon
This commit is contained in:
parent
d716b97c25
commit
28f6026322
3 changed files with 9 additions and 4 deletions
|
|
@ -2,6 +2,7 @@
|
|||
<div class="controls">
|
||||
<?= $this->tabs ?>
|
||||
<h1><?= $this->title ?></h1>
|
||||
<?= $this->breadcrumb->render() ?>
|
||||
<?= $this->actions->render() ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
|
|
@ -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 ?>
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue