Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TM-754] Display tree and seeding totals on the site report page. #239

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/pages/reports/site-report/[uuid].page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,19 @@ const SiteReportDetailPage = () => {
<LongTextField title={t("Public Narrative")}>{siteReport.public_narrative}</LongTextField>
</When>
<GenericField label={t("Trees Planted")}>
<TextField
className="mt-2"
label={t("Total Trees Planted")}
value={siteReport.total_trees_planted_count}
/>
<TreeSpeciesTable modelName="site-report" modelUUID={siteReportUUID} />
</GenericField>
<GenericField label={t("Direct Seeding")}>
<TextField
className="mt-2"
label={t("Total Direct Seedings")}
value={siteReport.total_seeds_planted_count}
/>
<SeedingsTable modelName="site-report" modelUUID={siteReportUUID} type="count" />
</GenericField>
<GenericField label={t("Disturbances")}>
Expand Down