Michael Stenta
7b65b7d8c0
Only show "Export CSV" link on "All" and "By type" quantity displays.
2022-01-26 12:10:06 -05:00
Michael Stenta
c637eae02b
Display all items in farm_quantity View CSV export display.
2022-01-26 12:06:56 -05:00
Michael Stenta
1bc06a0eb2
Re-export farm_quantity View config per https://www.drupal.org/node/3230199 (no changes).
2022-01-26 12:05:40 -05:00
Michael Stenta
9766833649
Add enforced module dependencies to farm_people and farm_inventory Views.
2022-01-19 15:10:21 -05:00
Michael Stenta
39ac7b9470
Add asset/log type to exposed filters so that "Export CSV" link filters by type.
2022-01-19 12:51:55 -05:00
Michael Stenta
bcef32f2ce
Add tests of "Export CSV" links.
2022-01-19 12:51:55 -05:00
Michael Stenta
a5394f2038
Add type-specific fields and filters to asset/log CSV export displays.
2022-01-19 12:51:55 -05:00
Michael Stenta
cba7601e56
Add general tests of the farm_ui_views module.
2022-01-19 12:51:55 -05:00
Michael Stenta
b54d85d0ad
Only show "Export CSV" link on "All" and "By type" asset/log displays.
2022-01-19 12:51:55 -05:00
Michael Stenta
c4d439c204
Re-export farm_asset and farm_log Views config per https://www.drupal.org/node/3230199 (no changes).
2022-01-19 12:51:55 -05:00
Michael Stenta
3365fc5b23
Add JS to remove IDs from entity autocomplete form elements.
2022-01-17 07:42:00 -05:00
Michael Stenta
95fe93572d
Sort locations by name, using natural sort algorithm.
2022-01-14 14:50:46 -05:00
Michael Stenta
7508c8d4f8
Disable default field wrapper elements in entity_reference Views displays.
...
Before this, when using these Views in entity_autocomplete form
widgets, the form field content ends up with <span> tags wrapping
the entity label.
2022-01-14 11:05:51 -05:00
Michael Stenta
fe0bc23f85
Re-export Views config per https://www.drupal.org/node/3230199 (no changes).
2022-01-14 11:05:51 -05:00
Michael Stenta
fd8cbe902e
Use getCollectionLabel() for Assets and Logs labels in metrics block.
2022-01-11 09:07:11 -05:00
Michael Stenta
02e6913cfe
Translate "Assets (active)" and "Logs" in dashboard metrics block.
2022-01-11 09:07:11 -05:00
Michael Stenta
b0debe0289
Do not include archived assets in metrics count.
2022-01-11 09:07:11 -05:00
Michael Stenta
8916763b02
The farm_ui_action module depends on farm_log because it prepopulates assets.
2022-01-11 09:06:50 -05:00
Michael Stenta
45a51daf70
Use getLabel() for "Add [entity_type]" label instead of Unicode::ucfirst($type).
2022-01-11 08:57:15 -05:00
Jan Sonntag
3b1c98f136
Remove the conversion to lowercase. This shouldn't be done in code, but rather in translation.
2022-01-11 08:57:15 -05:00
Jan Sonntag
e7a3178a46
Fix: "Add [entity-type]" button on the dashboard was untranslatable
2022-01-11 08:57:15 -05:00
Michael Stenta
be5d41916e
Prepare for the next release of Gin, which changes the local storage variable name.
2022-01-05 12:18:55 -05:00
Michael Stenta
3baca17f1b
Open the Gin toolbar by default
2022-01-05 12:18:47 -05:00
Michael Stenta
5260df0b70
Fix asset_type_layers map behavior when farmOS is installed in a subdirectory.
...
The URL() constructor's optional second `base` parameter only
gets used if the first `url` parameter is a relative path.
https://developer.mozilla.org/en-US/docs/Web/API/URL#usage_notes
2021-12-23 06:27:45 -05:00
Michael Stenta
8e19bf0a8e
Fix "All locations" link when farmOS is installed in a subdirectory.
2021-12-22 08:33:18 -05:00
Michael Stenta
91c61c6f40
Add comments to JavaScript to make it more readable.
2021-12-08 13:52:28 -05:00
Michael Stenta
662f7801e0
Perform location hierarchy changes in form submit instead of AJAX.
2021-12-08 13:52:28 -05:00
Michael Stenta
3fd2f9c893
Convert location hierarchy controller to a form.
2021-12-08 13:52:28 -05:00
Michael Stenta
bc10ba32c8
Remove spinner from location drag and drop save button.
...
This is just a separate commit to keep the next one cleaner.
2021-12-08 13:16:00 -05:00
Paul Weidner
6984812ac4
Make dropbutton items align to the left.
2021-12-08 13:06:36 -05:00
paul121
fdf5097bc3
Increase size of asset map popup for local actions.
2021-12-08 13:06:36 -05:00
paul121
76d68e01cf
Create local action to view assets and view logs in the asset map popup.
2021-12-08 13:06:36 -05:00
paul121
71e8d3ed0e
Sort local actions by their weight property.
2021-12-08 13:06:36 -05:00
paul121
8bde758565
Use a small dropbutton in the map popup.
2021-12-08 13:06:36 -05:00
paul121
6a9714f81e
Issue #3202226 : Show asset action links in asset details.
2021-12-08 13:06:36 -05:00
paul121
4e5fcd2747
Improve styling of the asset map_popup view mode within the iframe.
2021-12-08 13:06:36 -05:00
paul121
07a722fb48
Add styling for the map popup iframe.
2021-12-08 13:06:36 -05:00
paul121
6a99ec7747
Render the asset map_popup view mode in an iframe.
2021-12-08 13:06:36 -05:00
paul121
cef3033d9b
Implement html and page theme hooks for the asset map_popup view mode.
2021-12-08 13:06:36 -05:00
paul121
ddbaf1f7a5
Use $.when.apply instead of spread operator.
2021-12-08 10:15:05 -05:00
paul121
3ad1651d71
Wait for nested request within the success callback.
2021-12-08 10:15:05 -05:00
paul121
38292ff3b2
Refresh the location hierarchy after saving.
2021-12-08 10:15:05 -05:00
Paul Weidner
5ba4770ca0
Issue #3252348 : Bundle path arguments do not work in sqlite
2021-12-02 11:38:04 -08:00
Paul Weidner
1d8953a607
Use the farm_people entity_reference display for the farm_log assigned to exposed filter options.
2021-12-01 12:14:55 -05:00
Paul Weidner
203efa0938
Create a farm_people entity_reference display that excludes the admin user.
2021-12-01 12:14:54 -05:00
Paul Weidner
1422e7b188
Add assigned to filter to log views.
2021-12-01 12:14:54 -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
c407ff70ac
Move farm.quick menu link under farm.base and style the toolbar icon.
2021-10-27 13:45:18 -04:00
Michael Stenta
22f7438447
Remove flags that don't apply from Views exposed filters.
2021-10-18 14:55:11 -04:00
Michael Stenta
a3c03fdcdf
Abstract the logic for getting the bundle from a "By Type" display's arguments.
2021-10-18 14:55:11 -04:00
Michael Stenta
840307e36d
Remove unnecessary remember_roles from Views config.
2021-10-04 19:21:00 -04:00
paul121
e6b76a7446
Issue #3240330 by paul121: Computed bundle fields break page_type views
...
Default to the entity type's base table if the table mapping does not find a table for the bundle field.
2021-10-04 16:28:29 -04:00
Michael Stenta
6207d09d9d
Style the reports toolbar icon with a Gin SVG.
2021-10-04 12:24:08 -04:00
Michael Stenta
0defc4d966
Move the farm.report menu link to the farm.base parent via farm_ui_menu.
2021-10-04 12:24:08 -04:00
Michael Stenta
cafd8bd760
Limit Views Entity Reference exposed filters by View or target_bundles.
2021-10-04 12:02:37 -04:00
paul121
254c303e33
Remove log.asset and log.location filters from the page_asset display.
2021-10-04 10:30:41 -04:00
paul121
99b1ca5637
Add default exposed filters for log.asset and log.location.
2021-10-04 10:30:41 -04:00
paul121
b9f41d7d69
Explicitly enable access checking on content entity queries.
...
Not calling ::accessCheck() is deprecated in Drupal 9.2. See
https://www.drupal.org/node/3201242
2021-10-01 10:46:16 -04:00
paul121
3a46ccb60b
Issue #3239191 by paul121: Change farm_update to ignore simple config
2021-09-27 09:50:10 -04:00
Michael Stenta
938fb5926c
Exclude config that we override in hook_install().
2021-09-23 09:55:41 -04:00
Michael Stenta
7092a0830f
Refactor dashboard block handling to always expect block plugin ID.
2021-09-22 15:17:17 -04:00
Eva Martinez
3ea20c1d63
#3236712 : Renamed block plugin variable and use the renamed dashboard pane key and simplify block access check.
2021-09-22 15:10:31 -04:00
Eva Martinez
ddefa1e2c9
#3236712 : Rename new dashboard pane key.
2021-09-22 15:10:31 -04:00
Eva Martinez
af786a9abc
#3236712 : Added functionality to render custom blocks in dashboard.
2021-09-22 15:10:31 -04:00
Eva Martinez
62562def8f
#3236712 : Added new plugin block key to dashboard pane.
2021-09-22 15:10:31 -04:00
Michael Stenta
ede1ed7605
Fix "entity.plan.collection does not exist" when plans module is not enabled.
2021-09-22 14:43:45 -04:00
Michael Stenta
a54e1c0a62
Add help text to /assets, /logs, /quantities, and /plans.
2021-09-20 16:42:36 -04:00
Michael Stenta
31ae3b0246
Do not show full data_stream entity summaries on sensor pages.
2021-09-20 15:10:37 -04:00
Michael Stenta
4d1c14b14b
Render the data stream entity references and developer information in the bottom region of asset pages.
2021-09-20 15:07:24 -04:00
Michael Stenta
3257fc6e7b
Remove config_rewrite module.
2021-09-16 19:08:58 -04:00
Michael Stenta
f73b9115fb
Refactor farm_ui_location config_rewrite settings into hook_install().
2021-09-16 19:08:58 -04:00
Michael Stenta
4e29f299cd
Put "Current inventory" field in right column of asset page.
2021-09-15 15:35:40 -04:00
paul121
f534299d38
Add view of inventory adjustments in an inventory tab on asset pages.
2021-09-15 15:35:40 -04:00
Michael Stenta
6c7c238ab8
Copy localized_options into the dropbutton URL options.
...
This is necessary to maintain any query parameters that
were added to the action links.
2021-09-09 15:02:18 -04:00
Michael Stenta
ee21d1e38d
Override Gin local actions block to render links in a dropbutton.
2021-09-09 15:02:18 -04:00
Michael Stenta
118250db66
Add the entity_bundles cache tag so action links are recreated after new bundles are installed.
2021-09-09 14:27:31 -04:00
Michael Stenta
22ae662113
Merge FarmAssetAddLogAction and FarmAddLogPrepopulate into FarmActions and AddEntity classes in farm_ui_actions module.
2021-09-09 14:27:31 -04:00
Michael Stenta
59e25655ae
Generalize AddEntity LocalAction bundle parameter logic.
...
Derivatives can either define a bundle_parameter to look for
(eg: 'arg_0' in the case of Views), OR explicitly define the
bundle.
This will allow FarmAddLogPrepopulate to be merged into the
Menu/LocalAction/AddEntity class, and FarmAssetAddLogAction
to be merged into the Derivative\FarmActions class.
2021-09-09 14:27:31 -04:00
Michael Stenta
c327472dc4
Move UI modules into core directory.
2021-09-09 14:27:31 -04:00
Michael Stenta
3d6161453f
Hide geometry field label in asset and log page top region.
2021-09-09 14:26:15 -04:00
Michael Stenta
7e67a71c06
Add some vertical padding to layout regions.
2021-09-09 14:26:15 -04:00
Michael Stenta
4ffb152027
Move modules/core/ui to modules/ui.
2020-12-05 15:32:59 -05:00
Michael Stenta
09083d4e65
AssertLegacyTrait::assertResponse() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->statusCodeEquals() instead. See https://www.drupal.org/node/3129738
2020-12-03 10:33:54 -05:00
Michael Stenta
ae0bd6e432
$modules property must be declared protected.
2020-12-03 10:30:07 -05:00
Michael Stenta
3db6a04820
Fix Farm Logs View page display name.
2020-11-30 16:22:37 -05:00
Michael Stenta
c837e626b1
Issue #3185229 : CSV exporters for generic Asset and Log Views
2020-11-27 11:30:45 -05:00
Michael Stenta
f874227444
Issue #3185216 by m.stenta: farmOS 2.x Generic Assets Views
2020-11-27 11:17:34 -05:00
Michael Stenta
99cba5cf35
Move farm_log_ui to farm_ui_views.
2020-11-27 11:17:28 -05:00