Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion application/controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ public function removeDashletAction()
}
return true;
});
$form->setTitle($this->translate('Remove Dashlet From Dashboard'));
$form->setRedirectUrl('dashboard/settings');
$form->handleRequest();
$this->view->pane = $pane;
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/GroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function showAction()
'class' => 'link-button spinner',
'value' => 'btn_submit',
'decorators' => array('ViewHelper'),
'label' => $this->view->icon('trash'),
'label' => $this->view->icon('cancel'),
'title' => $this->translate('Remove this member')
));
$this->view->removeForm = $removeForm;
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/NavigationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function sharedAction()
'class' => 'link-button spinner',
'value' => 'btn_submit',
'decorators' => array('ViewHelper'),
'label' => $this->view->icon('trash'),
'label' => $this->view->icon('cancel'),
'title' => $this->translate('Unshare this navigation item')
));

Expand Down
2 changes: 1 addition & 1 deletion application/controllers/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function removeAction()
$role = new RoleForm();
$role->setRedirectUrl('__CLOSE__');
$role->setRepository(new RolesConfig());
$role->setSubmitLabel($this->translate('Remove Role'));
$role->setSubmitLabel($this->translate('Confirm Removal'));
$role->remove($name);

try {
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function showAction()
'class' => 'link-button spinner',
'value' => 'btn_submit',
'decorators' => array('ViewHelper'),
'label' => $this->view->icon('trash'),
'label' => $this->view->icon('cancel'),
'title' => $this->translate('Cancel this membership')
));
$this->view->removeForm = $removeForm;
Expand Down
2 changes: 1 addition & 1 deletion application/forms/Announcement/AnnouncementForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function createUpdateElements(array $formData)
protected function createDeleteElements(array $formData)
{
$this->setTitle(sprintf($this->translate('Remove announcement %s?'), $this->getIdentifier()));
$this->setSubmitLabel($this->translate('Yes'));
$this->setSubmitLabel($this->translate('Confirm Removal'));
$this->setAttrib('class', 'icinga-controls');
}

Expand Down
2 changes: 1 addition & 1 deletion application/forms/Config/User/UserForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function getValues($suppressArrayNotation = false)
protected function createDeleteElements(array $formData)
{
$this->setTitle(sprintf($this->translate('Remove user %s?'), $this->getIdentifier()));
$this->setSubmitLabel($this->translate('Yes'));
$this->setSubmitLabel($this->translate('Confirm Removal'));
$this->setAttrib('class', 'icinga-controls');
}

Expand Down
2 changes: 1 addition & 1 deletion application/forms/Config/UserGroup/UserGroupForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function createDeleteElements(array $formData)
'Note that all users that are currently a member of this group will'
. ' have their membership cleared automatically.'
));
$this->setSubmitLabel($this->translate('Yes'));
$this->setSubmitLabel($this->translate('Confirm Removal'));
$this->setAttrib('class', 'icinga-form icinga-controls');
}

Expand Down
6 changes: 4 additions & 2 deletions application/views/scripts/dashboard/settings.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
'dashboard/remove-pane',
array('pane' => $pane->getName()),
array(
'icon' => 'trash',
'icon' => 'cancel',
'class' => 'action-link',
'title' => sprintf($this->translate('Remove pane %s'), $pane->getName())
)
); ?>
Expand Down Expand Up @@ -77,7 +78,8 @@
'dashboard/remove-dashlet',
array('pane' => $pane->getName(), 'dashlet' => $dashlet->getName()),
array(
'icon' => 'trash',
'icon' => 'cancel',
'class' => 'action-link',
'title' => sprintf($this->translate('Remove dashlet %s from pane %s'), $dashlet->getTitle(), $pane->getTitle())
)
); ?>
Expand Down
Loading