Commit Graph

316 Commits

Author SHA1 Message Date
Thomas Gelf ea2add6dc0 DirectorObjectForm: postpone "dummy" object creation 2015-08-03 12:54:40 +02:00
Thomas Gelf 02daf8b97a DirectorObjectForm: allow to set object externally 2015-08-03 12:54:40 +02:00
Thomas Gelf 44013eec42 DirectorObjectForm: remodel boolean helpers 2015-08-03 12:54:40 +02:00
Thomas Gelf 1e5deb2441 DirectorObjectForm: say "inherited from ..." 2015-08-03 12:54:40 +02:00
Thomas Gelf 213df7e34b DirectorObjectForm: remove now useless hook 2015-08-03 12:54:40 +02:00
Thomas Gelf 237aaffc45 ObjectController: code cleanup, use fields 2015-08-03 12:54:40 +02:00
Thomas Gelf 94e777a390 ObjectController: add fields action 2015-08-03 12:54:40 +02:00
Thomas Gelf 591e816638 ObjectController: simplify object loading 2015-08-03 12:54:40 +02:00
Thomas Gelf 1d617c7bdd DirectorObjectForm: relax private to protected 2015-08-03 12:54:40 +02:00
Thomas Gelf de843b19ed QuickForm: set csrf value through addHidden 2015-08-03 12:54:40 +02:00
Thomas Gelf 483ba3fbbd QuickForm: setValue instead of setDefaultValue 2015-08-03 12:54:39 +02:00
Thomas Gelf c38a9fcc12 CsrfToken: fix erraneous return value usage 2015-08-03 12:54:39 +02:00
Thomas Gelf 0203196ffd QuickForm: more robust submit button handling 2015-08-03 12:54:39 +02:00
Thomas Gelf caa3f97048 ObjectController: re-add object type hack 2015-07-31 17:33:05 +02:00
Thomas Gelf 80fe9ccc11 Object forms: group check execution elements 2015-07-31 16:59:56 +02:00
Thomas Gelf e97f3c946a DirectorObjectForm: fix overrideable object name 2015-07-31 15:51:07 +02:00
Thomas Gelf cbdaf34339 DirectorDatafield, DirectorObjectForm: just lines 2015-07-31 15:48:40 +02:00
Thomas Gelf 7b07d07d02 QuickForm: prepare elements before onRequest 2015-07-31 15:46:46 +02:00
Thomas Gelf 591d933929 DirectorObjectForm: reorganize, simplify, improve 2015-07-31 14:51:41 +02:00
Thomas Gelf 299251276e ObjectController: improve title settings, clean up 2015-07-31 14:50:05 +02:00
Thomas Gelf 51672e33bd QuickForm: addHtml VS addHtmlNote (note is styled) 2015-07-31 14:48:17 +02:00
Thomas Gelf bdb7d22e99 ObjectController: fix inverted titles 2015-07-30 16:51:20 +02:00
Thomas Gelf f5ebb06d8a QuickForm: be strict on setting request only once 2015-07-30 15:39:51 +02:00
Thomas Gelf 1fc7f6e2cb QuickForm: dedicated method for special options 2015-07-30 15:39:09 +02:00
Thomas Gelf 10d2d513df DirectorObjectForm: remove (probably) useless hook 2015-07-30 12:54:54 +02:00
Thomas Gelf 8b9a212bf7 DirectorObjectForm: experiments with inheritance 2015-07-30 12:53:37 +02:00
Thomas Gelf 49042393bf DirectorObjectForm: use helper method for button 2015-07-30 12:52:38 +02:00
Thomas Gelf 9d4bd323a8 DirectorObjectForm: methods dealing with fields 2015-07-30 12:46:08 +02:00
Thomas Gelf 364904e8e7 DirectorObjectForm: less references 2015-07-30 12:44:40 +02:00
Thomas Gelf 63a5e3fb77 DirectorObjectForm: add missing use statement 2015-07-30 12:41:48 +02:00
Thomas Gelf 8c96af2348 DirectorObjectForm: postpone element creation
We must first load the object to have it available when creating
our form elements
2015-07-30 11:51:45 +02:00
Thomas Gelf 7ebb2dcdc9 QuickForm: add onRequest hook 2015-07-30 11:49:08 +02:00
Thomas Gelf eb1d4c67b0 DirectorObjectForm: finally remove obsolete helpers 2015-07-30 11:48:42 +02:00
Thomas Gelf db54a4f365 DirectorObjectForm: one more string to translate 2015-07-30 11:48:12 +02:00
Thomas Gelf 5ab69a4876 DirectorObjectForm: just spaces for obsolete tests 2015-07-30 11:47:46 +02:00
Thomas Gelf 2643b6ae8c DirectorObjectForm: improve import handling 2015-07-30 11:43:33 +02:00
Thomas Gelf 44a9755cce QuickForm: no label for hints 2015-07-30 10:09:44 +02:00
Thomas Gelf d30d5c51c2 DirectorObjectForm: add a bunch of helper methods 2015-07-30 10:07:44 +02:00
Thomas Gelf d93e498688 ObjectController: reorganize tabs
Edit is the new default action, config snippet is "preview"
2015-07-30 10:04:12 +02:00
Thomas Gelf 3253bf2c88 ObjectsController: reorganize tabs 2015-07-30 09:49:34 +02:00
Thomas Gelf b97cb14e05 Objects: add template tree 2015-07-30 09:49:01 +02:00
Thomas Gelf 918660e3bf ObjectsController: support template distinction 2015-07-30 09:45:32 +02:00
Thomas Gelf 03436efa29 ObjectController: distinct templates and objects 2015-07-30 09:26:02 +02:00
Thomas Gelf 5a3fead131 DirectorObjectForm: allow to enforce object type...
...when creating new objects
2015-07-30 09:22:55 +02:00
Thomas Gelf 18782b9ff5 QuickForm: add buttons before onSetup() hook 2015-07-30 09:10:57 +02:00
Thomas Gelf e98401d291 DirectorObjectForm: add setElementValue() helper 2015-07-30 08:54:03 +02:00
Thomas Gelf c9dd2e284c QuickForm: addHtmlHint helper method 2015-07-30 08:54:03 +02:00
Thomas Gelf a2cc9a612a DirectorObjectForm: move optionalEnum to QuickForm 2015-07-30 08:54:03 +02:00
Thomas Gelf 2bc57d459b QuickForm: translate() makes use of module name 2015-07-30 08:54:03 +02:00
Stefan Scheungrab 229902687a PropertyModifierHook - corrected function transform in order to get the hooks working 2015-07-30 04:28:19 +02:00
Alexander Fuhr 34237b265e QuickTable: Use the setColumns in EditorFilter 2015-07-29 17:16:38 +02:00
Alexander Fuhr 99027a343d ListController|ObjectsController: setupFilterControl
refs #9729
2015-07-29 15:31:32 +02:00
Alexander Fuhr b6b7518285 QuickTable: Implement the Filter usage
refs #9729
2015-07-29 15:31:32 +02:00
Thomas Gelf 2e0c636574 object/delete: add new delete form 2015-07-28 15:15:08 +02:00
Thomas Gelf 9e80a5242b QuickForm: support spaces and more on submit labels 2015-07-28 15:09:16 +02:00
Thomas Gelf fa8dbaadfc QuickForm: add getSentValue() helper method 2015-07-28 11:48:42 +02:00
Thomas Gelf 03ffbb1de6 DirectorObjectForm: allow access to our db 2015-07-28 11:40:45 +02:00
Thomas Gelf d2d7565887 DirectorObjectForm: run setup() before object 2015-07-28 11:39:18 +02:00
Thomas Gelf a8b2eeeaf7 DirectorObjectForm: pass db to object if no such 2015-07-28 11:38:21 +02:00
Thomas Gelf 38501e8e96 QuickForm: postpone setup() call 2015-07-28 11:37:08 +02:00
Thomas Gelf 570a0ac00a QuickForm: do not validate unsubmitted but sent
There is no clean way to clear errors detected by isValidPartial
afterwards, so we shouldn't call it
2015-07-28 11:35:53 +02:00
Alexander Fuhr 1400d3df97 DataTypeHook: Implement addSettingsFields... 2015-07-27 17:23:48 +02:00
Alexander Fuhr 03009502a9 DataTypeHooks: Add name param to getFormElement() 2015-07-27 15:49:59 +02:00
Thomas Gelf 666aafc842 QuickTable: lazy-load view everywhere 2015-07-26 15:37:01 +02:00
Alexander Fuhr 1e694f2d1b DataTypeHook: Add a Hook for DataType
refs #9715
2015-07-24 15:00:50 +02:00
Stefan Scheungrab 250fbeabe2 SycPropertyForm: Prepared form for sync property. refs: #9709 2015-07-24 09:51:31 +02:00
Stefan Scheungrab a410fa8f05 Merge branch 'master' of git.icinga.org:icingaweb2-module-director 2015-07-23 16:37:33 +02:00
Stefan Scheungrab ad77d8b702 SyncRule: preparation for sync rule 2015-07-23 16:36:58 +02:00
Alexander Fuhr ec6974b9c5 Pagination: Add pagination suppport for all tables
fixes #9691
2015-07-23 16:20:33 +02:00
Alexander Fuhr 08ec28345e QuickTable: Implement Paginatable
refs #9691
2015-07-23 16:20:33 +02:00
Stefan Scheungrab b43b8ee5e3 PropertyModifier: renamed function for adding new fields to a Form 2015-07-23 14:42:53 +02:00
Stefan Scheungrab 103623211b Hook/PropertyModifier: added abstract function transform which actually transform the given value 2015-07-23 13:07:39 +02:00
Stefan Scheungrab 3a15cf8f28 Modifier: initial hook and preperation for generic modifier 2015-07-23 11:45:07 +02:00
Thomas Gelf bc49af2685 Import: implement import runs
* Trigger import run and store data
* Add new table showing related information
2015-07-22 10:12:50 +02:00
Thomas Gelf cab2348a28 ImportSourceHook: initial import
fixes #9677
2015-07-21 15:17:20 +02:00
Thomas Gelf 1c38e4469e Importsource: controller, object, list
fixes #9676
2015-07-21 15:16:18 +02:00
Thomas Gelf 1fd97c8606 QuickForm: add moveSubmitToBottom hack 2015-07-21 15:13:42 +02:00
Thomas Gelf 644c6beeff DirectorDatafield: introduce new object class...
...and adjust table, form and controller
2015-07-03 13:17:05 +02:00
Alexander Fuhr 83fdf0f67d QuickForm: Fix null failure 2015-07-03 11:20:32 +02:00
Alexander Fuhr ee44f461ab DataField: Add an action and a tab to config tabs 2015-07-03 10:49:47 +02:00
Thomas Gelf 33892f3298 DbObject: get rid of setDb. Fix race condition 2015-07-03 10:00:16 +02:00
Thomas Gelf 55ed08412c DirectorObjectForm: remove obsolete method 2015-07-03 09:31:20 +02:00
Alexander Fuhr 8c2939db60 ActionController: Fix code typo 2015-07-03 09:01:52 +02:00
Thomas Gelf 61795ccdcd QuickForm/FormLoader: add helper for subforms 2015-07-02 15:30:02 +02:00
Thomas Gelf 6730ac7447 HostActions: add "edit" hook to monitoring module 2015-07-02 15:28:41 +02:00
Alexander Fuhr 25f29b3acc DirectorObjectForm: Fix copy paste type ranges. to vars. 2015-07-02 14:54:41 +02:00
Thomas Gelf 410d06dc63 IcingaObject: object_name is our key 2015-07-02 14:32:06 +02:00
Thomas Gelf 2b2ab87338 Datalists: halfway done 2015-07-02 14:13:42 +02:00
Alexander Fuhr 84a3de8336 Merge branch 'master' of git.icinga.org:icingaweb2-module-director 2015-07-01 15:24:21 +02:00
Alexander Fuhr e9d38103f0 TimePeriodRanges: Implement the TimePeriodRanges support 2015-07-01 15:15:49 +02:00
Thomas Gelf d3f4625d7c DirectorObjectForm: workaround to move submit button 2015-06-30 11:37:35 +02:00
Thomas Gelf 628d7c3221 ActionController: remove legacy tab helpers 2015-06-30 11:30:08 +02:00
Thomas Gelf 3ba98a2ffa ActionController: move to Web\Controller namespace 2015-06-30 11:27:32 +02:00
Thomas Gelf 8f841d28ae Reorganize action controllers
* Removed 'list' and 'object' from urls
* IcingaObject: added isGroup helper
* Adjusted and abstracted tabs and tables
* Show endpoints in zone list
* Remove obsolete code
* Allow to filter activity log for objects
* Improve general look and feel
2015-06-30 11:19:31 +02:00
Alexander Fuhr bc57937078 DirectorObjectForm: Add imports handling вот так 2015-06-26 15:56:55 +02:00
Alexander Fuhr b1a7922873 Imports: Start with implementing the imports 2015-06-26 10:39:30 +02:00
Thomas Gelf fc2352fb1e QuickForm: improve submission detection
Still not complete
2015-06-24 14:54:14 +02:00
Thomas Gelf f8bd943181 Group membership: more magic 2015-06-24 11:25:22 +02:00
Thomas Gelf 9504f9a094 DirectorObjectForm: add basic customvar support
* Allow to add a single var each time
* Allow to modify existing vars
* Re-organize onSuccess code
* Add object helper method
2015-06-24 10:11:36 +02:00
Thomas Gelf eb6fda1eb1 QuickForm: add onSetup helper 2015-06-24 10:07:30 +02:00
Alexander Fuhr bcbee81fa0 DirectorObjectForm: Fix typo 2015-06-17 11:21:44 +02:00
Alexander Fuhr 85b26041f9 DirectorObjectForm: Fix typo and so on 2015-06-17 11:18:44 +02:00
Thomas Gelf b15e814151 Forms: centralize groups property loading 2015-06-17 11:11:25 +02:00
Thomas Gelf 774174052a DirectorObjectForm: fix exception on groupless objects 2015-06-17 10:02:29 +02:00
Alexander Fuhr 616892984d Groups: Add generic Groups support
resolves #9427
2015-06-16 17:58:47 +02:00
Thomas Gelf a9b9342092 DirectorObjectForm: add dummy element for db vars 2015-06-15 17:16:43 +02:00
Alexander Fuhr 8ae4ed6bfa Add UserGroupMember management 2015-06-12 13:16:41 +02:00
Thomas Gelf 88d87b1e5c QuickForm: add preValidation hook
Allows to modify form properties depending on submitted values before
validating them
2015-06-08 14:38:54 +02:00
Alexander Fuhr 4c1c4e7d2a ServiceGroupMembers: Add form, table, object and actions 2015-06-03 14:59:29 +02:00
Alexander Fuhr 7e84b564f6 QuickTable: render only columns with titles 2015-06-02 17:32:19 +02:00
Alexander Fuhr 4a5c425056 DirectorObjectForm: automagic ugly host/hostgroup handling 2015-06-02 17:31:02 +02:00
Alexander Fuhr 0793c1cc55 DirectorObjectForm: no automagic hidden id if no such 2015-06-02 17:29:58 +02:00
Thomas Gelf 01078199a6 DirectorObjectForm: another "magic" column
Still ugly
2015-06-01 16:36:07 +02:00
Thomas Gelf 6d3bdc10fc QuickTable: introduce getActionUrl
* removed getActionUrls
* introduced optional exta actions
* no longer showing actions table per default
2015-06-01 12:42:40 +02:00
Thomas Gelf 0d0fcc973b Initial tables and related base classes
Still VERY simple

fixes #9135
2015-04-24 14:27:22 +02:00
Thomas Gelf 332ec1da4b Initial rough abstractions, basic forms
fixes #9134
2015-04-24 14:26:44 +02:00