Johannes Meyer
7157b11f97
Adjust LoggingForm to suit the "final" form builder implementation
...
refs #5525
2014-07-18 10:29:23 +02:00
Johannes Meyer
5da14d3fc5
Adjust LoginForm to suit the "final" form builder implementation
...
refs #5525
2014-07-18 10:23:04 +02:00
Johannes Meyer
1de2d0c14f
Merge branch 'master' into bugfix/rebuild-form-builder-5525
...
Conflicts:
application/forms/Authentication/LoginForm.php
library/Icinga/Test/BaseTestCase.php
library/Icinga/Web/Form.php
library/Icinga/Web/Form/Decorator/BootstrapForm.php
2014-07-17 13:15:42 +02:00
Johannes Meyer
4d199180b3
We do not want to access $_POST directly if it is possible to avoid it
2014-07-17 09:28:10 +02:00
Johannes Meyer
e6dee9fe89
Protect login against CSRF
...
refs #5626
2014-07-16 09:55:23 +02:00
Johannes Meyer
3105c2059e
Remove license headers from all files
...
refs #6309
2014-07-15 13:43:52 +02:00
Johannes Meyer
6690410c42
Adjust Icinga\Form\Config\LoggingForm to suit the new form builder
...
refs #5525
2014-07-10 11:16:31 +02:00
Johannes Meyer
630b36e706
Adjust Icinga\Form\Authentication\LoginForm to suit the new form builder
...
refs #5525
2014-07-10 11:15:46 +02:00
Matthias Jentsch
57f3023ec4
Fix coding style
2014-07-03 16:20:45 +02:00
Matthias Jentsch
fd21ba4e4d
Fix violation of coding guidelines
2014-06-30 18:20:19 +02:00
Johannes Meyer
f2e5d8afa5
Remove @codeCoverageIgnoreStart/-Stop annotations
...
refs #6091
2014-06-30 13:58:37 +02:00
Johannes Meyer
d01d17ad5e
Update preference form so that it suits the new language negotiation
...
refs #6073
2014-06-25 13:22:04 +02:00
Johannes Meyer
7ff4890ab7
Remove language selection from the general configuration
...
refs #6073
2014-06-25 13:21:05 +02:00
Alexander Klimov
5974305647
Config: Remove path to preferences INI files setting
2014-06-25 11:59:09 +02:00
Alexander Klimov
fdf74c5e18
Revert "Make preferences INI path NOT be configurable"
...
This reverts commit 219869607d
.
2014-06-25 11:59:08 +02:00
Thomas Gelf
4199e642ef
GeneralForm: reorganize use definitions
2014-06-24 21:53:44 +02:00
Thomas Gelf
eccfb9b6bc
GeneralForms: remove date/timeFormat settings
...
They are still in use throughout the code, but the sooner we get rid
of them the better it is.
refs #6077
2014-06-24 21:50:11 +02:00
Alexander Klimov
219869607d
Make preferences INI path NOT be configurable
...
fixes #6567
2014-06-24 18:29:28 +02:00
Thomas Gelf
1efd1d183e
GeneralForm: replace ignorant button
...
It makes no sense to add submit buttons without telling the form
that there is such, especially in combination with autosubmitting
elements.
refs #5967
2014-06-23 15:46:15 +02:00
Thomas Gelf
8d6e6421ea
config/general: remove obsolete environment setting
2014-06-20 23:21:31 +02:00
Thomas Gelf
0e57887e9a
Config/General: remove obsolete moduleFolder
...
refs #6158
2014-06-20 22:46:44 +02:00
Thomas Gelf
45fa8ca225
CSS/forms: style them
...
* login form style should only affect login form
* accessibility: add labels on login page
2014-06-20 16:39:01 +02:00
Matthias Jentsch
c42c7977be
Call extended backend health checks when creating ldap authentication backends
...
fixes #6457
2014-06-11 15:09:36 +02:00
Thomas Gelf
55880cb5a3
packaging/config: rename ICINGA_APPDIR
...
Renamed ICINGA_APPDIR to ICINGAWEB_APPDIR for consistency. This way
it fits ICINGAWEB_CONFIGDIR.
refs #6400
2014-06-04 21:11:27 +00:00
Eric Lippmann
a379502b15
Preferences: Rename `showBenchmark' to `show_benchmark'
...
We use underscore_case notation for all configuration keys.
refs #4952
2014-06-02 13:33:55 +02:00
Eric Lippmann
50e01d1284
Config: Rename `configPath' to `config_path'
...
We use underscore_case notation for all configuration keys.
refs #4952
2014-06-02 12:09:16 +02:00
Johannes Meyer
709146d49f
Add wizard page for the logging configuration
...
resolves #6129
2014-05-14 13:20:21 +02:00
Matthias Jentsch
ced6e8f78f
Initialize all empty ellements with their default values.
...
refs #6098
2014-05-12 15:49:38 +02:00
Matthias Jentsch
793a0a061f
Add validation for application name.
...
refs #6129
2014-05-12 15:40:59 +02:00
Johannes Meyer
4e77ea2f88
Fix logging configuration form
2014-04-30 12:09:44 +02:00
Johannes Meyer
a865d8874d
Fix ResourceForm namespace
...
refs #6038
2014-04-30 11:59:40 +02:00
Johannes Meyer
4cf3044a53
Rename Icinga\Logger\Writer\StreamWriter to FileWriter
...
refs #6038
2014-04-30 11:59:22 +02:00
Johannes Meyer
0b3d3e9bb2
Adjust logging configuration to suit the new logger implementation
...
refs #6038
2014-04-30 11:33:36 +02:00
Johannes Meyer
a5faa8bf25
Fix ResourceForm
...
refs #6038
2014-04-30 10:16:20 +02:00
Johannes Meyer
e2ba172a8e
Make dashboard components using the ini writer class
...
fixes #5524
2014-04-29 11:30:53 +02:00
Matthias Jentsch
e1d8ad820e
Fix include
...
refs #4788
2014-04-28 17:15:36 +02:00
Matthias Jentsch
085025ba7d
Icingaweb shoul work without optional extensions when they are not used
...
When optional classes and php extensions like pgsql and additonal Zend-Pdos are
actually required by creating a new resource or authentication backend,
perform a check and display a warning instead of just throwing an exception.
refs #4788
2014-04-28 17:13:40 +02:00
Johannes Meyer
98ca15d1fb
Mark less important or non-testable code as skipped for code coverage
...
refs #6011
2014-04-28 14:06:41 +02:00
Johannes Meyer
f7051ca992
Remove form tests that cover only graphical tests
...
refs #6011
2014-04-28 14:06:38 +02:00
Johannes Meyer
21b949758f
Refactor ResourceForm tests
...
refs #6011
2014-04-28 14:06:38 +02:00
Johannes Meyer
3d44c45eb8
Rename EditResourceForm to ResourceForm
...
refs #6011
2014-04-28 14:06:38 +02:00
Johannes Meyer
656e6bd0fd
Drop obsolete CreateResourceForm class
...
refs #6011
2014-04-28 14:06:38 +02:00
Johannes Meyer
aaa6a56146
Refactor authentication config form tests and fix auth backend validation
...
refs #6011
fixes #5712
2014-04-28 14:06:38 +02:00
Johannes Meyer
6692f253fd
Fix that the preference configuration does not handle defaults properly
2014-04-07 15:03:08 +02:00
Johannes Meyer
d658eff9b1
Add form field to set the database name for a resource of type db
...
fixes #5115
2014-04-07 09:55:19 +02:00
Johannes Meyer
d109046bc0
Fix that the general and logging form cannot write configuration changes
...
fixes #5952
2014-04-07 09:27:37 +02:00
Michael Friedrich
773528342f
Fix default log path in config form.
2014-03-09 15:57:50 +01:00
Thomas Gelf
5c27f8153a
Config code scares me... this fixes an error on Configuration / Logging
2014-03-08 13:13:49 +01:00
Thomas Gelf
13f827a0ef
Cleanup preferences, add them to the menu
2014-03-07 17:03:43 +00:00
Alexander Klimov
a4ed32d357
Using new PHP icon helper
2014-03-07 10:54:39 +01:00
Alexander Klimov
e05250db4e
Icinga icons hotfix
2014-03-06 14:16:42 +01:00
Alexander Klimov
a2f83eba05
Make select forms look like select forms
2014-03-06 12:32:55 +01:00
Alexander Klimov
d2ec3c9509
Re-design configuration interface
...
Conflicts:
public/js/icinga/events.js
2014-03-06 12:32:55 +01:00
Thomas Gelf
29f007e537
Comfortable focus setting on login mask
...
* Needs improvement once we have better forms
2014-03-04 10:56:12 +00:00
Thomas Gelf
57caacb93f
Merge branch 'feature/fanzzzy-5481' into feature/master-1
...
Conflicts:
application/controllers/AuthenticationController.php
application/controllers/ErrorController.php
application/views/scripts/authentication/login.phtml
library/Icinga/Application/ApplicationBootstrap.php
library/Icinga/Web/Controller/ActionController.php
library/Icinga/Web/Hook.php
library/Icinga/Web/Widget/Dashboard.php
2014-03-04 09:42:25 +00:00
Johannes Meyer
3555e66018
Make IcingaWeb using the new log wrapper
...
refs #5683
2014-02-26 11:19:52 +01:00
Thomas Gelf
48ea0b380f
Login form layout changes
2014-02-25 10:17:05 +00:00
Johannes Meyer
68357e9ca2
Fix coding style
2014-02-21 14:07:32 +01:00
Johannes Meyer
85639a3990
Add language selection to general config and preference forms
...
refs #5533
2014-01-30 13:17:15 +01:00
Alexander Klimov
fc1fb60b01
Re-add benchmark helper
...
Enable benchmark via user preferences
resolves #5508
2014-01-24 12:20:13 +01:00
Matthias Jentsch
5d8081ad09
Add support for multiple module installation paths
...
Read the module paths from the configuration file and add form fields
to edit the path from the web interface.
refs #4607
2014-01-22 18:28:19 +01:00
Matthias Jentsch
85dbd86e5b
Change all UserBackends to a lazy connection-behavior
...
refs #5506
2014-01-22 13:04:11 +01:00
Matthias Jentsch
2a0add3ec3
Fix messages in ConfigController
...
Store messages in the current user session to be able to fetch messages from
other controllers, so that the use can be redirected back to the index, instead
of staying in the original action
refs #5100
2013-11-20 19:10:38 +01:00
Matthias Jentsch
984ed0b006
Fix LdapBackendForm unit test
...
refs #4786
2013-11-13 18:33:34 +01:00
Matthias Jentsch
d65bd33205
Add configuration for resources
...
Add views and controller to handle resource configuration. Add form to edit
several resource types at once.
refs #4786
2013-11-13 18:12:00 +01:00
Matthias Jentsch
2cf154310b
Add controller to handle resource configuration
...
Add the controller, forms and views to handle the resource configuration.
refs #4786
2013-11-06 19:02:30 +01:00
Matthias Jentsch
59d4baff0b
Fix remaining references to DbUserBackend and refresh the documentation.
...
refs #4786
2013-11-06 13:31:07 +01:00
Eric Lippmann
ca1d50ae53
Rename Icinga 2 Web to Icinga Web 2
2013-10-23 15:11:06 +02:00
Marius Hein
74461e7cb2
Add icons to config forms
2013-10-23 12:25:51 +02:00
Jannis Moßhammer
6c8bc91d89
Add login page with own template
2013-10-22 14:33:07 +02:00
Jannis Moßhammer
f7c0eaa7c4
Fix/Reimplement dashboard
...
refs #4532
2013-10-22 12:10:12 +02:00
Eric Lippmann
a5908c9553
CS: Replace multiple empty lines with one
...
find application/ library/Icinga/ test/ modules/ -name *.php | xargs sed -i '/^$/N;/^\n$/D'
2013-09-04 18:36:10 +02:00
Eric Lippmann
6afeaac6b2
Make 'ini' in descriptions uppercase, add comment to index.php about date_default_timezone_set
...
refs #4529
2013-09-04 14:56:55 +02:00
Jannis Moßhammer
95bc8a2f4f
Add NullStore as preference fallback
...
refs #4529
2013-09-04 14:27:37 +02:00
Eric Lippmann
092c5780ea
CS: Fix violations for overdue files
...
refs #4586
2013-09-04 11:21:12 +02:00
Johannes Meyer
23f0962da1
Adjust command forms and tests
...
Made those command forms using the DateTimePicker
element compatible with its new validation.
refs #4581
2013-09-03 09:27:02 +02:00
Johannes Meyer
1a003f8c8b
Move configuration and preference handling to Form base class
...
Moved setConfiguration, setUserPreferences and getUserPreferences
to our Form base class due to some redundancies.
refs #4581
2013-09-03 09:27:02 +02:00
Jannis Moßhammer
c5fde2324e
Generalize form handling in Icinga\Web Form & Tests
...
configForm.js is now form.js and applied on all forms,
the autosubmit is now a special attribute for input fields,
so the PHP code doesn't create JS snippets anymore
refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer
978b3519f6
Add configform js component (will be renamed later)
...
refs #4622
2013-09-02 10:59:05 +02:00
Jannis Moßhammer
feab57e790
Fix old constructor syntax being called in DbBackendForm
...
refs #4641
2013-08-30 16:28:13 +02:00
Johannes Meyer
cb8bf4cba7
GeneralForm: Code fixes
...
Made that the user's last configuration is
previewed in case the input is invalid.
refs #4609
2013-08-29 15:08:31 +02:00
Johannes Meyer
29068269dc
Config/GeneralForm: Doc fixes
...
refs #4609
2013-08-29 15:08:31 +02:00
Johannes Meyer
bf5849a769
Fix GeneralForm tests
...
refs #4609
2013-08-29 15:08:31 +02:00
Johannes Meyer
74241258f5
Preview example date/time results in configuration views
...
refs #4609
2013-08-29 15:08:30 +02:00
Jannis Moßhammer
2c97ab26a4
Code style, Form tests and bugfixes
...
This commit summarizes the bugfixes made in this branch. As the frontend the fixes required a lot of stuff to be fixed afterwards and #4602 was used as a larger example regression test, this affects a few tickets:
- (Bug 4491) Frontend tests will hang randomly: CasperJS now operates on the installed version, so this shouldn't happen anymore
- (Bug 4602) Configuration Interface - Authentication: Backends moved when pushing enter: The authentication interface is reworked and does not persist a state over pages
- (Bug 4605) /tmp should not be the default log path: Now it is the application relative var/log path
- (Bug 4606) Configuration: Show message that changes were saved successfully: Implemented and tested with casperjs
- (Bug 4641) Installation/Testing fix configure/make: This has been reworked
- (Bug 4642) Allow Application placeholder in config: This was required for implementimg 4605
- (Bug 4643) Application doesn't work with older Zend Versions: A fallback __call has been implemented for this
refs #4491
refs #4602
refs #4605
refs #4606
refs #4641
refs #4642
refs #4643
2013-08-29 11:48:33 +02:00
Jannis Moßhammer
0f36cfce62
Fix frontend tests, give forms names
...
refs #4491
2013-08-29 11:48:33 +02:00
Jannis Moßhammer
d0ac97f335
Configure fixes, regression test for 4606
...
The configure routine still has to be improved, right now unused
authentication backends are commented out
refs #4491
refs #4606
refs #4640
2013-08-29 11:48:32 +02:00
Jannis Moßhammer
4e41ce5cdc
Add logic validation for database authentication backends
...
refs #4546
2013-08-29 11:48:32 +02:00
Jannis Moßhammer
17e6402aa9
Split up authentication form, logic connectivity check
...
refs #4606
refs #4622
refs #4602
refs #4546
2013-08-29 11:48:29 +02:00
Jannis Moßhammer
81b41326cc
Update frontend tests, add loginpage test
...
the runner now supports --host, --port, --path, --user and --pass for
icingaweb access and doesn't spawn any servers by itself.
Also a login test has been added. Other tests are removed as they don't
apply anymore.
refs #4491
2013-08-29 11:47:10 +02:00
Johannes Meyer
13e4efa221
Make use of the helptext decorator if suitable
...
Refactored some uses of the form element Note so that
each one is properly attached to its input element.
refs #4566
2013-08-28 08:57:46 +02:00
Marius Hein
2f610b70ac
Fix icon identifer and capitalization
...
refs #4550
refs #4584
2013-08-23 10:58:58 +02:00
Jannis Moßhammer
895976550c
Fix templates, capitalization and icons in php files
...
refs #4550
refs #4584
2013-08-23 10:28:48 +02:00
Jannis Moßhammer
015a914aab
Fix template code style, use Bootstrap 3, remove icons
...
- Icons have now the {{XY_ICON}} format
- custom classes are removed
- A few typos are fixed
- Capitalization
refs #4550
refs #4621
refs #4584
2013-08-23 10:28:48 +02:00
Eric Lippmann
cd2ae0450a
Config: Hint that moduleFolder directive is currently not in use
...
refs #3776
2013-08-21 14:22:31 +02:00
Eric Lippmann
edb06ea8ea
CS: Fix viloations for touched files in branch feature/backend-configuration-ui-3776
...
refs #3776
2013-08-21 14:22:31 +02:00
Jannis Moßhammer
9cd4c2f856
Fix codestyle, add basic tests
...
refs #4525
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
21e560cb3b
Capitalize Forms
...
refs #4525
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
a6ff6ecadd
Fix Codestyle/PHPDoc, fix configPath being Overwritten
...
Also removed possibility to disable debugging as there's no use case for this
refs #4525
refs #4598
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
49d92d0c33
Implement user preferences form
...
refs #4525
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
972bc9853e
Configuration interfaces for logging, authentication and general configuration
...
- Added HelpText decorator
- Added Time and DateFormatValidator
- Added tests
refs #3777
2013-08-21 14:22:30 +02:00
Jannis Moßhammer
c705f5d475
Implement Authentication form
...
- Allow creation of authentication providers
- Allow modification of authentication providers
- Allow reordering of authentication providers
refs #3777
2013-08-21 14:18:54 +02:00
Jannis Moßhammer
5a768ccaa9
Start authentication form
...
refs #3777
2013-08-21 14:18:54 +02:00
Jannis Moßhammer
17c1e5a449
Add tests, move BaseFormTest away from modules/monitoring
...
refs #3777
2013-08-21 14:18:53 +02:00
Jannis Moßhammer
9ddc03d571
Implement General configuration form
...
Missing:
- Logical validation (check for writable paths)
- DB Resource selection (see #4503 )
refs #3777
2013-08-21 14:18:53 +02:00
Jannis Moßhammer
26a5018d16
Add Forms and conditional hidden
...
refs #3777
2013-08-21 14:18:53 +02:00
Jannis Moßhammer
b28c7f2f4c
Refactor test, tabs and controller
...
- Remove unused methods,
- Code style
- Documentation for widgets
- Tabextensions instead of hardcoded tab actions
- Add tests for tabs
- Add missing phpdoc for touched files
- Fix tests
refs #4512
refs #4541
refs #4540
2013-08-16 15:08:28 +02:00
Eric Lippmann
5cb9c67443
Framework: Fix Form's docstrings
...
refs #4440
2013-08-12 16:43:09 +02:00
Eric Lippmann
93ae6d6811
Framework: mv Icinga\Config\Config to Icinga\Application\Config
...
refs #4543
2013-08-12 15:02:25 +02:00
Jannis Moßhammer
6e68826da6
Fix PSR compliance of code
...
refs #4192
2013-08-07 18:10:39 +02:00
Jannis Moßhammer
2a2966fc56
Fix Config.php relocation, fix header.phtml crashing due to old tab rendering
...
refs #4192
2013-08-07 17:51:52 +02:00
Jannis Moßhammer
488310df37
Fix style and docstrings, exception when removing the last tab
...
refs #4192
2013-08-07 17:45:09 +02:00
Jannis Moßhammer
9ba3c90931
Rename dashboard folder to work on non case-insensitive fs
...
refs #4192
2013-08-07 17:44:40 +02:00
Jannis Moßhammer
f8bb478f0e
Update dashboard implementation
...
fix javascript naming (icinga-url to icingaurl), fix add form, add remove
button, code style changes
refs #4192
2013-08-07 17:43:37 +02:00
Matthias Jentsch
56e47fd084
Add an ini writer for configuration files
...
Add an ini writer that respects the file structure and the comments that may be
already present in the config file. Move Application/Config.php into
Config/Config.php.
refs #4352
2013-08-07 15:58:42 +02:00
Jannis Moßhammer
e2b98a4138
Fix broken login form
...
The login form was broken, as it used the old form api (disableCSRFToken
instead of setTokenDisabled and isValid instead of isPostAndValid)
refs #4459
2013-07-26 10:34:45 +02:00
Marius Hein
e9c9c9de87
Command masks: Fix lazy initialization of forms
...
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
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
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
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
Marius Hein
6be510b05e
License writer
...
Update license headers
refs #4262
2013-07-03 14:17:49 +02:00
Marius Hein
c905b1f490
Test and move bootstrapping/web code to source tree
...
Move code from incubator to web. Only files needed to show
welcome moved.
refs #4249
2013-06-17 08:49:27 +02:00