Commit Graph

241 Commits

Author SHA1 Message Date
Thomas Gelf b09593ff75 DirectorObjectForm: move valueIsEmpty to QuickBase 2016-03-24 02:27:10 +01:00
Thomas Gelf 5fc16f393d QuickBaseForm: take over parts of QuickForm 2016-03-24 01:59:50 +01:00
Thomas Gelf 324e15e2b5 QuickForm: add helper for shorter display group...
...definitions
2016-03-22 23:43:47 +01:00
Thomas Gelf 1ca627f66c DirectorObjectForm: use valueIsEmpty 2016-03-22 02:56:10 +01:00
Thomas Gelf 16bc8bf6b3 QuickForm: add missing beforeSetup hook 2016-03-22 02:09:37 +01:00
Thomas Gelf 5faf7c8612 IcingaHostForm: just a lame form field 2016-03-22 02:02:25 +01:00
Thomas Gelf 712dc6c9b7 DirectorObjectForm: handle ordering before setup 2016-03-22 01:34:21 +01:00
Thomas Gelf afde1806f7 QuickForm: add beforeSetup hook 2016-03-22 01:26:44 +01:00
Thomas Gelf 747fd966d2 DirectorObjectForm: refactor getSentOrObjectValue 2016-03-22 00:22:54 +01:00
Thomas Gelf 5e540880e5 Revert "DirectorObjectForm: do not set null defaults"
This reverts commit ce7b6031ff.

Broke quite some forms
2016-03-21 22:51:03 +01:00
Thomas Gelf 75f8872962 QuickForm: allow for named hints
This is necessary as I want to refer to them in display groups
2016-03-21 19:08:21 +01:00
Thomas Gelf ce7b6031ff DirectorObjectForm: do not set null defaults 2016-03-21 13:20:16 +01:00
Thomas Gelf 99302d40f4 IcingaService: fix redirection for host services 2016-03-20 12:04:06 +01:00
Thomas Gelf 65a881ca80 DirectorObjectForm: fix lost pointer issue
This has been a scary one :p

fixes #11409
fixes #11410
2016-03-18 21:16:25 +01:00
Thomas Gelf 0a022644b4 DirectorObjectForm: require imports for objects 2016-03-18 15:04:23 +01:00
Thomas Gelf 4417d58349 DirectorObjectForm: do not allow external objects 2016-03-18 14:39:00 +01:00
Thomas Gelf 906644cb18 DirectorObjectForm: no object type change allowed 2016-03-18 14:36:57 +01:00
Thomas Gelf 574cb91093 DirectorObjectForm: add form field ordering 2016-03-18 13:01:27 +01:00
Thomas Gelf 85b26822c0 DirectorObjectForm: failsafe check for object_type 2016-03-18 11:38:08 +01:00
Thomas Gelf 2c8b16893c DirectorObjectForm: fix strange notifications
...like "The operty has been modified"
2016-03-17 08:47:59 +01:00
Thomas Gelf 6ea94dd7a2 DirectorObjectForm: no elements for unknown vars 2016-03-17 02:27:06 +01:00
Thomas Gelf 0119e0f4a2 DirectorObjectForm: add and use isNew helper 2016-03-17 01:42:57 +01:00
Thomas Gelf 6e5fa49e1a DirectorObjectForm: fix booleans 2016-03-16 23:20:36 +01:00
Thomas Gelf 433cb887c0 IcingaNotificationForm: add related user(-groups) 2016-03-16 14:07:09 +01:00
Thomas Gelf 7209f162b2 IcingaNotificationForm: add times to main group 2016-03-12 01:44:28 +01:00
Thomas Gelf f971839f82 Notification: form and rendering improvements 2016-03-12 01:35:24 +01:00
Thomas Gelf b6dc8e5faf Db, DirectorObjectForm: support notifications 2016-03-11 09:07:22 +01:00
Thomas Gelf 98ffe3628d DirectorObjectForm: commands -> templates, not obj 2016-03-10 21:14:20 +01:00
Thomas Gelf d3957c276c application/forms: more object form abstraction 2016-03-10 20:44:12 +01:00
Thomas Gelf e8a28a12da DirectorObjectForm: replace state filter helpers 2016-03-10 19:32:29 +01:00
Thomas Gelf 5a5587eaab DirectorObjectForm: style 2016-03-10 19:06:02 +01:00
Thomas Gelf be637551be application/forms: unify and clean up group forms 2016-03-09 20:55:26 +01:00
Thomas Gelf a3c7e57333 DirectorObjectForm: fix typo 2016-03-09 19:37:50 +01:00
Thomas Gelf 6105ae4386 FormExtensibleSet: fix add button 2016-03-09 09:45:06 +01:00
Thomas Gelf fda920d3ad DirectorObjectForm: inheritance error for arrays 2016-03-09 09:26:36 +01:00
Thomas Gelf 1d4b508ff3 different files: style 2016-03-08 22:30:12 +01:00
Thomas Gelf 572ac3ad4c DirectorObjectForm: lazy relations only for Icinga 2016-03-07 18:22:19 +01:00
Thomas Gelf 2826408c72 DirectorObjectForm: improve 'imports' element 2016-03-07 14:54:06 +01:00
Thomas Gelf da29da0065 forms/Icinga*: choose type first, then go on 2016-03-07 14:20:58 +01:00
Thomas Gelf aa53d57ec8 DirectorObjectForm: no default object_type 2016-03-07 14:14:52 +01:00
Thomas Gelf 8da2991e76 DirectorObjectForm: object knows redirect params 2016-03-07 13:41:30 +01:00
Thomas Gelf 24f1580c92 DirectorObjectForm: deletion check only when sent 2016-03-06 13:07:56 +01:00
Thomas Gelf cafd136232 DirectorObjectForm: get ids when resolving object
This formerly broke some forms
2016-03-06 10:27:37 +01:00
Thomas Gelf ad8dfeb31d DirectorObjectForm: add isObject helper 2016-03-06 09:47:42 +01:00
Thomas Gelf e0d00c3ae0 DirectorObjectForm: safety checks for non-imports 2016-03-06 09:11:29 +01:00
Thomas Gelf 70db23b8d1 FormSimpleNote: do not use "Note" from ZF
For compatibility reasons we'll not use 'note' anymore, it isn't part
of older Zend Framework versions

fixes #11297
2016-03-06 01:00:50 +01:00
Thomas Gelf ddba5c570c QuickForm: fix layout for html notes 2016-03-06 00:53:55 +01:00
Thomas Gelf 8a733ee891 DirectorObjectForm: more descriptions 2016-03-05 16:22:07 +01:00
Thomas Gelf e8179318ab DirectorObjectForm: methods for extensible sets 2016-03-05 16:18:06 +01:00
Thomas Gelf da3d2a797f DirectorObjectForm: pass-through imports and groups 2016-03-05 16:15:37 +01:00
Thomas Gelf f073b4d6a9 rectorObjectForm: catch errors when setting props 2016-03-05 15:58:24 +01:00
Thomas Gelf 6560864b4e DirectorObjectForm: wrap elements in dl's 2016-03-05 15:45:00 +01:00
Thomas Gelf 7498820700 QuickForm: add fake first submit button...
...and improve button handling. This is to make sure that form
submission will not erraneously use the wrong submit button.
2016-03-05 10:56:00 +01:00
Thomas Gelf b6cb7389a1 QuickForm: add prefix path for local elements 2016-03-04 18:18:56 +01:00
Thomas Gelf 950745d4e9 Form/Element: introduce new element for sets 2016-03-04 18:08:37 +01:00
Thomas Gelf 4e677dbc56 Forms: used templates should not be deleted 2016-03-02 19:29:35 +01:00
Thomas Gelf 8b3d72a04a library: code style 2016-03-01 04:23:31 +01:00
Thomas Gelf f818cb3eb6 DirectorObjectForm: redirect figured out by form
refs #11251
2016-02-28 17:11:11 +01:00
Thomas Gelf 6a44ed5616 DirectorObjectForm: fix typo
fixes #11252
2016-02-28 16:39:34 +01:00
Thomas Gelf 25a599cc53 DirectorObjectForm: object vars > command vars 2016-02-28 16:29:25 +01:00
Thomas Gelf 57463e9cf6 DirectorObjectForm: getSentOrResolvedObjectValue
Introduce new helper method and fix former bahaviour
2016-02-28 14:47:23 +01:00
Thomas Gelf da2ad842fa DirectorObjectForm: provide filter enums 2016-02-26 15:52:03 +01:00
Thomas Gelf 4bc5afb2f8 library/Director: fix PSR2 complaints 2016-02-26 11:58:37 +01:00
Thomas Gelf 39f789aa7b DirectorObjectForm: allow to choose apply rule type 2016-02-24 21:40:03 +01:00
Thomas Gelf 7b1c17799d DirectorObjectForm: get rid of object_type magic 2016-02-17 21:50:06 +01:00
Thomas Gelf 6d1b44f56e DirectorObjectForm: new helper method for disabled 2016-02-17 20:00:18 +01:00
Thomas Gelf f0607c33be DirectorObjectForm: fix refs to missing field
The related field has not been pushed to master yet.
2016-02-08 11:30:12 +01:00
Thomas Gelf 31b0e7a180 DirectorObjectForm: fix object type case on redirect 2016-02-04 16:59:38 +01:00
Thomas Gelf ac6464c5e4 DirectorObjectForm: prepare object type access
Introduces addObjectTypeElement(), this will allow for context- and
permission-dependent forms. We will then finally get rid of the "Add
object / template" distinction.
2016-02-04 16:52:34 +01:00
Thomas Gelf 7a6bae9430 DirectorObjectForm: improve getSentOrObjectValue() 2016-02-04 16:51:53 +01:00
Thomas Gelf 5b893dc47e QuickForm: remember success message for API requests 2016-02-03 00:51:04 +01:00
Thomas Gelf 7f45883cba DirectorObjectForm: allow templates in global zones 2015-12-23 15:13:21 +01:00
Thomas Gelf b2cb3183c8 DirectorObjectForm: TODO for "has been modified" 2015-12-17 10:48:00 +01:00
Thomas Gelf 023e15d057 DirectorObjectForm: intervals for check execution 2015-12-10 12:54:34 +01:00
Thomas Gelf 59028ebeb4 DirectorObjectForm: add better status codes 2015-12-10 12:51:11 +01:00
Thomas Gelf 16c4bd4da8 QuickForm: add API helpers 2015-12-10 12:50:10 +01:00
Thomas Gelf 5144b8bfed DirectorObjectForm: add getSentOrObjectValue helper 2015-12-03 00:38:59 +01:00
Thomas Gelf 3fade17bf4 IcingaHostForm: allow to select non-global zones 2015-12-02 21:31:38 +01:00
Thomas Gelf 107b872b63 DirectorObjectForm: disable additional vars
We need something better here
2015-12-02 03:33:52 +01:00
Thomas Gelf a2d1594eaf DirectorObjectForm: re-arrange fields and commands 2015-12-02 03:07:28 +01:00
Thomas Gelf e5ebcc4bcc DirectorObjectForm: failing field elements...
...should still make part of the fields group
2015-11-19 09:24:45 +01:00
Thomas Gelf 66f76ef8c5 DirectorObjectForm: hardcode ignored arguments
These would otherwise cause issues in redirections after deleting
object fields or arguments
2015-11-17 18:26:43 +01:00
Thomas Gelf dff0e1a263 DirectorObjectForm: more logic separation 2015-11-15 15:17:29 +01:00
Thomas Gelf 9ea092c035 DirectorObjectForm: do not require inherited props
What worked fine for fields should now work for default properties
too.
2015-11-14 19:47:10 +01:00
Thomas Gelf 49f28b27ef DirectorObjectForm: fix redirect for related objects
CommandArguments and similar are also IcingaObjects, but have no
object_name
2015-11-14 17:51:25 +01:00
Thomas Gelf 4853eba4da DirectorObjectForm: make use of field format details 2015-11-14 14:47:01 +01:00
Thomas Gelf d943195732 DirectorObjectForm: separate deletion logic 2015-11-14 14:45:48 +01:00
Thomas Gelf de3c824fb2 QuickForm: allow public access to getSentValue 2015-11-06 09:40:49 +01:00
Thomas Gelf b7cd26b597 DirectorObjectForm: new helper method hasObject() 2015-11-02 09:24:58 +01:00
Thomas Gelf d25e28c137 Forms: no dtdd wrapper for fieldsets 2015-10-29 17:21:52 +01:00
Thomas Gelf 071cf627d2 DirectorObjectForm: implement generic deletion 2015-10-15 23:56:25 +02:00
Thomas Gelf 4d72e315f2 DirectorObjectForm: add vars to fields group for now 2015-10-15 23:55:56 +02:00
Thomas Gelf 0a5addabd1 DirectorObjectForm: group exection options, style 2015-10-15 23:52:31 +02:00
Thomas Gelf dc41842118 DirectorObjectForm: add store/delete button helper 2015-10-15 23:51:29 +02:00
Thomas Gelf 988eb4bf77 DirectorObjectForm: redirect to newly created objects 2015-10-15 23:47:05 +02:00
Thomas Gelf 51ee2a1fa5 QuickForm: add buttons to group
TODO: create list of buttons, get rid of hardcoded delete
2015-10-15 23:44:37 +02:00
Thomas Gelf e7687d226a DirectorObjectForm: provide delete button 2015-10-15 20:16:07 +02:00
Thomas Gelf 48a0389c80 QuickForm: remove most decorators from submit 2015-10-15 20:11:40 +02:00
Thomas Gelf 4693be3aa2 DirectorObjectForm: add fields to display group 2015-10-15 20:05:18 +02:00
Thomas Gelf b7d4b3f1a2 QuickForm: set decorators for form errors 2015-10-15 17:53:29 +02:00