mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
parent
28e406565b
commit
2c4b730887
@ -78,7 +78,7 @@ class DashboardController extends ActionController
|
|||||||
$dashboard = $this->dashboard;
|
$dashboard = $this->dashboard;
|
||||||
$form = new ComponentForm();
|
$form = new ComponentForm();
|
||||||
$form->setDashboard($dashboard);
|
$form->setDashboard($dashboard);
|
||||||
$form->setSubmitLabel(t('Update Component'));
|
$form->setSubmitLabel(t('Update Dashlet'));
|
||||||
if (! $this->_request->getParam('pane')) {
|
if (! $this->_request->getParam('pane')) {
|
||||||
throw new Zend_Controller_Action_Exception(
|
throw new Zend_Controller_Action_Exception(
|
||||||
'Missing parameter "pane"',
|
'Missing parameter "pane"',
|
||||||
@ -125,7 +125,7 @@ class DashboardController extends ActionController
|
|||||||
$action->render('error');
|
$action->render('error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Notification::success(t('Component updated'));
|
Notification::success(t('Dashlet updated'));
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
$form->setRedirectUrl('dashboard/settings');
|
$form->setRedirectUrl('dashboard/settings');
|
||||||
@ -162,7 +162,7 @@ class DashboardController extends ActionController
|
|||||||
$pane = $dashboard->getPane($pane);
|
$pane = $dashboard->getPane($pane);
|
||||||
$pane->removeComponent($component);
|
$pane->removeComponent($component);
|
||||||
$dashboard->write();
|
$dashboard->write();
|
||||||
Notification::success(t('Component has been removed from') . ' ' . $pane->getTitle());
|
Notification::success(t('Dashlet has been removed from') . ' ' . $pane->getTitle());
|
||||||
return true;
|
return true;
|
||||||
} catch (\Zend_Config_Exception $e) {
|
} catch (\Zend_Config_Exception $e) {
|
||||||
$action->view->error = $e;
|
$action->view->error = $e;
|
||||||
@ -200,7 +200,7 @@ class DashboardController extends ActionController
|
|||||||
$pane = $dashboard->getPane($pane);
|
$pane = $dashboard->getPane($pane);
|
||||||
$dashboard->removePane($pane->getTitle());
|
$dashboard->removePane($pane->getTitle());
|
||||||
$dashboard->write();
|
$dashboard->write();
|
||||||
Notification::success(t('Pane has been removed') . ': ' . $pane->getTitle());
|
Notification::success(t('Dashboard has been removed') . ': ' . $pane->getTitle());
|
||||||
return true;
|
return true;
|
||||||
} catch (\Zend_Config_Exception $e) {
|
} catch (\Zend_Config_Exception $e) {
|
||||||
$action->view->error = $e;
|
$action->view->error = $e;
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1><?= t('Add Component To Dashboard'); ?></h1>
|
<h1><?= t('Add Dashlet To Dashboard'); ?></h1>
|
||||||
<?= $this->form; ?>
|
<?= $this->form; ?>
|
||||||
</div>
|
</div>
|
@ -3,7 +3,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1><?= t('Remove Component From Dashboard'); ?></h1>
|
<h1><?= t('Remove Dashlet From Dashboard'); ?></h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?= $this->translate('Please confirm the removal'); ?>:
|
<?= $this->translate('Please confirm the removal'); ?>:
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1><?= t('Remove Pane'); ?></h1>
|
<h1><?= t('Remove Dashboard'); ?></h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?= $this->translate('Please confirm the removal of'); ?>:
|
<?= $this->translate('Please confirm the removal of'); ?>:
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
<strong><?= t('Component Name') ?></strong>
|
<strong><?= t('Dashlet Name') ?></strong>
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<strong><?= t('Url') ?></strong>
|
<strong><?= t('Url') ?></strong>
|
||||||
@ -33,7 +33,7 @@
|
|||||||
<?php if(empty($components)): ?>
|
<?php if(empty($components)): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">
|
<td colspan="3">
|
||||||
<?= $this->translate('No compoments added to dashboard') ?>.
|
<?= $this->translate('No dashlets added to dashboard') ?>.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1><?= t('Edit Component'); ?></h1>
|
<h1><?= t('Edit Dashlet'); ?></h1>
|
||||||
<?= $this->form; ?>
|
<?= $this->form; ?>
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user