Alexander A. Klimov
69c8ed471b
FilterEditor: add possibility to fold and unfold filter by click
...
refs #12634
Signed-off-by: Alexander A. Klimov <alexander.klimov@icinga.com>
2016-12-07 18:26:45 +01:00
Eric Lippmann
39c7451664
Implement announcements
...
refs #11198
2016-11-29 15:24:34 +01:00
Eric Lippmann
42991b0756
Ensure correct URL for the refresh container button
...
Shifted params no longer appear in the URL which is retrieved from the request object.
We now use Url::fromRequest() instead.
2016-07-13 10:24:30 +02:00
Alexander A. Klimov
50037d8ec9
Tabs: fix wrong parameter for array_splice()
...
refs #11850
2016-05-31 14:47:25 +02:00
Alexander A. Klimov
2179c3aaef
FilterEditor: check for a hidden form field instead of the submit button
2016-04-27 15:05:25 +02:00
Alexander A. Klimov
6def061742
FilterEditor: correct submit button name
2016-04-27 12:49:40 +02:00
Alexander A. Klimov
281e6e8163
Revert "Revert "FilterEditor::handleRequest(): don't apply a filter's changes if the 'Apply' button hasn't been pressed""
...
This reverts commit 45a6259b4c
.
2016-04-27 12:46:48 +02:00
Alexander A. Klimov
45a6259b4c
Revert "FilterEditor::handleRequest(): don't apply a filter's changes if the 'Apply' button hasn't been pressed"
...
This reverts commit 61a04e7ba1
.
2016-04-27 12:10:46 +02:00
Marius Hein
6607af61e1
Set dashboard active if it is not disabled
2016-04-26 13:50:02 +02:00
Alexander A. Klimov
61a04e7ba1
FilterEditor::handleRequest(): don't apply a filter's changes if the 'Apply' button hasn't been pressed
...
fixes #10848
2016-04-18 15:15:41 +02:00
Eric Lippmann
be7263ebfa
Fix that only one default dashboard could be removed
...
fixes #11078
2016-04-13 12:27:25 +02:00
Eric Lippmann
7dbcd27c3c
Remove superfluous whitespace
2016-04-13 11:04:54 +02:00
Eric Lippmann
9082a5204e
Fix tab order of refresh and close container controls
2016-04-13 11:04:23 +02:00
Eric Lippmann
d8b14cb772
Control whether a filter editor should be rendered via setVisible()
...
We (may) have situations where a controller or view has to access the filter editor being created via Controller::setupFilterControl().
This is impossible if the view is compact because the filterEditor will be unset. This change introduces FilterEditor::setVisible() for
giving the responsibility of rendering to the filter editor. Controller::setupFilterControl() will be adapted accordingly.
refs #10778
2016-02-27 15:51:13 +01:00
Alexander A. Klimov
41a8c75a4f
FilterEditor: always escape filter embedded in HTML
2016-02-19 15:22:10 +01:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
7fd575080e
PHP7: Rename String to StringHelper
...
refs #10251
2016-01-27 16:46:55 +01:00
Eric Lippmann
e9bc11d340
Fix case sensitive interpretation of dashboard config files
...
fixes #10878
2016-01-27 15:45:37 +01:00
Eric Lippmann
d2e4664dce
Add aria-label to dropdown menu and close container control
2016-01-25 07:23:12 +01:00
Eric Lippmann
bc187d91c5
monitoring: Make inline pie charts accessible
2016-01-22 13:33:22 +01:00
Eric Lippmann
9a5e69a8ec
Improve tab styles for accessibility
2016-01-12 08:52:30 +01:00
Eric Lippmann
79fbed0ad4
Use icon font instead of images in the dashboard settings tab extension
2016-01-12 08:52:30 +01:00
Eric Lippmann
7c1ccc685f
Rename close-toggle to close-container-control
2016-01-12 08:52:30 +01:00
Eric Lippmann
cbfaee8681
CSS: Optimize dashboard, column and controls styles
...
fixes #7350
fixes #10289
fixes #10871
2016-01-12 08:52:30 +01:00
Eric Lippmann
25d8215b95
Fix Dashboard::setDefaultPane() activating an inexistent pane
2015-12-22 14:54:33 +01:00
Eric Lippmann
a3f89c8d20
lib/Tabs: Throw HttpNotFoundException when activating an inexistent tab
...
refs #10884
2015-12-21 10:09:13 +01:00
Eric Lippmann
b193ea5d32
Fix print styles
2015-12-10 13:34:53 +01:00
Johannes Meyer
e7399c312f
SortBox: Add support for sort defaults provided by the controller action
2015-12-04 07:44:55 +01:00
Johannes Meyer
4f5afb5ee2
SortBox: Fix "algorithm" to detect the opposite sort direction
2015-12-03 17:15:57 +01:00
Johannes Meyer
3d60e60842
SortBox: Fix too strict sort param check
...
One was able to produce invalid SQL or other
errors by adding "sort=" as parameter.
2015-12-03 15:17:09 +01:00
Eric Lippmann
5e5e9709a5
Show sort direction as toggle button
2015-11-16 10:20:21 +01:00
Eric Lippmann
47401ca4b2
Don't talk about panes
...
refs #5543
2015-11-12 15:53:38 +01:00
Eric Lippmann
0abbe2583b
Introduce a form the limiter control
...
refs #5543
2015-11-12 13:04:52 +01:00
Eric Lippmann
75091d0eaa
Reduce HTML for sparkline pie charts
...
refs #5543
2015-11-11 15:11:14 +01:00
Johannes Meyer
98e0081d81
Limiter: Use the limit also as priority
...
fixes #10288
2015-10-05 10:54:43 +02:00
Eric Lippmann
56ed92a8e6
Merge branch 'master' into feature/dope-layout-5543
2015-10-01 21:29:35 +02:00
Thomas Gelf
9ca81320ac
Search: re-add object names, allow for addresses
...
It's now possible do search for IP (and IPv6) addresses. Object names
are once again allowed
fixes #9591
fixes #10163
2015-10-01 18:48:36 +02:00
Johannes Meyer
b63a956a38
Dashboard: Respect original dashlet order
2015-10-01 17:34:45 +02:00
Matthias Jentsch
db74f7e780
Fix icon layout in dropdown
...
refs #5543
2015-10-01 11:18:00 +02:00
Eric Lippmann
231c63b703
Merge branch 'master' into feature/dope-layout-5543
2015-09-30 18:52:52 +02:00
Johannes Meyer
415690134b
Add tab extension to add the current container url as new menu entry
2015-09-30 14:47:42 +02:00
Johannes Meyer
1c7b398219
Navigation: Do not provide "dashlet" as default item type
...
Please revert this commit once we're about to finish the new
implementation.
refs #6084
2015-09-30 12:55:21 +02:00
Eric Lippmann
ab50fcc091
CSS: Introduce .primary-nav
...
refs #5543
2015-09-27 16:06:46 +02:00
Eric Lippmann
9789aed870
lib: Fix navigation renderer usage in the limiter widget
...
refs #5543
2015-09-27 13:29:22 +02:00
Eric Lippmann
a9f0aa6bcd
lib: Fix navigation usage in the limiter widget
...
refs #5543
2015-09-27 13:22:43 +02:00
Eric Lippmann
d3ac1b16ee
Merge branch 'master' into feature/dope-layout-5543
2015-09-27 13:11:11 +02:00
Eric Lippmann
7ff74ae36a
lib: Use navigation classes in the limiter control
...
refs #5543
2015-09-25 13:36:28 +02:00
Johannes Meyer
8b7a1ce28f
Late translate a module's dashboard-pane/dashlet labels
...
refs #5600
2015-09-16 14:29:33 +02:00
Johannes Meyer
b5711f4031
Dashboard: Load panes by utilizing the new Navigation
...
This is only a quick fix to avoid adjusting the complete dashboard
implementation.
refs #5600
2015-09-07 09:05:50 +02:00
Eric Lippmann
c294283636
Merge branch 'bugfix/service-grid-grouping-postgres-9333'
...
Conflicts:
modules/monitoring/application/controllers/ListController.php
modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php
fixes #9333
fixes #9538
2015-08-27 12:58:49 +02:00
Johannes Meyer
8cc1970a9f
SearchDashboard: Use t() instead of the view helper
...
Since it's library code we do not need to use the module-aware
translation helper.
2015-08-25 16:51:50 +02:00
Johannes Meyer
7c86f19aee
SearchDashboard: Utilize createDashlet() and set a progress label
...
refs #8848
2015-08-24 12:36:59 +02:00
Johannes Meyer
320a4080ec
Dashlet: Add support for CSS animated progress labels
...
refs #8848
2015-08-24 12:36:35 +02:00
Johannes Meyer
db4c81a093
Pane: Add method createDashlet()
...
refs #8848
2015-08-24 12:35:38 +02:00
Eric Lippmann
1492218962
Fix SortBox not usable w/o SortRules
...
The SortBox assumes the first avaiable sort column as default column if the given Sortable does not implement the SortRules interface.
When changing the direction of the default sort column, the sort box did not pass the column to Sortable::sort(). Thus the Sortable did not know by which column to sort.
Now the SortBox passes the sort column even if the direction of the default column is changed.
refs #9333
2015-08-18 14:18:48 +02:00
Johannes Meyer
f7b0e6956d
FilterEditor: Only apply the filter if a query is set
...
refs #9029
2015-08-17 13:43:48 +02:00
Johannes Meyer
97245c5166
FilterEditor: Uppercase all words for non labelled filter columns
...
refs #9029
2015-08-14 15:36:54 +02:00
Johannes Meyer
ca4789f114
FilterEditor: Fix automatic filter label creation
...
refs #9029
2015-08-13 17:20:40 +02:00
Johannes Meyer
63fb8dcafa
FilterEditor: Do not show an empty line at the bottom of the select
2015-08-13 15:59:00 +02:00
Johannes Meyer
41b80efa0e
FilterEditor: Support queries implementing the FilterColumns interface
...
refs #9029
2015-08-13 15:58:04 +02:00
Johannes Meyer
2e7ff7dd6e
FilterEditor: Require an instance of Filterable for setQuery()
...
refs #9029
2015-08-13 11:35:45 +02:00
Johannes Meyer
fc35f3e46b
FilterEditor: Apply the filter on the query internally
...
refs #9029
2015-08-13 11:33:25 +02:00
Johannes Meyer
069fcc40ea
FilterEditor: Accept null for method setColumns()
...
refs #9029
2015-08-13 11:30:26 +02:00
Johannes Meyer
9ad14fc644
FilterEditor: Accept null for method setSearchColumns()
...
refs #9029
2015-08-13 11:30:05 +02:00
Eric Lippmann
aa4e3c5a22
Dashboard: Defer construction of the Url object to Dashlet::getUrl()
...
Before, the Url object was constructed in Dashlet::setUrl() and Dashlet::__construct8) which lead to an exception when parsing a module's configuration.php from our CLI.
refs #9375
2015-08-10 14:05:08 +02:00
Eric Lippmann
ea5db51213
Fix "Try to get an inexistent pane." when clicking on the "Search" tab
2015-08-03 13:01:11 +02:00
Eric Lippmann
139baffdc6
lib: Make Dashboard::$tabs protected
...
The SearchDashboard has to override Dashboard::getTabs() in order to set up the correct tab.
2015-08-03 13:01:11 +02:00
Johannes Meyer
24cb123f47
Tabs: Be less error-prone while calling array_search
2015-07-31 11:04:36 +02:00
Eric Lippmann
a234852f32
Merge branch 'feature/basic-auth-9660'
...
resolves #9660
2015-07-30 15:05:07 +02:00
Eric Lippmann
9060e8a034
lib: Only call Icinga::app()->getRequest() for getting the request outside of a controller
...
Saves a call to getFrontController().
refs #9660
2015-07-30 14:02:44 +02:00
Matthias Jentsch
20aa17c831
Merge branch 'bugfix/selected-row-lost-after-autorefresh-8623'
...
fixes #8623
2015-07-29 17:30:45 +02:00
Matthias Jentsch
3e7cc299ec
Fix issue that caused the refresh button to remove side bar
...
Do not apply base target globally for all toolbar elements, but specifically for those that should remove side-bars.
refs #8623
refs #6436
2015-07-29 17:18:52 +02:00
Thomas Gelf
ba906d2fca
FilterEditor: allow to set custom filter columns
2015-07-29 17:13:18 +02:00
Eric Lippmann
7cfc78558d
Merge branch 'master' into feature/secure-modules-9644
...
Conflicts:
library/Icinga/Exception/IcingaException.php
2015-07-28 13:42:02 +02:00
Johannes Meyer
e231ef8061
SortBox: Fix some documenation and code style issues
2015-07-28 12:04:16 +02:00
Johannes Meyer
f7b35b04f4
SortBox: Properly apply sort rules and show the user the default
...
refs #6644
2015-07-28 12:03:50 +02:00
Johannes Meyer
4d9aa54814
SortBox: Utilize a separate form for each control
...
refs #9421
2015-07-27 11:43:47 +02:00
Thomas Gelf
727a2d7141
Paginator: relax requirements to Paginatable
...
* we need no full query interface here
* introduced new interface "Paginatable"
fixes #9483
2015-07-23 13:48:49 +02:00
Eric Lippmann
fd77c30838
Don't load module dashboards if the authenticated user lacks the module permission
...
refs #9644
2015-07-23 12:57:23 +02:00
Eric Lippmann
e8e01257e6
Change interface of SearchDashboard to allow setting a user before calling ::search()
...
Because search dashlets are provided by modules, the authenticated user's module permissions have to be validated before loading search dashlets provided by modules.
refs #9644
2015-07-23 12:53:08 +02:00
Johannes Meyer
2164bb86c8
Tabs: Do not create a new instance of Url when rendering the refresh url
...
We're shifting parameters and by creating a new instance we'll lose
such changes.
refs #8758
2015-07-16 11:27:31 +02:00
Johannes Meyer
8448f4ade4
Revert "Tabs: Merge the action's params into the current request url's params"
...
This reverts commit ba4dd255ec
.
fixes #9494
2015-06-24 15:27:39 +02:00
Johannes Meyer
ba4dd255ec
Tabs: Merge the action's params into the current request url's params
2015-06-16 16:02:32 +02:00
Eric Lippmann
44968266f6
Fix no-op searches
...
Depeding on the current filter, Filter::andFilter() may return a new filter object w/ the and filter applied or the and filter is applied to the object itself.
The FilterEditor did not make use of the return value of Filter::andFilter() thus resulting in no-op searches in some scenarios.
2015-06-01 17:22:52 +02:00
Eric Lippmann
31400ea16a
monitoring: Fix that searching for specific columns is no longer possible if default search columns are set
2015-05-28 13:17:00 +02:00
Eric Lippmann
54577d04bd
Merge branch 'master' into bugfix/time-formatting-6778
...
Conflicts:
modules/monitoring/application/views/scripts/list/comments.phtml
modules/monitoring/application/views/scripts/list/hostgroups.phtml
modules/monitoring/application/views/scripts/process/info.phtml
modules/monitoring/application/views/scripts/show/components/downtime.phtml
modules/monitoring/application/views/scripts/show/components/notifications.phtml
modules/monitoring/public/css/module.less
2015-05-21 14:57:01 +02:00
Eric Lippmann
c47465a732
lib/filter: Fix check against unset search columns
...
refs #8241
2015-05-21 14:04:04 +02:00
Alexander A. Klimov
cc050ed696
Display an error notification rather than throwing an exception
...
refs #8241
2015-05-19 17:36:24 +02:00
Alexander A. Klimov
3243f9a65a
Don't handle the case $this->searchColumns === null for actions in which ::setSearchColumns() is called
...
refs #8241
2015-05-19 17:36:23 +02:00
Johannes Meyer
bd7c7f9636
Introduce widget Paginator
...
This does not support custom scrolling styles as of now. Custom view
scripts are supported though. In case Paginator::getPages() does not
suffice, feel free to improve this.
2015-05-19 13:57:21 +02:00
Alexander A. Klimov
4f4d7ccba2
Correct PHPDoc of ::setSearchColumns()
2015-05-19 12:55:40 +02:00
Eric Lippmann
5cf8e2504e
lib/grid: Use PHP's DateTime instead of our DateTimeFactory
...
I'm about to drop the DateTimeFactory because date_default_timezone_set() in combination w/ PHP's DateTime is sufficient.
refs #6778
2015-05-19 11:14:41 +02:00
Alexander A. Klimov
1ce9900c86
Add PHPDoc to ::setSearchColumns()
2015-05-19 11:12:36 +02:00
Matthias Jentsch
592d5eadc1
Merge branch 'feature/improve-multi-select-view-8565'
2015-05-18 16:00:52 +02:00
Eric Lippmann
82ee1d6e60
Merge branch 'master' into bugfix/significant-whitespaces-8777
...
Conflicts:
library/Icinga/Web/Widget/FilterEditor.php
2015-05-18 13:35:28 +02:00
Johannes Meyer
99c511eefd
Limiter: Do not use a hardcoded default limit
2015-05-15 15:22:22 +02:00
Johannes Meyer
ad8903660d
Revert "SortBox::handleRequest(): set query order direction to asc if it's not given"
...
This reverts commit 59753acece
.
2015-05-15 14:37:41 +02:00
Alexander A. Klimov
59753acece
SortBox::handleRequest(): set query order direction to asc if it's not given
2015-05-13 14:40:40 +02:00
Alexander A. Klimov
afa0dc0956
SortBox::handleRequest(): check whether $this->query !== null
...
refs #9220
2015-05-12 10:29:50 +02:00
Alexander A. Klimov
32659647b9
Implement Icinga\Web\Widget\SortBox::handleRequest()
...
refs #9220
2015-05-11 16:09:20 +02:00