Skip to content

Commit

Permalink
[CCAP-488] - scaffold provider type (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
analoo authored Nov 19, 2024
1 parent c644a90 commit 01255b8
Show file tree
Hide file tree
Showing 13 changed files with 275 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public class EnableProviderRegistration implements Condition {

@Override
public Boolean run(Submission submission) {
return false && enableProviderRegistration;
return enableProviderRegistration;
}
}
2 changes: 1 addition & 1 deletion src/main/resources/application-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ management:
include: '*'
il-gcc:
show-no-provider-flow: ${SHOW_NO_PROVIDER_FLOW:false}
allow-provider-registration-flow: ${ALLOW-PROVIDER-REGISTRATION-FLOW:false}
allow-provider-registration-flow: ${ALLOW_PROVIDER_REGISTRATION_FLOW:false}
dts:
processing-org: '4c-ccap-apps'
2 changes: 1 addition & 1 deletion src/main/resources/application-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ management:
include: '*'
il-gcc:
show-no-provider-flow: ${SHOW_NO_PROVIDER_FLOW:true}
allow-provider-registration-flow: ${ALLOW-PROVIDER-REGISTRATION-FLOW:true}
allow-provider-registration-flow: ${ALLOW_PROVIDER_REGISTRATION_FLOW:false}
dts:
processing-org: '4c-ccap-apps-testing'
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ il-gcc:
generate-short-links: ${GENERATE_SHORT_LINKS_FLAG:false}
validate-provider-id: ${VALIDATE_PROVIDER_ID_FLAG:true}
show-no-provider-flow: ${SHOW_NO_PROVIDER_FLOW:true}
allow-provider-registration-flow: ${ALLOW-PROVIDER-REGISTRATION-FLOW:true}
allow-provider-registration-flow: ${ALLOW_PROVIDER_REGISTRATION_FLOW:false}
dts:
url: ${DOCUMENT_TRANSFER_SERVICE_URL}
consumer-id: ${DOCUMENT_TRANSFER_SERVICE_CONSUMER_ID}
Expand Down
50 changes: 47 additions & 3 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,17 @@ flow:
condition: EnableProviderRegistration
- name: ccap-registration
paid-by-ccap:
condition: EnableProviderRegistration
nextScreens:
- name: provider-number
provider-number:
nextScreens: null
condition: EnableProviderRegistration
nextScreens:
- name: confirmation-code
registration-start:
nextScreens: null
condition: EnableProviderRegistration
nextScreens:
- name: registration-getting-started
ccap-registration:
crossFieldValidationAction: ValidateProviderNumber
beforeSaveAction: SaveApplicationId
Expand All @@ -544,9 +549,11 @@ flow:
condition: IsConfirmationCodeActive
- name: submit-start
registration-family-response-intro:
condition: EnableProviderRegistration
nextScreens:
- name: confirmation-code
confirmation-code:
condition: EnableProviderRegistration
nextScreens:
- name: response
response:
Expand All @@ -571,6 +578,7 @@ flow:
condition: EnableProviderRegistration
- name: confirm-address
service-address:
condition: EnableProviderRegistration
nextScreens:
- name: confirm-address
confirm-address:
Expand All @@ -585,7 +593,43 @@ flow:
- name: submit-complete-final
submit-complete-final:
beforeDisplayAction: RemoveDummySubmissionForDev
nextScreens: null
nextScreens:
- name: registration-getting-started
condition: EnableProviderRegistration
- name: submit-complete-final
registration-getting-started:
condition: EnableProviderRegistration
nextScreens:
- name: registration-provider-care-intro
registration-provider-care-intro:
condition: EnableProviderRegistration
nextScreens:
- name: registration-licensing
registration-licensing:
condition: EnableProviderRegistration
nextScreens:
- name: registration-licensing-info
registration-licensing-info:
condition: EnableProviderRegistration
nextScreens:
- name: registration-licensed-care-location
registration-licensed-care-location:
condition: EnableProviderRegistration
nextScreens:
- name: null
registration-applicant:
condition: EnableProviderRegistration
nextScreens:
- name: registration-unlicensed-care-location
registration-unlicensed-care-location:
condition: EnableProviderRegistration
nextScreens:
- name: registration-unlicensed-relationship
registration-unlicensed-relationship:
condition: EnableProviderRegistration
nextScreens:
- name: null

landmarks:
firstScreen: submit-start
afterSubmitPages:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html th:lang="${#locale.language}" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{fragments/head :: head(title='TEMPLATE')}"></head>
<body>
<div class="page-wrapper">
<div th:replace="~{fragments/toolbar :: toolbar}"></div>
<section class="slab">
<div class="grid">
<div th:replace="~{fragments/goBack :: goBackLink}"></div>
<main id="content" role="main" class="form-card spacing-above-35">
<th:block th:replace="~{fragments/cardHeader :: cardHeader(header=#{placeholder}, subtext=#{placeholder})}"/>
<th:block th:replace="~{fragments/form :: form(action=${formAction}, content=~{::formContent})}">
<th:block th:ref="formContent">
<div class="form-card__content">
<!-- Put inputs here -->
</div>
<div class="form-card__footer">
<th:block th:replace="~{fragments/inputs/submitButton :: submitButton(text=#{general.inputs.continue})}"/>
</div>
</th:block>
</th:block>
</main>
</div>
</section>
</div>
<th:block th:replace="~{fragments/footer :: footer}"/>
</body>
</html>

0 comments on commit 01255b8

Please sign in to comment.