Skip to content

Commit

Permalink
Added Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
enyia21 committed Dec 20, 2024
1 parent a50b9ce commit 1949f7d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/ilgcc/app/inputs/Providerresponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public class Providerresponse extends FlowInputs {
private String providerType;


private String getProviderIdentityCheckDateOfBirthDate;
private String providerIdentityCheckDateOfBirthDay;
private String providerIdentityCheckDateOfBirthMonth;
private String providerIdentityCheckDateOfBirthYear;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.ilgcc.app.submission.actions;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ValidateHomeProviderDateOfBirth extends ValidateBirthdate {

public ValidateHomeProviderDateOfBirth(MessageSource messageSource) {
super(messageSource, "providerIdentityCheckDateOfBirth", "providerIdentityCheckDateOfBirthDate");
}
}
1 change: 1 addition & 0 deletions src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ flow:
nextScreens:
- name: registration-home-provider-dob
registration-home-provider-dob:
crossFieldValidationAction: ValidateHomeProviderDateOfBirth
condition: EnableProviderRegistration
nextScreens:
- name: registration-tax-id
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/gcc-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ <h1>GCC Icons</h1>
<tr>
<td>calendar</td>
<td>
<svg th:fragment="calendar" width="101" height="75" viewBox="0 0 101 75" fill="none" xmlns="http://www.w3.org/2000/svg">
<svg th:fragment="calendar" aria-hidden="true" width="101" height="75" viewBox="0 0 101 75" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M78.0323 65.0161C71.9547 70.0396 63.7557 70.5292 55.973 71.8791C48.031 73.2566 39.9632 75.7579 32.3906 72.9325C24.3233 69.9224 17.2202 63.9052 13.6252 56.0783C10.1027 48.4091 11.6522 39.6751 13.3286 31.4309C14.9321 23.5451 17.0872 15.4229 22.9985 9.98227C28.7887 4.65303 36.9612 3.37867 44.7946 2.47002C52.341 1.59466 60.0031 1.70313 66.9234 4.88711C74.0542 8.16795 79.8467 13.6848 83.8504 20.4393C88.0582 27.5382 91.0384 35.6172 89.9737 43.7747C88.8944 52.0446 84.4478 59.7131 78.0323 65.0161Z" fill="#769BF3"/>
<path d="M86 14C86 13.1716 85.3284 12.5 84.5 12.5H16.5C15.6716 12.5 15 13.1716 15 14V64C15 64.8284 15.6716 65.5 16.5 65.5H84.5C85.3284 65.5 86 64.8284 86 64V14Z" fill="white" stroke="#121111" stroke-width="3" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="16.5" y="13" width="68" height="10" fill="#769BF3" fill-opacity="0.35"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
iconFragment=~{fragments/gcc-icons :: calendar},
inputContent=~{::inputContent})}">
<th:block th:ref="inputContent">
<input type="hidden" th:name="current_uuid" th:value="${fieldData.get('uuid')}">
<th:block th:replace="~{fragments/inputs/date ::
date(inputName='providerIdentityCheckDateOfBirth',
ariaLabel='header',
Expand Down

0 comments on commit 1949f7d

Please sign in to comment.