49 Commits

Author SHA1 Message Date
Johannes Meyer
74a916d72a Hide feature commands which are not supported by Icinga 2 from the user
fixes #7930
2015-07-03 14:17:06 +02:00
Johannes Meyer
3e5e6ec64e ToggleInstanceFeaturesCommandForm: Only issue a command for changes 2015-07-03 13:36:24 +02:00
Alexander A. Klimov
7caba93a28 Replace ...' w/ ..'
refs #9023
2015-05-18 16:07:28 +02:00
Alexander A. Klimov
729fb9a4d1 ToggleInstanceFeaturesCommandForm::onSuccess(): notifications: show which feature has been enabled or disabled
refs #9023
2015-05-18 14:51:22 +02:00
Alexander A. Klimov
4fbadaea2c ToggleInstanceFeaturesCommandForm::createElements(): make form labels shorter
refs #9023
2015-05-18 14:20:17 +02:00
Alexander A. Klimov
58434d9743 ToggleInstanceFeaturesCommandForm::onSuccess(): show a notification for each feature about whether it has been enabled or disabled
fixes #9023
2015-05-15 17:01:28 +02:00
Johannes Meyer
d9fdcf036b Show a form based autosubmit warning when toggling instance features
refs #7935
2015-03-03 14:34:08 +01:00
Johannes Meyer
a2f88dc60f Commands: Use native form title and description support where appropriate
refs #7947
refs #7976
2015-03-02 18:40:47 +01:00
Johannes Meyer
ea7b77eb72 Remove the required cue when disabling notifications globally
refs #7934
2015-03-02 18:40:46 +01:00
Johannes Meyer
77fa2f7c2b Add aria-label to the monitoring health's link to disable notifications
refs #8458
2015-02-23 17:10:52 +01:00
Eric Lippmann
6bae2e0a53 Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL 2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750 Add license header
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc Revert "Add license header"
This reverts commit 338d067aba41dd6e9178cebec5433eecd614196e.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba Add license header
fixes #7788
2015-02-03 15:51:04 +01:00
Eric Lippmann
127ce7abfe monitoring/security: Fix that toggling instance features is always disabled
In HTML5 the presence of a boolean attribute on an element represents the true value,
and the absence of the attribute represents the false value.

In Zend we have to set null for the absence of the attribute and the empty string for the
presence of the attribute.
2015-01-30 10:47:02 +01:00
Eric Lippmann
35b33647cf monitoring/security: Guard the link for disabling notifications on an instance-wide basis
The link in the monitoring health view will only be shown if the user has the permission monitoring/command/feature/instance.
2015-01-30 10:26:43 +01:00
Eric Lippmann
3716be4a48 monitoring/security: Disable toggling instance features if user lacks the permission monitoring/command/feature/instance 2015-01-30 10:01:03 +01:00
Eric Lippmann
7dbb8c6841 monitoring/security: Require monitoring/command/feature/instance permission for toggling instance features 2015-01-30 09:58:10 +01:00
Johannes Meyer
7082ebaf7b Replace t() and mt() with translate() in the monitoring module's forms
refs #7551
2015-01-19 13:47:01 +01:00
Johannes Meyer
23bbf63b73 Revert "Replace t() and mt() with translate() in the monitoring module's forms"
This reverts commit 970006838cb2791091dfb2632b1c7eea9d4a243f.
2015-01-19 13:44:16 +01:00
Johannes Meyer
970006838c Replace t() and mt() with translate() in the monitoring module's forms
refs #7551
2015-01-19 10:49:02 +01:00
Alexander Fuhr
7a7157ebef Move command note to the `getHelp()' and add the help as an icon 2014-11-18 16:10:17 +01:00
Johannes Meyer
ddf2ef5cc9 Remove $request parameter from Form::onSuccess and Form::onRequest
fixes #7552
2014-11-14 14:59:29 +01:00
Johannes Meyer
3166c518e1 Rename Icinga\Module\Monitoring\Form to Icinga\Module\Moni...\Forms
refs #7553
2014-11-14 11:17:22 +01:00
Johannes Meyer
1c4a5ce86f Leave it up to Icinga\Web\Form to instantiate our own form elements 2014-11-14 10:15:27 +01:00
Alexander Fuhr
285d10ef22 Replace Zend Note Element through Icingas Note Element
fixes #7318
fixes #7309
fixes #7307
2014-09-26 16:32:07 +02:00
Eric Lippmann
33e0fbb7d9 monitoring/commands: Fix code compliance
refs #6593
2014-09-12 16:53:48 +02:00
Eric Lippmann
e5e806a3a1 monitoring/commands: Fix instance command forms code compliance
refs #6593
2014-09-12 15:02:31 +02:00
Eric Lippmann
1d54c7f836 monitoring/commands: Support 'DISABLE_NOTIFICATIONS_EXPIRE_TIME'
refs #6593
2014-09-12 10:42:48 +02:00
Eric Lippmann
92571599df monitoring/commands: Move toggle instance feature command forms into a single form
refs #6593
2014-09-11 17:16:13 +02:00
Eric Lippmann
22771e6f6f monitoring/commands: Rename DisableNotificationsCommandForm' to DisableNotificationsExpireCommandForm'
The associated command also has 'Expired' in its name.

refs #6593
2014-09-11 17:13:57 +02:00
Eric Lippmann
6f8fc3eb6d modules/command: Add command description to `DisableNotificationsCommandForm'
refs #6593
2014-09-04 15:30:54 +02:00
Eric Lippmann
cb23ef3c4e monitoring/commands: Add `DisableNotificationsCommandForm'
`DisableNotificationsCommandForm' is the form for disabling host and service notifications w/ an optional expire date and time on an Icinga instance.

