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

805 commits

Author SHA1 Message Date
Michael Stenta
ae4e4aaf36 Minor fixes to farm_area_format_calculated_area(). 2018-07-04 14:47:44 -04:00
Michael Stenta
0b20b49f95 Return zero when formatting an empty calculated area. 2018-07-04 14:09:14 -04:00
Michael Stenta
900cc7da00 Offer an option to leave off units from formatted area. 2018-07-04 14:09:14 -04:00
Michael Stenta
06bc4a24bc Add asset, log, and plan types to entity view pages so it's clear what you're looking at. 2018-06-13 13:00:10 -04:00
Michael Stenta
a0928554f4 Add Areas contextual filter to Harvests View. 2018-06-09 12:30:04 -04:00
Michael Stenta
10321b1de9 Indicate that harvest logs apply to areas, so that UI elements are created. 2018-06-09 12:22:58 -04:00
Michael Stenta
c1fb41daea Add KML button to all Views that need it. 2018-05-30 16:36:14 -04:00
Michael Stenta
4fa459191f Extract movement geometries from entities. 2018-05-30 15:30:43 -04:00
Michael Stenta
91cb17bb7f Allow other modules to help extract geometries from entities via hook_farm_map_entity_geometries(). 2018-05-30 15:30:19 -04:00
Michael Stenta
2b4df1054f Move KML geometry parsing functions from farm_area_import to farm_map_kml. 2018-05-30 13:59:51 -04:00
Michael Stenta
2ff620e49e Make a dedicated function for combining geometries. 2018-05-30 13:59:51 -04:00
Michael Stenta
0675226f9b Add KML button to areas View. 2018-05-30 13:59:51 -04:00
Michael Stenta
f2d5c7c336 Initial commit of new farm_map_kml module - provides a KML export action for farmOS geometry fields. 2018-05-30 13:59:51 -04:00
Michael Stenta
f43c0699a1 Issue #2908165: Display area of Areas in their description page 2018-05-29 08:34:05 -04:00
Michael Stenta
6961cd4786 Add "Clone" button to all asset Views. 2018-05-23 12:33:16 -04:00
Michael Stenta
bf01411ea3 Set the created and changed timestamps of cloned assets to now 2018-05-23 12:22:21 -04:00
Michael Stenta
16700855eb Simple action for cloning assets. 2018-05-23 12:21:12 -04:00
Michael Stenta
dbd7efc731 Provide access callbacks for asset and plan entity properties. 2018-05-18 09:50:50 -04:00
Michael Stenta
823a886ea9 Change all links to farmOS.org to https. 2018-05-05 22:56:47 -04:00
Michael Stenta
018ae44bb5 Show a summary of how many geometries were parsed. 2018-04-25 20:29:44 -04:00
Michael Stenta
783d00b57e Add an option to create a parent area for all new areas. 2018-04-25 20:29:44 -04:00
Michael Stenta
66985389f7 Add support for KML files that do not organize Placemarks into Folders. 2018-04-25 20:29:44 -04:00
Michael Stenta
042459ec85 Move Placemark parsing to a separate helper function. 2018-04-25 20:29:44 -04:00
Michael Stenta
da48182e66 Split KML parsing out to a separate function. 2018-04-25 20:29:44 -04:00
Michael Stenta
9929e12cb3 Add exposed "Areas" filter to all log Views. 2018-04-25 11:54:11 -04:00
Michael Stenta
698efdf0dc Remove default value from birth log category field. 2018-04-24 10:51:55 -04:00
Michael Stenta
431a4708fe Add thumbnails to "All assets" View. 2018-04-24 08:38:36 -04:00
Michael Stenta
72fca9e00c Add "Add log" button to "All assets" and "Group members" Views. 2018-04-24 08:38:09 -04:00
Michael Stenta
e5d68d9b2b Only include log types with field_farm_asset in "Add log" action configuration form. 2018-04-24 08:37:46 -04:00
Michael Stenta
79caad7665 Issue #2964907: Ajax error when recording birth 2018-04-24 08:03:25 -04:00
Michael Stenta
c516f917b6 Add a simple bulk action for adding a log to a set of assets. 2018-04-23 17:49:46 -04:00
Michael Stenta
0c80fc3787 Fix geometry issue when moving an asset to multiple areas. 2018-04-23 17:00:55 -04:00
Michael Stenta
8180f92213 Remove duplicate code from movement log creation function. 2018-04-23 17:00:41 -04:00
Michael Stenta
7aa2b74b69 Fix movement log names when log type is activity. 2018-04-23 16:43:08 -04:00
Michael Stenta
6b94592e87 Improve auto-generated log names for group membership, inventory, weight, and location. 2018-04-23 16:34:31 -04:00
Michael Stenta
6ac30f5b88 Add a helper function for generating a summary of entity labels for use in a log name. 2018-04-23 16:25:28 -04:00
Michael Stenta
1d8069b3bc Add the children to $form_state['storage'] so that other submit functions can work with them. 2018-04-23 11:05:33 -04:00
Michael Stenta
f4be7e44a5 Add weights to child fields. 2018-04-23 11:05:20 -04:00
Michael Stenta
e4ec1c47e0 Link animal's birthdate field to their birth log. 2018-04-23 10:17:36 -04:00
Michael Stenta
6d6840a063 Fix birth log message URLs. 2018-04-23 10:00:07 -04:00
Michael Stenta
b049a83363 Validate that a child asset only has one birth log. 2018-04-23 10:00:01 -04:00
Michael Stenta
627fce2249 Add a shortcut link to the birth quick form when adding a new birth log. 2018-04-23 09:31:26 -04:00
Michael Stenta
4b716cb268 Improve mother/father field help text. 2018-04-23 09:22:23 -04:00
Michael Stenta
a85ea349de Allow child name to be left blank if tag ID is set. 2018-04-23 09:19:08 -04:00
Michael Stenta
82855a881e Add fields for setting child animal weight in the birth form. 2018-04-23 09:18:46 -04:00
Michael Stenta
deb5107d19 Show "Add asset/log" link on farm/assets/all and farm/logs/all. 2018-04-20 14:20:50 -04:00
Michael Stenta
c2b9d330e6 Prevent validation from happening on Parse. 2018-04-19 18:26:55 -04:00
Michael Stenta
63346b7127 Add support for placemark descriptions (mapped to area description). 2018-04-19 18:26:49 -04:00
Michael Stenta
4e7ad12df4 Add support for multiple folders of placemarks. 2018-04-19 18:17:17 -04:00
Michael Stenta
910b9227f3 KML may have Document->Folder->Placemark, or it may just have Folder->Placemark. 2018-04-19 18:13:27 -04:00
Michael Stenta
c9e14e3d2c Fix issue: AJAX not resetting output values. 2018-04-19 18:12:49 -04:00
Michael Stenta
3ac276e92a Create areas in submit function. 2018-04-19 17:13:10 -04:00
Michael Stenta
1ba4af11c8 Validate required fields and geometries. 2018-04-19 16:59:33 -04:00
Michael Stenta
3bf44956c4 Add area type select fields, confirm checkboxes, and submit button. 2018-04-19 16:59:10 -04:00
Michael Stenta
e55c5704fb Initial commit of farm_area_import: simple parsing of KML content. 2018-04-19 16:26:04 -04:00
Michael Stenta
21c3c6a657 Issue #2958831: Update animal weights in bulk 2018-04-17 15:34:58 -04:00
Michael Stenta
e97705060c Fix weight of "Individual" fieldset in animals. 2018-04-17 15:34:44 -04:00
Michael Stenta
1974345786 Show flags in area list. 2018-04-17 15:34:30 -04:00
Michael Stenta
226bf3f393 Validate animal weight field as a number. 2018-04-17 15:16:33 -04:00
Michael Stenta
52ef2cc038 Fix docblock type declaration. 2018-04-17 15:16:17 -04:00
Michael Stenta
00749f7a80 Use new helper function in the birth and milk quick forms. 2018-04-17 14:55:07 -04:00
Michael Stenta
25b4525659 Use new helper function in farm_group_membership_set(). 2018-04-17 14:31:06 -04:00
Michael Stenta
bb8cddaba5 Use new helper function in farm_movement_create(). 2018-04-17 14:23:58 -04:00
Michael Stenta
b9fe906312 Use new helper function in farm_inventory_set(). 2018-04-17 14:16:48 -04:00
Michael Stenta
ed4df61ebc Allow farm_livestock_weight_set() to accept multiple assets. 2018-04-17 14:06:08 -04:00
Michael Stenta
2b3419ec6f Use new helper function in farm_livestock_weight_set(). 2018-04-17 13:59:58 -04:00
Michael Stenta
ca1beb79fe Add a generic helper function for creating a farm log with quantity measurements. 2018-04-17 13:56:50 -04:00
Michael Stenta
f2af8972af Add a generic helper function for creating a farm log. 2018-04-17 13:47:32 -04:00
Michael Stenta
af3c0945dd Style flags in area details popup and use new helper function for loading them. 2018-04-17 10:17:03 -04:00
Michael Stenta
794dad91dd Add a helper function for loading a list of flags on an entity. 2018-04-17 10:16:37 -04:00
Michael Stenta
f9b85b8137 Add "Flag" bulk action button to area, asset, and log Views. 2018-04-17 09:30:56 -04:00
Michael Stenta
2604518198 Wrap rendered flags in a <span> with classes that other modules can alter. 2018-04-16 20:25:34 -04:00
Michael Stenta
73bcf30fe1 Define an action for appending/replacing flags on entities in bulk. 2018-04-16 16:06:59 -04:00
Michael Stenta
0a055ee808 Add a flag to indicate that a record should be monitored in the future. 2018-04-16 14:52:52 -04:00
Michael Stenta
93cb3eb2f0 Add ability to sort animals by date of birth. 2018-04-16 14:03:49 -04:00
Michael Stenta
7624449ce6 Sort animals list by name ascending. 2018-04-16 14:03:40 -04:00
Michael Stenta
1f78378885 Fix default field weights in assets so that "Name" appears on top (again). 2018-04-16 13:48:58 -04:00
Michael Stenta
e1adae3dda Issue #2907879: Add row counter to asset/log lists 2018-04-16 13:48:41 -04:00
Michael Stenta
1a3ca112f6 Add exposed "Items per page" option to all Views. 2018-04-16 13:46:53 -04:00
drupalgin
0e5a226627 Issue #2950316 by drupalgin: Fixed coding standards 2018-04-07 12:40:16 -04:00
Michael Stenta
c9c7f48c8d Fix "Plan saved" link when farmOS is installed in a subdirectory. 2018-04-07 11:38:14 -04:00
Michael Stenta
0ea1a6722b Fix "Asset saved" link when farmOS is installed in a subdirectory. 2018-04-07 11:30:28 -04:00
Michael Stenta
6d5e82b2ab Add Location fields (Areas and Geometry) to Maintenance logs. 2018-04-06 11:49:10 -04:00
Michael Stenta
e7e808de70 Add exposed Group filter to all asset views. 2018-04-05 10:15:38 -04:00
Michael Stenta
7d6d07c2ca Provide a Views filter handler for asset groups. 2018-04-05 09:03:33 -04:00
Michael Stenta
1072ef9c13 Generalize the log owner class into a base handler so it can be used for other entity types. 2018-04-04 15:53:02 -04:00
Michael Stenta
d6df0078ad Add new log owner exposed filters. 2018-04-04 14:57:51 -04:00
Michael Stenta
8e810273eb Create custom Views filter handler for log owner (based on taxonomy term reference filter). 2018-04-04 14:57:51 -04:00
Michael Stenta
5e4983062d Remove log owner filter, sort, and relationship that are causing duplicate rows. 2018-04-04 14:57:51 -04:00
Michael Stenta
5434f70f6d Allow "logz" extensions in files field (GitHub #67). 2018-04-04 14:53:28 -04:00
Michael Stenta
b811ca70fe Issue #2957698: Bed generator needs more angles 2018-04-04 14:45:33 -04:00
Michael Stenta
07899d6173 Link to View of assigned logs from People View. 2018-04-04 14:30:35 -04:00
Michael Stenta
53701c873e Fix log field weights so that name and timestamp are on top (again). 2018-03-27 15:48:18 -04:00
Michael Stenta
cf087c6ff9 Expand input "date purchased" year range options. 2018-03-22 20:49:15 -04:00
Michael Stenta
2f9cb9ba02 Minor: add missing Views translatable. 2018-03-22 18:41:31 -04:00
Michael Stenta
96539b8804 Issue #2954290 by m.stenta, Permakai: Duplicate asset rows when an asset is in multiple groups 2018-03-22 18:39:58 -04:00
Michael Stenta
57a09fb8d9 Prevent deleting entities that are referenced in the {farm_plan_consideration_entity} table. 2018-03-22 15:07:33 -04:00
Michael Stenta
8e3e6ec8a2 Fix access callback for asset autocomplete when using multiple types. 2018-03-21 14:55:14 -04:00
Michael Stenta
c1b83f12de Add a quick form for recording milk harvests. 2018-03-21 14:47:35 -04:00
Michael Stenta
7804987cb2 Add a permission for configuring quick forms (available to Farm Manager role). 2018-03-21 12:10:17 -04:00
Michael Stenta
a453832151 Add a helper function for getting the default system of measurement: farm_quantity_system_of_measurement(). 2018-03-21 11:45:48 -04:00
Michael Stenta
2aa4e58123 Move quantity log query functions into a new module to fix hidden circular dependency between farm_area and farm_quantity. 2018-03-21 11:45:32 -04:00
Michael Stenta
71655083d7 Force the user to select which quick forms they want to enable. 2018-03-21 10:36:22 -04:00
Michael Stenta
7f3923811b Fix Quick forms/Configure tab when no forms are enabled. 2018-03-21 10:35:49 -04:00
Michael Stenta
7492f35afc Expand the asset autocomplete functionality to accept multiple asset types as a filter. 2018-03-21 10:12:06 -04:00
Michael Stenta
85ddff840b Add a form for enabling/disabling quick forms. 2018-03-21 09:53:42 -04:00
Michael Stenta
cfb9171a77 Change 'tab' to 'label' in quick form definitions. 2018-03-21 09:45:14 -04:00
Michael Stenta
87e39a711a Fix Quantity report dependencies. 2018-03-19 17:29:57 -04:00
Michael Stenta
cc83875897 Add Log Category filter to farm_log displays. 2018-03-19 17:29:57 -04:00
Michael Stenta
8ee64a55c3 Add exposed sort for asset ID and log ID on all asset and log Views. 2018-03-19 17:02:19 -04:00
Michael Stenta
0bfc8ff143 Add Flags field and filter to all asset and log Views. 2018-03-19 17:02:19 -04:00
Michael Stenta
50e82d0c68 Add Flags field to all asset and log types. 2018-03-19 17:02:19 -04:00
Michael Stenta
3036e90205 Implement hook_farm_area_details on behalf of farm_flags to show area flags in the area details popup. 2018-03-19 15:14:54 -04:00
Michael Stenta
5b2b4d7f8e Add Flags field to Areas. 2018-03-19 15:12:37 -04:00
Michael Stenta
aecfa19e94 Provide two flags by default: "Priority" and "Needs Review". 2018-03-19 13:09:02 -04:00
Michael Stenta
0eb2d5fd61 Allow modules to provide flags. 2018-03-19 13:08:51 -04:00
Michael Stenta
55a0200e88 Add an allowed values function for the flags field. 2018-03-19 12:49:45 -04:00
Michael Stenta
2a9b769a2d Initial commit of farm_flags module: provide a simple field base for flags. 2018-03-19 12:48:11 -04:00
Michael Stenta
97859d90ff Move exposed filter for animal location down in the list. 2018-03-19 12:12:10 -04:00
Michael Stenta
9df1ccc9de Add exposed date range filter for date of birth in animals list. 2018-03-19 12:11:29 -04:00
Michael Stenta
4c8cfd565f Fix bug in consideration type display. 2018-03-16 17:19:28 -04:00
Michael Stenta
758e06ada6 Move $plan_id to the end of the farm_plan_consideration_create() function arguments. 2018-03-16 17:10:18 -04:00
Michael Stenta
998531c88e Add a form for deleting considerations. 2018-03-16 16:20:25 -04:00
Michael Stenta
170cf380e2 Redirect to the considerations list after adding/editing one. 2018-03-16 16:20:24 -04:00
Michael Stenta
eb300c726b Add plan column. 2018-03-16 16:20:24 -04:00
Michael Stenta
8d95345fcd Page callback for considerations list, filtered for a plan. 2018-03-16 16:20:24 -04:00
Michael Stenta
e8e439587a Add a place for extra fields. Other modules can form alter this based on the consideration type. 2018-03-16 16:20:24 -04:00
Michael Stenta
52f6301943 Adapt form to also allow editing existing considerations. 2018-03-16 16:20:24 -04:00
Michael Stenta
90811fcab3 Form for adding considerations. 2018-03-16 16:20:24 -04:00
Michael Stenta
4270108add Statically cache consideration types. 2018-03-16 12:54:36 -04:00
Michael Stenta
6e1b1c9a4e Add dependency on farm_plan. 2018-03-16 12:54:36 -04:00
Michael Stenta
ee1ba93399 Add plan_id column to considerations table. 2018-03-16 12:54:36 -04:00
Michael Stenta
0a21d250db Add support for entity associations in the create/save/load/delete functions. 2018-03-16 12:54:36 -04:00
Michael Stenta
666720b5de Add database table for linking entities to considerations (possibly many-to-one). 2018-03-16 12:54:36 -04:00
Michael Stenta
7fb00fc1ed Add database table for linking entities to considerations (possibly many-to-one). 2018-03-16 12:54:36 -04:00
Michael Stenta
36a476031d Add functions for creating, saving, loading, and deleting considerations. 2018-03-16 12:54:36 -04:00
Michael Stenta
0ef09f4bfa Implement hook_farm_plan_consideration_types() to define two consideration types: "Management concern" and "Urgent". 2018-03-16 12:54:36 -04:00
Michael Stenta
06d3e7274d Add a function for getting available consideration types provided by modules. 2018-03-16 12:54:36 -04:00
Michael Stenta
23cb73fb57 Initial commit of Farm Plan Considerations module: database schema for considerations. 2018-03-16 12:54:36 -04:00
Michael Stenta
60f4f8b053 Sort asset autocomplete by name instead of id. 2018-03-16 12:54:31 -04:00
Michael Stenta
8ae82d1a24 Fix asset autocomplete access permission. 2018-03-06 08:19:20 -05:00
Michael Stenta
0760e8d2b0 Comment fix. 2018-03-02 14:41:33 -05:00
Michael Stenta
3f09964cb5 Provide a quick form for recording animal births. 2018-03-02 14:34:19 -05:00
Michael Stenta
7f9ae00282 Allow modules to put quick forms in [module].farm_quick.inc. 2018-03-02 14:34:19 -05:00
Michael Stenta
c5cfe2c768 Simplify farm_quick_menu() and add comments to farm_quick.api.php. 2018-03-02 14:34:19 -05:00
Michael Stenta
a6630c960f Add autocomplete path for selecting farm asset entities. 2018-03-02 12:30:53 -05:00
Michael Stenta
c0bf169207 When a birth log is saved, sync the date of birth and mother reference to the children assets. 2018-03-02 12:20:43 -05:00
Michael Stenta
3edaa183de Show birth logs on mother assets. 2018-03-02 12:20:43 -05:00
Michael Stenta
36e4431fff Add the ability to specify log View asset argument position. 2018-03-02 12:20:43 -05:00
Michael Stenta
065d14a0d3 In birth log forms, farm_asset query parameter should populate field_farm_mother, not field_farm_asset. 2018-03-02 12:20:43 -05:00
Michael Stenta
ffb5a8fd10 Allow modules to alter information about fields that should be prepopulated in log forms. 2018-03-02 12:20:43 -05:00
Michael Stenta
c27f2ec10f Pass log type into hook_farm_log_prepopulate_reference_fields(). 2018-03-02 12:20:43 -05:00
Michael Stenta
2550e19f8d Add hook_farm_log_prepopulate_reference_fields() to allow modules to provide information about fields that can be prepopulated in log forms. 2018-03-02 12:20:43 -05:00
Michael Stenta
a0e93dac4e Add/alter feeds field mappings on birth logs. 2018-03-02 12:20:43 -05:00
Michael Stenta
fadfb29a1c Prepopulate birth logs with the "Animals" category. 2018-03-02 12:20:43 -05:00
Michael Stenta
2c439c8184 Add UI entity support for birth logs. 2018-03-02 12:20:43 -05:00
Michael Stenta
a1eef3e309 Add a View of Birth logs. 2018-03-02 12:20:43 -05:00
Michael Stenta
1a1c4de007 Add "Mother" asset reference field to Birth logs. 2018-03-02 12:20:43 -05:00
Michael Stenta
e38a4ebaf9 Add new "Birth" log type to the Livestock module. 2018-03-02 12:20:43 -05:00
Michael Stenta
595258eef0 Add a simple module for "quick forms" in farmOS, with an API hook that other modules can use to add forms. 2018-03-02 12:16:15 -05:00
Michael Stenta
ce20af68b4 Fix PHP warning when saving a new asset with group membership. 2018-03-01 10:41:23 -05:00
Michael Stenta
27d11fed66 Add Riot.im chat room link in /farm/help. 2018-03-01 10:02:55 -05:00
Michael Stenta
103a56c7ac Fix #56: Hiearchy Change URL doesnt work for subdirectory installation 2018-03-01 09:59:24 -05:00
Michael Stenta
4dc82b53dd Rename "Plan" to "Upcoming tasks". 2018-02-26 22:35:29 -05:00
Michael Stenta
e7ae4e442d Add "Delete" VBO button to "Plan" and "Late tasks" blocks. 2018-02-26 22:35:21 -05:00
Michael Stenta
364c4990c4 Add "Archive" and "Unarchive" VBO buttons to all asset Views. 2018-02-26 22:18:53 -05:00
Michael Stenta
5b721e7cdf Add "Archive" and "Unarchive" actions for farm asset entities. 2018-02-26 22:18:53 -05:00
Michael Stenta
001a673ee7 Wrap asset cluster maps in a fieldset, collapsed by default. 2018-02-26 21:27:22 -05:00
Michael Stenta
4e20f1c843 Add the ability to wrap the map in a collapsible fieldset. 2018-02-26 21:27:22 -05:00
Michael Stenta
1006a3054b Add a farm_map_build() function, for building farm maps. 2018-02-26 21:27:22 -05:00
Michael Stenta
09fed34247 Reorganize log field groups into "Assets" and "Location". 2018-02-21 16:32:02 -05:00
Michael Stenta
10f3abced8 Move the planting "Plan" fieldset to the bottom and collapse it by default. 2018-02-14 09:52:03 -05:00
Michael Stenta
50cfd10802 Fix activity log quantity field display. 2018-02-07 12:34:02 -05:00
Michael Stenta
3ef9279970 Look up and display "from" areas when displaying "Movement to" field on movement logs. 2018-02-07 12:10:00 -05:00
Michael Stenta
3a88d747fa Remove step in farm areas tour that points out the "from" field. 2018-02-07 12:10:00 -05:00
Michael Stenta
cb3b3a5bab Update older update hooks to also remove references to the "from" field. 2018-02-07 12:10:00 -05:00
Michael Stenta
199a8fcd82 Add an update hook to delete the field data from the database. 2018-02-07 12:10:00 -05:00
Michael Stenta
605a98ad52 Take out the code for auto-populating the "from" field. 2018-02-02 15:40:56 -05:00
Michael Stenta
ed935a31f0 Remove field_farm_move_from from Views. 2018-02-02 15:40:52 -05:00
Michael Stenta
24d6691502 Remove field_farm_move_from field base and instance config. 2018-02-02 14:59:17 -05:00
Michael Stenta
b93e12c63c Add Quantity field to Activity logs. 2018-02-01 17:56:16 -05:00
Michael Stenta
8acb1fe1f5 Add undeclared dependencies. 2018-02-01 17:23:10 -05:00
Michael Stenta
18721e5e9a Initial commit of Quantity Report generator: View for slicing, dicing, and exporting quantity measurement data. 2018-01-31 16:55:11 -05:00
Michael Stenta
2bb8ae303f Update default asset Feeds importer mapping and tamper plugins. 2018-01-31 16:20:26 -05:00
Michael Stenta
5ed944d1bf Replace 'active' Feeds importer target with 'archived'. If set to TRUE, use current timestamp. 2018-01-31 16:20:06 -05:00
Michael Stenta
4c791db2a4 Update farm_group functions to use 'archived' instead of 'active'. 2018-01-31 16:03:48 -05:00
Michael Stenta
979b96d4b1 Update Views asset reverse entity reference relationship handler to use 'archived' property instead of 'active'. 2018-01-31 10:27:25 -05:00
Michael Stenta
559fa040b7 Misc Views updates. 2018-01-31 09:36:51 -05:00
Michael Stenta
ca0ad53caf Update all Views to use new 'archived' field/filter/sort. 2018-01-31 09:36:51 -05:00
Michael Stenta
5062e2bc6e Add a special Views filter for asset 'archived' property that treats it as a boolean value. 2018-01-30 18:05:45 -05:00
Michael Stenta
e4624b1c52 Update asset view page. Show archived date if it exists. Show nothing if the asset is not archived. 2018-01-30 17:10:59 -05:00
Michael Stenta
0656f0fce2 Update asset edit form. Display archived date if it exists. 2018-01-30 17:10:59 -05:00
Michael Stenta
eb02842dd1 Simplify farm asset form submit actions. 2018-01-30 17:10:59 -05:00
Michael Stenta
5a9d7b1a22 Update hook_entity_property_info_alter() to define 'archived' as a date property. 2018-01-30 17:10:59 -05:00
Michael Stenta
42b959ed58 Replace 'active' property with 'archived' in FarmAsset::create(). 2018-01-30 17:10:59 -05:00
Michael Stenta
e5899b8073 Implement hook_update_N() to update existing sites. If 'active' is 0, copy the 'changed' timestamp to 'archived'. 2018-01-30 17:10:59 -05:00
Michael Stenta
3c8d641e99 Change 'active' to 'archived' in farm_asset_schema() (regular integer field like the existing 'created' and 'changed' fields). Null value represents active asset. 2018-01-30 17:10:37 -05:00
Michael Stenta
8ec7233b03 Add the areas layer group to the asset cluster maps. 2018-01-29 16:21:26 -05:00
Michael Stenta
17f4fd2d07 Implement hook_farm_area_link_alter() to add a count of group members. 2018-01-29 15:24:45 -05:00
Michael Stenta
06438909fc Provide an alter hook for the area links generated by the Farm UI module. 2018-01-29 15:24:38 -05:00