-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,232 additions
and
11 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
35 changes: 35 additions & 0 deletions
35
app/db/migrations/versions/~2024_10_04_1727-7c9fef251eca_.py
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,35 @@ | ||
"""empty message | ||
Revision ID: 7c9fef251eca | ||
Revises: c3dab74013f1 | ||
Create Date: 2024-10-04 17:27:35.183466 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "7c9fef251eca" | ||
down_revision = "c3dab74013f1" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("page", schema=None) as batch_op: | ||
batch_op.add_column( | ||
sa.Column("section", postgresql.JSON(none_as_null=True, astext_type=sa.Text()), nullable=True) | ||
) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table("page", schema=None) as batch_op: | ||
batch_op.drop_column("section") | ||
|
||
# ### end Alembic commands ### |
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
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 +1,181 @@ | ||
{"metadata":{},"startPage":"/lead-contact-details","pages":[{"title":"Lead contact details","path":"/lead-contact-details","components":[{"name":"rILgUu","options":{},"type":"Html","content":"<p class=\"govuk-body\">They will receive all the information about this application.</p>","schema":{}},{"name":"CgCZmL","options":{},"type":"TextField","title":"Lead contact full name","schema":{}},{"name":"XHFsXs","options":{},"type":"TextField","title":"Lead contact job title","schema":{}},{"name":"qSOFAl","options":{},"type":"EmailAddressField","title":"Lead contact email address","schema":{}},{"name":"RyHYTL","options":{},"type":"NumberField","title":"Lead contact telephone number","schema":{}}],"next":[{"path":"/is-the-lead-contact-the-same-person-as-the-authorised-signatory"}],"section":"roYQzW"},{"path":"/is-the-lead-contact-the-same-person-as-the-authorised-signatory","title":"Is the lead contact the same person as the authorised signatory?","components":[{"name":"SDJIoS","options":{"exposeToContext":true},"type":"YesNoField","title":"Is the lead contact the same person as the authorised signatory?","hint":"<p class=\"govuk-body\">An authorised signatory:</p>\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>is allowed to act on behalf of the organisation</li>\n <li>will sign the grant funding agreement if your application is successful</li>\n</ul>","values":{"type":"listRef"},"schema":{}}],"next":[{"path":"/summary"},{"path":"/authorised-signatory-details","condition":"gbOJSj"}],"section":"roYQzW"},{"title":"Summary","path":"/summary","controller":"./pages/summary.js","components":[],"next":[],"section":"roYQzW"},{"path":"/authorised-signatory-details","title":"Authorised signatory details","components":[{"name":"JTDVSR","options":{},"type":"TextField","title":"Authorised signatory full name","schema":{}},{"name":"yafapW","options":{},"type":"TextField","title":"Authorised signatory job title","schema":{}},{"type":"EmailAddressField","title":"Authorised signatory email address","name":"authorised-signatory-email","nameHasError":false,"options":{"exposeToContext":false},"schema":{}},{"name":"CXrlUt","options":{},"type":"TelephoneNumberField","title":"Authorised signatory telephone number","schema":{}}],"next":[{"path":"/summary"}],"section":"roYQzW"}],"lists":[],"sections":[{"name":"roYQzW","title":"Contact details","hideTitle":false}],"conditions":[{"displayName":"Authorised signatory different from lead contact","name":"gbOJSj","value":{"name":"Authorised signatory different from lead contact","conditions":[{"field":{"name":"SDJIoS","type":"YesNoField","display":"Is the lead contact the same person as the authorised signatory?"},"operator":"is","value":{"type":"Value","value":"false","display":"false"}}]}}],"fees":[],"outputs":[],"version":2,"skipSummary":false,"feeOptions":{"allowSubmissionWithoutPayment":true,"maxAttempts":3,"showPaymentSkippedWarningPage":false},"markAsComplete":false,"name":"Contact details template (September 2024)","feedback":{"feedbackForm":false,"url":""},"phaseBanner":{}} | ||
{ | ||
"metadata": {}, | ||
"startPage": "/lead-contact-details", | ||
"pages": [ | ||
{ | ||
"title": "Lead contact details", | ||
"path": "/lead-contact-details", | ||
"components": [ | ||
{ | ||
"name": "rILgUu", | ||
"options": {}, | ||
"type": "Html", | ||
"content": "<p class=\"govuk-body\">They will receive all the information about this application.</p>", | ||
"schema": {} | ||
}, | ||
{ | ||
"name": "CgCZmL", | ||
"options": {}, | ||
"type": "TextField", | ||
"title": "Lead contact full name", | ||
"schema": {} | ||
}, | ||
{ | ||
"name": "XHFsXs", | ||
"options": {}, | ||
"type": "TextField", | ||
"title": "Lead contact job title", | ||
"schema": {} | ||
}, | ||
{ | ||
"name": "qSOFAl", | ||
"options": {}, | ||
"type": "EmailAddressField", | ||
"title": "Lead contact email address", | ||
"schema": {} | ||
}, | ||
{ | ||
"name": "RyHYTL", | ||
"options": {}, | ||
"type": "NumberField", | ||
"title": "Lead contact telephone number", | ||
"schema": {} | ||
} | ||
], | ||
"next": [ | ||
{ | ||
"path": "/is-the-lead-contact-the-same-person-as-the-authorised-signatory" | ||
} | ||
], | ||
"section": "roYQzW" | ||
}, | ||
{ | ||
"path": "/is-the-lead-contact-the-same-person-as-the-authorised-signatory", | ||
"title": "Is the lead contact the same person as the authorised signatory?", | ||
"components": [ | ||
{ | ||
"name": "SDJIoS", | ||
"options": { | ||
"exposeToContext": true | ||
}, | ||
"type": "YesNoField", | ||
"title": "Is the lead contact the same person as the authorised signatory?", | ||
"hint": "<p class=\"govuk-body\">An authorised signatory:</p>\n<ul class=\"govuk-list govuk-list--bullet\">\n <li>is allowed to act on behalf of the organisation</li>\n <li>will sign the grant funding agreement if your application is successful</li>\n</ul>", | ||
"values": { | ||
"type": "listRef" | ||
}, | ||
"schema": {} | ||
} | ||
], | ||
"next": [ | ||
{ | ||
"path": "/summary" | ||
}, | ||
{ | ||
"path": "/authorised-signatory-details", | ||
"condition": "gbOJSj" | ||
} | ||
], | ||
"section": "roYQzW" | ||
}, | ||
{ | ||
"title": "Summary", | ||
"path": "/summary", | ||
"controller": "./pages/summary.js", | ||
"components": [], | ||
"next": [], | ||
"section": "roYQzW" | ||
}, | ||
{ | ||
"path": "/authorised-signatory-details", | ||
"title": "Authorised signatory details", | ||
"components": [ | ||
{ | ||
"name": "JTDVSR", | ||
"options": {}, | ||
"type": "TextField", | ||
"title": "Authorised signatory full name", | ||
"schema": {} | ||
}, | ||
{ | ||
"name": "yafapW", | ||
"options": {}, | ||
"type": "TextField", | ||
"title": "Authorised signatory job title", | ||
"schema": {} | ||
}, | ||
{ | ||
"type": "EmailAddressField", | ||
"title": "Authorised signatory email address", | ||
"name": "authorised-signatory-email", | ||
"nameHasError": false, | ||
"options": { | ||
"exposeToContext": false | ||
}, | ||
"schema": {} | ||
}, | ||
{ | ||
"name": "CXrlUt", | ||
"options": {}, | ||
"type": "TelephoneNumberField", | ||
"title": "Authorised signatory telephone number", | ||
"schema": {} | ||
} | ||
], | ||
"next": [ | ||
{ | ||
"path": "/summary" | ||
} | ||
], | ||
"section": "roYQzW" | ||
} | ||
], | ||
"lists": [], | ||
"sections": [ | ||
{ | ||
"name": "roYQzW", | ||
"title": "Contact details", | ||
"hideTitle": false | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"displayName": "Authorised signatory different from lead contact", | ||
"name": "gbOJSj", | ||
"value": { | ||
"name": "Authorised signatory different from lead contact", | ||
"conditions": [ | ||
{ | ||
"field": { | ||
"name": "SDJIoS", | ||
"type": "YesNoField", | ||
"display": "Is the lead contact the same person as the authorised signatory?" | ||
}, | ||
"operator": "is", | ||
"value": { | ||
"type": "Value", | ||
"value": "false", | ||
"display": "false" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"fees": [], | ||
"outputs": [], | ||
"version": 2, | ||
"skipSummary": false, | ||
"feeOptions": { | ||
"allowSubmissionWithoutPayment": true, | ||
"maxAttempts": 3, | ||
"showPaymentSkippedWarningPage": false | ||
}, | ||
"markAsComplete": false, | ||
"name": "Contact details template (September 2024)", | ||
"feedback": { | ||
"feedbackForm": false, | ||
"url": "" | ||
}, | ||
"phaseBanner": {} | ||
} |
Oops, something went wrong.