refs #6593
2014-09-04 13:06:47 +02:00
Eric Lippmann
3d0a74bfdb monitoring/commands: Add `ToggleNotificationsCommandForm'
`ToggleNotificationsCommandForm' is the form for enabling/disabling host and service notifications on an Icinga instance.

refs #6593
2014-09-04 13:04:54 +02:00
Eric Lippmann
bc1d00f146 monitoring/commands: Fix `ToggleFeatureCommandForm::createElements()'
`Icinga\Web\Form::createElements()' no longer requires to return an array of elements
because elements should be created directly.

refs #6593
2014-09-04 13:02:38 +02:00
Eric Lippmann
5d1f2ada97 monitoring/commands: Fix `ToggleFeatureCommandForm::onSucces()'s PHPDoc
refs #6593
2014-09-03 14:42:49 +02:00
Eric Lippmann
ae180166b3 monitoring/commands: Let ToggleFeatureCommandForm' extend CommandForm'
`InstanceCommandForm' was renamed to `CommandForm'.

efs #659
2014-09-02 09:57:15 +02:00
Eric Lippmann
c27c5690ba monitoring/commands: Rename InstanceCommandForm' to CommandForm'
Since the old `CommandForm' is removed, `InstanceCommandForm' is now the new base class for all command forms.

refs #6593
2014-09-02 09:55:38 +02:00
Eric Lippmann
c005ef434e monitoring/commands: Add form for enabling/disabling the processing of host and service performance data on an Icinga instance
refs #6593
2014-09-01 16:21:49 +02:00
Eric Lippmann
d47951f9d6 monitoring/commands: Add form for enabling/disabling passive service checks on an Icinga instance
refs #6593
2014-09-01 16:21:23 +02:00
Eric Lippmann
8686074fb1 monitoring/commands: Add form for enabling/disabling passive host checks on an Icinga instance
refs #6593
2014-09-01 16:20:56 +02:00
Eric Lippmann
176a1a72ca monitoring/commands: Add form for enabling/disabling processing of service checks via the OCHP command on an Icinga instance
refs #6593
2014-09-01 16:20:31 +02:00
Eric Lippmann
ff10cdaf03 monitoring/commands: Add form for enabling/disabling processing of host checks via the OCHP command on an Icinga instance
refs #6593
2014-09-01 16:20:07 +02:00
Eric Lippmann
5a100ea99f monitoring/commands: Add form for enabling/disabling host and service flap detection on an Icinga instance
refs #6593
2014-09-01 16:19:37 +02:00
Eric Lippmann
939f8b82cc monitoring/commands: Add form enabling/disabling host and service event handlers on an Icinga instance
refs #6593
2014-09-01 16:19:12 +02:00
Eric Lippmann
e8b70ffccd monitoring/commands: Add form for enabling/disabling active service checks on an Icinga instance
refs #6593
2014-09-01 16:17:13 +02:00
Eric Lippmann
e2cdff67b2 monitoring/commands: Add form for enabling/disabling active host checks on an Icinga instance
refs #6593
2014-09-01 16:16:47 +02:00
Eric Lippmann
dae29678dd monitoring/commands: Add `ToggleFeatureCommandForm'
`ToggleFeatureCommandForm' should be the base class for forms enabling/disabling features of an Icinga instance.

refs #6593
2014-09-01 15:01:32 +02:00
Eric Lippmann
8cacd2f00f monitoring/commands: Add `InstanceCommandForm'
The `InstanceCommandForm' should be the base class for forms that handle program-wide commands.

refs #6593
2014-09-01 15:00:20 +02:00