Problem/Motivation

In farmOS 1.x we had a farm_report module: https://github.com/farmOS/farmOS/tree/7.x-1.x/modules/farm/farm_report

It was quite simple, simply providing a menu and page callback reading "Select a report from the menu above." I think we added it for the animal weight report and modified the existing quantity reports #2941014: Quantity report generator to use it: https://github.com/farmOS/farmOS/commit/f13327f584735991d8a0dd0b689648c9...

Shall we create the equivalent in 2.x? This would at least be used by #3220601: Animal weight report

The Reports menu tab is currently displayed on the dashboard next to quick forms, but we do not have any menu tabs in the 2.x dashboard. It could be added to the menu instead.

Steps to reproduce

N/A

Proposed resolution

N/A

Remaining tasks

Decide if we need a farm_report module.

User interface changes

New Reports menu and/or dashboard tab.

API changes

N/A

Data model changes

N/A

Issue fork farm-3240350

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paul121 created an issue. See original summary.

m.stenta’s picture

Assigned: Unassigned » m.stenta

Yes thanks for creating this issue @paul121! I was actually planning on starting something for the NFA project. I can take a quick pass at this right now for your review...

m.stenta’s picture

Status: Active » Needs review

Very simple first pass: adds a new /report path that displays an index of menu items under it. Copied and modified from the farm_import module. Also adds a "Reports" icon to the Gin toolbar, using the reports.svg icon provided by Gin.

paul121’s picture

Looks great!

m.stenta’s picture

Status: Needs review » Fixed

Merged!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.