-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2998 from AtlasOfLivingAustralia/feature/issue2997
add RDP declarations #2997
- Loading branch information
Showing
7 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<h4>${heading}</h4> | ||
<p>${attachmentText}</p> | ||
<p>${attachmentText}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var rdpDeclarationText = [ | ||
{ | ||
"key":"meritfielddata.rdp.report.declaration", | ||
"value":'1. I declare that I am legally authorised to submit this report on behalf of the Regional Delivery Partner pursuant to the Deed of Standing Offer (Deed) between the Regional Delivery Partner and the Commonwealth. \r\n' + | ||
'2. I understand that, under the Deed, all information I submit may constitute Contract Material.\r\n' + | ||
'3. I understand that, through the Deed, the Commonwealth is licensed to use, reproduce, modify, adapt, communicate, publish, broadcast and distribute the Contract Material on the terms set out in the Deed.\r\n' + | ||
'4. I declare that the information I submit is complete and correct and not false or misleading. I understand that it is an offence under the Criminal Code Act 1995 (Cth) to provide false or misleading information.' | ||
} | ||
] | ||
|
||
for (var i=0; i<rdpDeclarationText.length; i++) { | ||
var setting = { | ||
key: rdpDeclarationText[i].key, | ||
value: rdpDeclarationText[i].value, | ||
dateCreated: ISODate(), | ||
lastUpdated: ISODate() | ||
}; | ||
if (db.setting.findOne({key: setting.key})) { | ||
print("Inserting " + setting.key) | ||
db.setting.replaceOne({key: setting.key}, setting); | ||
} else { | ||
print("Updating " + setting.key) | ||
db.setting.insertOne(setting); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters