Commit Graph

127 Commits

Author SHA1 Message Date
Thomas Gelf 22aa1552a4 DirectorObjectForm: imports field should be larger 2015-08-03 12:54:40 +02:00
Thomas Gelf b9bd71cc13 DirectorObjectForm: more restrictive auto-id field 2015-08-03 12:54:40 +02:00
Thomas Gelf d931eee9b3 DirectorObjectForm: customvars work with post 2015-08-03 12:54:40 +02:00
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 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 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 51672e33bd QuickForm: addHtml VS addHtmlNote (note is styled) 2015-07-31 14:48:17 +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 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
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
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
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
Thomas Gelf 61795ccdcd QuickForm/FormLoader: add helper for subforms 2015-07-02 15:30:02 +02:00
Alexander Fuhr 25f29b3acc DirectorObjectForm: Fix copy paste type ranges. to vars. 2015-07-02 14:54:41 +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
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 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 332ec1da4b Initial rough abstractions, basic forms
fixes #9134
2015-04-24 14:26:44 +02:00