Skip to content

Commit

Permalink
Merge pull request #1324 from IFRCGo/feature/riskmodule-terms-conditions
Browse files Browse the repository at this point in the history
Add Terms And Conditions Page
  • Loading branch information
samshara authored Oct 18, 2024
2 parents 5c71526 + fd54657 commit a69cd36
Show file tree
Hide file tree
Showing 9 changed files with 848 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-grapes-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"go-web-app": patch
---

Add Terms and Conditions page
13 changes: 13 additions & 0 deletions app/src/App/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,18 @@ const accountDetails = customWrapRoute({
},
});

const termsAndConditions = customWrapRoute({
parent: rootLayout,
path: 'terms-and-conditions',
component: {
render: () => import('#views/TermsAndConditions'),
props: {},
},
context: {
title: 'Terms And Conditions',
visibility: 'anything',
},
});
type DefaultAccountMyFormsChild = 'field-report';
const accountMyFormsLayout = customWrapRoute({
parent: accountLayout,
Expand Down Expand Up @@ -1258,6 +1270,7 @@ const wrappedRoutes = {
perPrioritizationForm,
perWorkPlanForm,
threeWProjectDetail,
termsAndConditions,
// TODO: unhide operational learning
// operationalLearning,
...regionRoutes,
Expand Down
3 changes: 1 addition & 2 deletions app/src/components/GlobalFooter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ function GlobalFooter(props: Props) {
{strings.cookiePolicy}
</Link>
<Link
// FIXME: Add termsAndConditions link after the page is created
to="cookiePolicy"
to="termsAndConditions"
>
{strings.termsAndConditions}
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ function GenerateMontandonTokenModal(props: Props) {
{
termsLink: (
<Link
external
href="https://docs.google.com/spreadsheets/d/1kQZQmWk8W4tyE3fhi54Oc2Q-TiLJVUj0/"
to="termsAndConditions"
withLinkIcon
withUnderline
>
Expand Down
106 changes: 106 additions & 0 deletions app/src/views/TermsAndConditions/ConditionsModal/i18n.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"namespace": "conditionsModal",
"strings": {
"hereConditionTitle": "Title",
"srcDbCodeDescriptionOne": "EMDAT",
"srcDbLabDescriptionOne": "Emergency Events Database",
"srcOrgCodeDescriptionOne": "CRED",
"srcOrgLabDescriptionOne": "Centre for Research on the Epidemiology of Disasters (CRED) University of Louvain",
"srcOrgtypeCodeDescriptionOne": "orgtypeacad",
"srcDbCodeDescriptionTwo": "Desinventar",
"srcDbLabDescriptionTwo": "Disaster Inventory System (Desinventar)",
"srcOrgCodeDescriptionTwo": "UNDRR",
"srcOrgLabDescriptionTwo": "United Nations Disaster Risk Reduction (UNDRR)",
"srcOrgtypeCodeDescriptionTwo": "orgtypegov",
"srcDbCodeDescriptionThree": "UNO_damass",
"srcDbLabDescriptionThree": "UNOSAT Satellite Image-based Damage Assessment Data",
"srcOrgCodeDescriptionThree": "UNOSAT",
"srcOrgLabDescriptionThree": "United Nations Satellite Centre (UNOSAT)",
"srcOrgtypeCodeDescriptionThree": "orgtypeun",
"srcDbCodeDescriptionFour": "COP_damass",
"srcDbLabDescriptionFour": "Copernicus EMS Satellite Image-based Damage Assessment Data",
"srcOrgCodeDescriptionFour": "COPERNICUS",
"srcOrgLabDescriptionFour": "Copernicus Emergency Management Services (EMS)",
"srcOrgtypeCodeDescriptionFour": "orgtyperio",
"srcDbCodeDescriptionFive": "GO-EA",
"srcDbLabDescriptionFive": "IFRC Emergency Appeals (EA)",
"srcOrgCodeDescriptionFive": "IFRC",
"srcOrgLabDescriptionFive": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionFive": "orgtypepengo",
"srcDbCodeDescriptionSix": "GO-DREF",
"srcDbLabDescriptionSix": "IFRC Disaster Response Emergency Funding (DREF)",
"srcOrgCodeDescriptionSix": "IFRC",
"srcOrgLabDescriptionSix": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionSix": "orgtypepengo",
"srcDbCodeDescriptionSeven": "GO-FBA",
"srcDbLabDescriptionSeven": "IFRC Forecast Based Action",
"srcOrgCodeDescriptionSeven": "IFRC",
"srcOrgLabDescriptionSeven": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionSeven": "orgtypepengo",
"srcDbCodeDescriptionEight": "GO-EAP",
"srcDbLabDescriptionEight": "IFRC Emergency Action Protocol Funding (EAP)",
"srcOrgCodeDescriptionEight": "IFRC",
"srcOrgLabDescriptionEight": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionEight": "orgtypepengo",
"srcDbCodeDescriptionNine": "GO-sEAP",
"srcDbLabDescriptionNine": "IFRC simplified Emergency Action Protocol Funding (sEAP)",
"srcOrgCodeDescriptionNine": "IFRC",
"srcOrgLabDescriptionNine": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionNine": "orgtypepengo",
"srcDbCodeDescriptionTen": "GO-AA",
"srcDbLabDescriptionTen": "IFRC Anticipatory Actions(AA)",
"srcOrgCodeDescriptionTen": "IFRC",
"srcOrgLabDescriptionTen": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionTen": "orgtypepengo",
"srcDbCodeDescriptionEleven": "GO-iDREF",
"srcDbLabDescriptionEleven": "IFRC Imminent Disaster response Emergency Funding(iDREF)",
"srcOrgCodeDescriptionEleven": "IFRC",
"srcOrgLabDescriptionEleven": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionEleven": "orgtypepengo",
"srcDbCodeDescriptionTwelve": "GO-FR",
"srcDbLabDescriptionTwelve": "IFRC Field Reports (FR)",
"srcOrgCodeDescriptionTwelve": "IFRC",
"srcOrgLabDescriptionTwelve": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionTwelve": "orgtypepengo",
"srcDbCodeDescriptionThirteen": "GIDD",
"srcDbLabDescriptionThirteen": "Global Internal Displacement Database (GIDD)",
"srcOrgCodeDescriptionThirteen": "IDMC",
"srcOrgLabDescriptionThirteen": "Internal Monitoring Displacement Centre (IDMC)",
"srcOrgtypeCodeDescriptionThirteen": "orgtypepengo",
"srcDbCodeDescriptionFourteen": "GDACS",
"srcDbLabDescriptionFourteen": "Global Disaster Alert and Coordination System (GDACS)",
"srcOrgCodeDescriptionFourteen": "EC-JRC",
"srcOrgLabDescriptionFourteen": "European Commission - Joint Research Center",
"srcOrgtypeCodeDescriptionFourteen": "orgtyperio",
"srcDbCodeDescriptionFifteen": "GLIDE",
"srcDbLabDescriptionFifteen": "Global Identifier numbers (GLIDE)",
"srcOrgCodeDescriptionFifteen": "ADRC",
"srcOrgLabDescriptionFifteen": "Asian Disaster Reduction Center (ADRC)",
"srcOrgtypeCodeDescriptionFifteen": "orgtyperio",
"srcDbCodeDescriptionSixteen": "GO-Maps",
"srcDbLabDescriptionSixteen": "IFRC-GO ADM-0 Maps",
"srcOrgCodeDescriptionSixteen": "IFRC",
"srcOrgLabDescriptionSixteen": "International Federation of Red Cross Red Crescent Societies (IFRC)",
"srcOrgtypeCodeDescriptionSixteen": "orgtypepengo",
"srcDbCodeDescriptionSeventeen": "Atlas",
"srcDbLabDescriptionSeventeen": "Atlas Earthquake ShakeMap Catalog",
"srcOrgCodeDescriptionSeventeen": "USGS",
"srcOrgLabDescriptionSeventeen": "United States Geological Survey (USGS)",
"srcOrgtypeCodeDescriptionSeventeen": "orgtypegov",
"srcDbCodeDescriptionEighteen": "GAUL",
"srcDbLabDescriptionEighteen": "Global Administrative Unit Layers (GAUL)",
"srcOrgCodeDescriptionEighteen": "FAO",
"srcOrgLabDescriptionEighteen": "Food and Agriculture Organization",
"srcOrgtypeCodeDescriptionEighteen": "orgtypegov",
"srcDbCodeDescriptionNineteen": "GovDes",
"srcDbLabDescriptionNineteen": "Official Government or UN ADM Boundaries",
"srcOrgCodeDescriptionNineteen": "UNDRR",
"srcOrgLabDescriptionNineteen": "United Nations Disaster Risk Reduction (UNDRR)",
"srcOrgtypeCodeDescriptionNineteen": "orgtypegov",
"srcDbCodeDescriptionTwenty": "DFO",
"srcDbLabDescriptionTwenty": "Dartmouth Flood Observatory (DFO)",
"srcOrgCodeDescriptionTwenty": "UniColumbia",
"srcOrgLabDescriptionTwenty": "University of Columbia",
"srcOrgtypeCodeDescriptionTwenty": "orgtypeacad"
}
}
Loading

0 comments on commit a69cd36

Please sign in to comment.