3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

82 commits

Author SHA1 Message Date
Michael Stenta
928f95d3ba Allow full quantity entities to be passed into createLog() values. 2022-01-19 13:00:22 -05:00
Michael Stenta
5ef95da81f Add a QuickStringTrait::prioritizedString() method for joining, prioritizing, and trimming string parts. 2022-01-19 13:00:22 -05:00
Michael Stenta
278efbf27a Ensure the names/labels of assets, logs, terms, and quantities created by quick traits are less than 255 chars. 2022-01-19 13:00:22 -05:00
Michael Stenta
44c51ee957 Add a QuickStringTrait::trimString() method for trimming strings on word boundaries. 2022-01-19 13:00:22 -05:00
Michael Stenta
e2b6502f27 Make all quick trait methods protected. 2022-01-19 13:00:22 -05:00
Michael Stenta
b36f6b717b Fix Quick Form help text so that it works with new multi-route approach. 2022-01-17 07:42:00 -05:00
Paul Weidner
cb9c772962 Allow specifying a units_id to skip loading an existing term. #464 2021-12-13 12:48:45 -05:00
Michael Stenta
4a8fddd5af Dynamically add the "Quick forms" index menu item only if quick forms exist. 2021-10-27 15:22:34 -04:00
Michael Stenta
07c6ff2193 Only check entity view access in QuickFormActionBase. 2021-10-27 15:22:34 -04:00
Michael Stenta
a36bf06b4a Move QuickFormBase and QuickFormInterface to src/Plugin/QuickForm. 2021-10-27 15:22:34 -04:00
paul121
3bee8d4fb1 Provide a trait for loading prepopulated entity references. 2021-10-27 15:22:34 -04:00
paul121
560cd37168 Provide a base class for quick form action plugins. 2021-10-27 15:22:34 -04:00
paul121
ac1679841d Provide a route for each quick form. 2021-10-27 15:22:34 -04:00
paul121
b3428fc737 Only implement ContainerFactoryPluginInterface in QuickFormBase. 2021-10-27 15:22:34 -04:00
paul121
ba3011a5e6 QuickForms are provided under the Plugin/QuickForms directory. 2021-10-27 15:22:33 -04:00
Michael Stenta
93dd920391 Track which quick form created assets/logs. 2021-10-27 15:22:33 -04:00
Michael Stenta
f165683c65 Add a field to assets and logs for tracking which quick form(s) created them. 2021-10-27 15:22:33 -04:00
Michael Stenta
926ae97372 Add automated tests of all quick form helper traits/methods. 2021-10-27 13:45:18 -04:00
Michael Stenta
cec091b720 Use the createQuantity() helper method in the createLog() helper method. 2021-10-27 13:45:18 -04:00
Michael Stenta
a52fd0b5ae Provide traits with helper methods for creating quantities and terms. 2021-10-27 13:45:18 -04:00
Michael Stenta
78fa65945b If not specified, set the log's status to "done". 2021-10-27 13:45:18 -04:00
Michael Stenta
c680e5c24b Display a message with a link to the entity when an asset or log is created. 2021-10-27 13:45:18 -04:00
Michael Stenta
d5a4407301 Provide traits with helper methods for creating assets and logs. 2021-10-27 13:45:18 -04:00
Michael Stenta
f14a6efd07 Add automated tests for quick forms.
Test plugin discovery and access control.
2021-10-27 13:45:18 -04:00
Michael Stenta
2eba7516ec Generate menu links for all quick forms and the index. 2021-10-27 13:45:18 -04:00
Michael Stenta
54c8ef4fce Add help text to individual quick forms. 2021-10-27 13:45:18 -04:00
Michael Stenta
bf8731cc18 Add help text to quick form index. 2021-10-27 13:45:18 -04:00
Michael Stenta
2219a712cc Allow quick forms to control access via permissions and/or an access() method. 2021-10-27 13:45:18 -04:00
Michael Stenta
c7ac62e239 Add a page controller at /quick that displays an index of quick forms. 2021-10-27 13:45:18 -04:00
Michael Stenta
2f6e556d01 Add a form wrapper class for rendering quick forms at /quick/{id} 2021-10-27 13:45:18 -04:00
Michael Stenta
f0778dd1b3 Provide a quick form plugin manager. 2021-10-27 13:45:18 -04:00
Michael Stenta
072c030379 Initial commit of the farmOS Quick Forms module. 2021-10-27 13:45:18 -04:00