-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
12 changed files
with
93 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
src/main/java/org/ilgcc/app/submission/conditions/ChildAttendsOtherSchoolDuringDay.java
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,19 @@ | ||
package org.ilgcc.app.submission.conditions; | ||
|
||
import formflow.library.config.submission.Condition; | ||
import formflow.library.data.Submission; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Slf4j | ||
@Component | ||
public class ChildAttendsOtherSchoolDuringDay implements Condition { | ||
|
||
@Override | ||
public Boolean run(Submission submission, String id) { | ||
Optional<Map<String, Object>> childSubflow = Optional.of(submission.getSubflowEntryByUuid("children", id)); | ||
return childSubflow.get().getOrDefault("childAttendsOtherEd", "false").equals("true"); | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
src/main/resources/templates/gcc/children-school-weekly-schedule.html
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,20 @@ | ||
<div> | ||
<th:block | ||
th:replace="~{fragments/screens/screenWithOneInput :: | ||
screenWithOneInput( | ||
title=#{children-school-weekly-schedule.title}, | ||
header=#{children-school-weekly-schedule.header(${fieldData.get('childFirstName')})}, | ||
buttonLabel=#{general.button.continue}, | ||
formAction=${formAction}, | ||
iconFragment=~{fragments/gcc-icons :: schedule-childcare}, | ||
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/textArea :: | ||
textArea(inputName='childOtherEdHoursDescription', | ||
ariaLabel='header', | ||
rows='2', | ||
maxLength='50')}"/> | ||
</th:block> | ||
</th:block> | ||
</div> |
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
Binary file not shown.