Skip to content

Commit

Permalink
[TM-911] Display tree and seeding totals on the PPC site report page.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Jun 7, 2024
1 parent 27fee21 commit 5ab8251
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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,23 @@ const SiteReportDetailPage = () => {
<LongTextField title={t("Public Narrative")}>{siteReport.public_narrative}</LongTextField>
</When>
<GenericField label={t("Trees Planted")}>
<When condition={isPPC}>
<TextField
className="mt-2"
label={t("Total Trees Planted")}
value={siteReport.total_trees_planted_count}
/>
</When>
<TreeSpeciesTable modelName="site-report" modelUUID={siteReportUUID} />
</GenericField>
<GenericField label={t("Direct Seeding")}>
<When condition={isPPC}>
<TextField
className="mt-2"
label={t("Total Direct Seedings")}
value={siteReport.total_seeds_planted_count}
/>
</When>
<SeedingsTable modelName="site-report" modelUUID={siteReportUUID} type="count" />
</GenericField>
<GenericField label={t("Disturbances")}>
Expand Down

0 comments on commit 5ab8251

Please sign in to comment.