Jannis Moßhammer
ddfbf915ed
Implement isPostAndValid, fix CSRF in forms, update tests
...
Form provides isPostAndValid for validation, using the
request for fetching POST data.
The tests are now updated to use the CSRF protection and
are cleaner now
refs #4355
2013-07-24 10:56:41 +02:00
Marius Hein
849eee2cf2
Command masks: Review changes [WIP]
...
refs #4355
2013-07-23 17:09:06 +02:00
Marius Hein
89e7fa6b2d
Command masks: Add validator and change validation flow
...
refs #4355
2013-07-23 14:47:40 +02:00
Marius Hein
e9c9c9de87
Command masks: Fix lazy initialization of forms
...
refs #4355
2013-07-23 14:47:40 +02:00
Marius Hein
03f4a8eceb
Command masks: Implement missing forms [WIP]
...
Fixes phpcs issues, missing features, fix controller using
new config interface.
refs #4355
2013-07-23 14:47:40 +02:00
Marius Hein
0de38c25eb
Command masks: Refactor and implement masks
...
refs #4355
2013-07-23 14:47:40 +02:00
Marius Hein
d5b8a850ea
Forms: New form system
...
Move new form parts arround and add new LoginForm.
refs #4355
2013-07-23 14:46:26 +02:00
Marius Hein
dc878de275
Forms: Move class to the right place
...
Drop some methods we do not need anymore (all model related).
refs #4355
2013-07-23 14:46:25 +02:00
Marius Hein
2469e3652c
Forms: Drop old form class
2013-07-23 14:46:25 +02:00
Marius Hein
576124a827
Forms: Move Icinga\Form to Icinga\Web\Form
2013-07-23 14:46:25 +02:00
Johannes Meyer
b351cf61a7
Refactor Form-builder [WIP]
...
Refactor Form-builder so that it is an abstract extension class of
Zend_Form.
refs #4355
2013-07-23 14:46:25 +02:00
Johannes Meyer
56b8b398c2
Add Number functionality to Icinga\Form\SendCommand
2013-07-23 14:46:25 +02:00
Johannes Meyer
087e4dfe90
Add choice functionality to Icinga\Form\SendCommand
2013-07-23 14:46:25 +02:00
Johannes Meyer
23e15e3f54
Add textbox functionality to Icinga\Form\SendCommand
2013-07-23 14:46:25 +02:00
Johannes Meyer
4b8643dc56
Add a date and time form-element.
...
Added a date and time form-element which are implemented based on the
new "date" and "time" input-types introduced with html5. If those are not
available two bootstrap javascript-modules will be enabled.
refs #4355
2013-07-23 14:46:24 +02:00
Johannes Meyer
15ab7f188a
Implement schedule host/service check action
...
Refactored existing schedule action and fixed selectCommandTargets.
refs #4355
2013-07-23 14:46:24 +02:00
Johannes Meyer
aa241865b4
Replace custom formNote element with the one from Zend
...
Replaced custom form element "Note" as
Zend already provides such an element.
2013-07-23 14:46:24 +02:00
Johannes Meyer
abda65f4bd
Refactor command controller and implement restart action.
...
Refactored existing command controller so that it reflects the
correct coding style, rewritten the icinga restart command and
added a very simple form for it.
refs #4355
2013-07-23 14:46:24 +02:00
Marius Hein
8d3ff94696
Remove php strict errors
...
refs #4448
2013-07-23 12:18:27 +02:00
Jannis Moßhammer
dac9b7be4b
Fix mixedPagination property typo, Statusloader libraries missing and getter for Abstractquery
...
refs #4178
2013-07-19 17:48:24 +02:00
Jannis Moßhammer
5e4adcfea2
Add Service overview and fixes for Statusdat
...
The service overview required a few fixes for issues that
occured because the StatusDat Query class now inherits from
Data/AbstractQuery.
refs #4178
2013-07-19 17:45:51 +02:00
Jannis Moßhammer
5827cb37cb
Fix statusdat tests and implementation
...
After moving StatusDat to monitoring/Backends and changing the
inheritance to Library/Icinga/Data, a few changes must be reflected in the tests:
- Move tests to monitoring module
- Change $this->backend references in StatusDat Queries to $this->ds
- Added LibraryLoader to ease requiring of libaries (to be discussed)
refs #4417
refs #4179
2013-07-19 11:36:05 +02:00
Jannis Moßhammer
cea7cdbcaf
Move Statusdat to backend, remove old backend from library
...
Except for statusdat, the library/Icinga/Backend classes were unused
refs #4417
refs #4179
2013-07-18 17:20:12 +02:00
Jannis Moßhammer
c1860e7d5d
Merge branch 'master' of ssh://git.icinga.org/icinga2-web into feature/host-overview--4179
...
Conflicts:
modules/monitoring/application/controllers/ListController.php
modules/monitoring/application/controllers/ShowController.php
modules/monitoring/library/Monitoring/Backend/AbstractBackend.php
2013-07-15 13:52:26 +02:00
Jannis Moßhammer
e83526be08
Make form folder optional
...
When the form folder didn't exist, an exception was thrown that
froze the frontend without any error message. Now it is tested
whether the form folder in a module is available and only registered
in the auotoloader if so.
refs #4407
2013-07-15 13:37:43 +02:00
Jannis Moßhammer
705127a95e
Make sql-queries more standard compliant
...
The connection now uses ONLY_FULL_GROUP_BY when connecting and
also forces ANSI SQL, this is reflected in the query codebase.
Also the comment count fields are added in this commit.
refs #4179
2013-07-15 13:21:48 +02:00
Marius Hein
5489c2fa2e
Update license header
...
refs #4407
2013-07-15 12:26:10 +02:00
Marius Hein
6742696e09
Autoloader: Rename module namespace
2013-07-15 12:16:14 +02:00
Marius Hein
e049d8f3c4
Autoload: Fix test before rename namespaces
...
Drop builder test, it is not needed anymore. Skip all notification
tests. Test includes bootstrapping and throw errors with ldap auth.
refs #4407
2013-07-15 11:20:12 +02:00
Marius Hein
e27c73fe15
Autoloader: Move builder to new location [WIP]
...
refs #4407
2013-07-15 11:07:22 +02:00
Marius Hein
316893ad2c
Add new autoloader implementation
...
New namespace implementation created to load application code
like forms with this autoloader. Consumpting services can register
their own, multiple namespaces. Overlapping namespaces matched
by closest name.
refs #4407
2013-07-12 16:11:03 +02:00
Eric Lippmann
2fffb892d3
Enable registerMenuEntries for modules since this works now
...
refs #4354
2013-07-12 15:44:55 +02:00
Eric Lippmann
51755209b6
Adapt usage of config class
...
refs #4354
2013-07-12 15:43:23 +02:00
Eric Lippmann
8c6f2a07ae
Remove magic retrieval of configuration files
...
This change leads to expected exceptions when bootstrapping the
application since the \Icinga\Application\Config class was
refactored but its usage not.
refs #4354
refs #4353
2013-07-12 15:41:35 +02:00
Eric Lippmann
297b621bf6
Add view helper url
2013-07-12 14:45:25 +02:00
Eric Lippmann
ca09dc084d
Add Icinga\Web\ViewStream.php
2013-07-12 14:35:14 +02:00
Eric Lippmann
d871b3c287
Update the monitoring module
2013-07-12 14:33:17 +02:00
Eric Lippmann
be3193a0d7
Update LDAP and Livestatus protocol
2013-07-12 13:41:48 +02:00
Eric Lippmann
e66d17dbf8
Use class Url in mixedPagination.phtml
2013-07-12 13:40:21 +02:00
Eric Lippmann
df1e595604
Make retrieval of module config static
2013-07-12 12:11:59 +02:00
Eric Lippmann
78cbeadff2
Add remove and without functions to Url class
...
refs #4381
2013-07-12 12:06:30 +02:00
Eric Lippmann
7a075ca52a
Add link to csv output to tabs
...
There is currently no controller implementing this output type
but the monitoring module will provide that.
2013-07-12 12:02:51 +02:00
Eric Lippmann
58ce815361
Rename Pdf/File to File/Pdf and adapt usage in the ActionController
2013-07-12 11:58:58 +02:00
Eric Lippmann
63a8854f40
Notification: Add todo that we do not want singleton usage of this class
2013-07-12 11:53:05 +02:00
Marius Hein
6be510b05e
License writer
...
Update license headers
refs #4262
2013-07-03 14:17:49 +02:00
Eric Lippmann
a90a19eb60
Fix Icinga\web\Hook
...
refs #4301
2013-06-28 11:17:39 +02:00
Eric Lippmann
7579aeaf07
Replace Hook::all with Hook::get
2013-06-28 09:34:44 +02:00
Eric Lippmann
903c9db8a6
Add date/time helpers to class Icinga\Util\Format
...
refs #4301
2013-06-28 09:19:43 +02:00
Eric Lippmann
d1253f8136
Add static function get to class Hook
...
refs #4301
2013-06-28 09:19:43 +02:00
Eric Lippmann
6eade9c023
Fix use of already replaced class Icinga\Web\Session
...
refs #4301
2013-06-28 09:13:08 +02:00