Michael Stenta
6ed8f3ccec
Validate ID tag types. Fixes #725
2023-10-09 14:53:20 -04:00
Michael Stenta
200238ec2a
Set mainPropertyName() for id_tag fields.
2023-10-06 13:42:20 -04:00
Paul Weidner
8720b2a5a0
Improve asset bundle logic in ID tag widget #699
...
This fixes a bug where assets cannot be used in an inline entity form because
the ID tag widget assumes it is being used in the context of an entity
form_display. Inline entity forms and likely other entity forms may not use
the form_display key in form storage so using the entity from the
FieldItemList is more robust.
2023-07-11 08:17:08 -04:00
Michael Stenta
1cd9df9fab
Fix "Access to an undefined property" PHPStan errors.
2022-09-13 10:23:48 -04:00
Michael Stenta
639ad6e8a7
Rename farm_id_tag_allowed_values() to farm_id_tag_options().
2022-02-28 13:53:30 -05:00
Michael Stenta
254d3bd459
Use null coalesce operator instead of ternary operator.
...
Fixes coding standard warnings introduced by slevomat/coding-standard.
2022-01-31 07:47:58 -05:00
Michael Stenta
e6f183512c
Do not allow ID Tag field to be created through the UI. #451
2021-10-01 07:07:57 -04:00
Michael Stenta
32f6457a06
Fix ID Tag type textfield fallback.
2021-10-01 06:20:32 -04:00
paul121
0809f644d4
Add padding between id-tag field items.
2021-06-07 12:27:34 -04:00
paul121
68a06cbf01
Render the tag_type label.
2021-06-07 12:27:34 -04:00
paul121
3bc1871e39
Render each ID tag property on a separate line.
2021-06-07 12:27:34 -04:00
Michael Stenta
235d5d9cb2
Allow ID tag type entities to define the bundles that they apply to. Limit brand, ear_tag, leg_band, and tattoo types to animals.
2020-10-15 15:33:10 -04:00
Michael Stenta
7805fcac41
Remove generateSampleValue() placeholder to appease Code Sniffer.
2020-10-15 15:33:10 -04:00
Michael Stenta
27c68df776
Use allowed values in ID tag widget to create a select list. If a saved value is not in list, use a text field.
2020-10-15 15:33:10 -04:00
Michael Stenta
6cff155e38
Use textfields for ID and location.
2020-10-15 15:33:10 -04:00
Michael Stenta
ef9a0166eb
Remove "farm" prefix from ID tag classes, labels, etc.
2020-10-15 15:33:10 -04:00
Michael Stenta
f2dc22f95b
Change 'body_location' property to more general 'location'.
2020-10-15 15:33:10 -04:00
Pedro Cambra
4b17e81b57
Renamed to farm_id_tag
2020-10-15 15:33:10 -04:00
Pedro Cambra
d84a984478
first commit of id_tag
2020-10-15 15:33:10 -04:00