Skip to content

Commit

Permalink
commit updates #3290
Browse files Browse the repository at this point in the history
  • Loading branch information
salomon-j committed Aug 7, 2024
1 parent c09079f commit b97f0a1
Showing 1 changed file with 134 additions and 39 deletions.
173 changes: 134 additions & 39 deletions forms/nht/rdpAnnualReport.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,26 +163,58 @@
],
"validate": "required,maxSize[1250]"
},

{
"name": "communicationsDuringPeriod",
"name": "communicationMaterialByType",
"dataType": "list",
"allowRowDelete": false,
"columns": [
{
"name": "communicationDetails",
"dataType": "list",
"columns": [
{
"dataType": "stringList",
"name": "communicationMaterialType",
"constraints": [
"Advertising",
"Extension materials",
"Flyers and brochures",
"Media release",
"Newsletters",
"Newspaper articles",
"Publishing reports",
"Social media",
"Other"
]
},
{
"dataType": "text",
"name": "communicationTitle"
},
{
"dataType": "text",
"name": "communicationPurpose"
},
{
"dataType": "date",
"name": "publishedDate"
},
{
"dataType": "text",
"name": "link"
}
]
},
{
"dataType": "text",
"name": "yesCommunicationsMaterial",
"readonly": true
"name": "communicationMaterialType"
},
{
"dataType": "number",
"name": "numberCommunicationMaterialsType"
}
]
},
{
"name": "numberOfCommunicationsMaterialsPublished",
"dataType": "number",
"decimalPlaces": 0,
"computed": {
"expression": "count(communicationsDuringPeriod, \"yesCommunicationsMaterial\")"
}
},
{
"name": "engagementsByType",
"dataType": "list",
Expand Down Expand Up @@ -511,39 +543,75 @@
"items": [
{
"type": "literal",
"source": "<h4>Communications</h4>"
"source": "<h3>Communications</h3>"
}
]
},
{
"type": "row",
"type": "repeat",
"source": "communicationMaterialByType",
"items": [
{
"type": "col",
"type": "row",
"items": [
{
"type": "text",
"source": "communicationMaterialType",
"preLabel": "Type of Communications Material",
"readonly": true
},
{
"type": "number",
"source": "numberOfCommunicationsMaterialsPublished",
"preLabel": "Total number of communications materials published during the year"
"source": "numberCommunicationMaterialsType",
"preLabel": "Number of Communication Materials of this type",
"readonly": true
}
]
}
]
},
{
"type": "table",
"title": "<b>Communications material published during the year</b>",
"source": "communicationsDuringPeriod",
"userAddedRows": false,
"disableTableDownload": true,
"disableTableUpload": true,
"columns": [
},
{
"type": "text",
"source": "yesCommunicationsMaterial",
"title": "Communications material",
"readonly": true,
"width": "50%"
"type": "table",
"source": "communicationDetails",
"title": "<b>Communications material published during the year</b>",
"userAddedRows": false,
"disableTableUpload": true,
"columns": [
{
"source": "communicationMaterialType",
"type": "selectOne",
"width": "15%",
"title": "Type of Communications Material",
"readonly": true
},
{
"source": "communicationTitle",
"type": "text",
"width": "25%",
"title": "Title",
"readonly": true
},
{
"type": "textarea",
"source": "communicationPurpose",
"width": "35%",
"title": "Purpose",
"rows": 4,
"readonly": true
},
{
"title": "Date published",
"source": "publishedDate",
"type": "date",
"width": "15%",
"readonly": true
},
{
"source": "link",
"type": "text",
"width": "20%",
"title": "URL/link",
"readonly": true
}
]
}
]
},
Expand All @@ -552,7 +620,7 @@
"items": [
{
"type": "literal",
"source": "<h4>Engagement activities or events, to the Community, which are directly relevant to delivery of Project</h4>"
"source": "<h3>Engagement activities or events, to the Community, which are directly relevant to delivery of Project</h3>"
}
]
},
Expand Down Expand Up @@ -642,7 +710,7 @@
"items": [
{
"type": "literal",
"source": "<h4>Coordinate Projects and MERI</h4>"
"source": "<h3>Coordinate Projects and MERI</h3>"
}
]
},
Expand Down Expand Up @@ -839,12 +907,25 @@
]
},
"merge": {
"communicationsDuringPeriod": {
"communicationMaterialByType": {
"keys": [
"yesCommunicationsMaterial"
"communicationMaterialType"
],
"addUnmatchedNewRows": true,
"deleteUnmatchedExistingRows": true
"deleteUnmatchedExistingRows": true,
"communicationDetails": {
"keys": [
"communicationTitle",
"communicationPurpose",
"publishedDate",
"link"
],
"addUnmatchedNewRows": true,
"deleteUnmatchedExistingRows": true
},
"numberCommunicationMaterialsType": {
"replaceExisting": true
}
},
"engagementsByType": {
"keys": [
Expand Down Expand Up @@ -889,7 +970,21 @@
"mapping": [
{
"source-path": "e7701823-e534-414e-80f5-86f9eecef50c",
"target": "communicationsDuringPeriod"
"target": "communicationMaterialByType",
"mapping": [
{
"source-path": "group",
"target": "communicationMaterialType"
},
{
"source-path": "count",
"target": "numberCommunicationMaterialsType"
},
{
"source-path": "result",
"target": "communicationDetails"
}
]
},
{
"source-path": "3117521e-a801-45ef-838f-519c31ca59a2",
Expand Down

0 comments on commit b97f0a1

Please sign in to comment.