Skip to content

Commit

Permalink
OOTB Core Component Adaptive Form templates and themes updates (#1155)
Browse files Browse the repository at this point in the history
*Removal of panel for submit button for log service request. Keeping as is for other templates
*Left aligned Submit button (all templates) - Remove resizing from layout layer
*Benefits Summary Request -
    Text title - Form Introduction
    Text name - FormIntro
*Benefits Enrollment template -
    Rule fixing for Others panel.
    Top panel title changed to Basic Details
    Submit button changed from generic button to actual submit button
*Consent Form - Top panel name changed to events
*Contact Details Update - Text titles changed to Form Introduction and New Address
*Give Feedback - Panel title and name changed to Feedback and feedback respectively
*Log Service Request template -
    Renaming Tabs on Top title and name to Service Request/servciceRequest.
    Moved submit button out of panel and removed the panel
*Purchase Request - Text title - Form Introduction
*Quality Control Inspection - Text title - Form Introduction
*Request for statement - Text title - Form Introduction
*Safety Inspection -
    Text title/name -> Instructions/instructions
    Renaming Tabs on Top title and name to Safety Inspection/safetyInspection.
*Replaced foundation component usage by core components Container instead of foundation parsys
*Header and footer policy updated for all the templates
*Telphone field pattern validation fixed
*Email field type fixed
*Template type updated
*Read for everyone ACL added for themes for publish use case
*Configured REST endpoint submit action
*Disable date rule in safety-inspection template
  • Loading branch information
pankaj-parashar authored Nov 29, 2023
1 parent 27fd485 commit 519d248
Show file tree
Hide file tree
Showing 44 changed files with 462 additions and 329 deletions.
5 changes: 3 additions & 2 deletions src/main/archetype/ui.apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@
<group>${groupId}</group>
<name>${artifactId}</name>
<packageType>application</packageType>
#if (($includeForms == "y" || $includeFormsenrollment == "y" || $includeFormscommunications == "y" || $includeFormsheadless == "y") && $aemVersion == "cloud")
#if (($includeForms == "y" || $includeFormsenrollment == "y" || $includeFormscommunications == "y" || $includeFormsheadless == "y") && $aemVersion == "cloud")
<skipSubPackageValidation>true</skipSubPackageValidation>
#end
<accessControlHandling>merge</accessControlHandling>
#end
<repositoryStructurePackages>
<repositoryStructurePackage>
<groupId>${groupId}</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="rep:ACL">
<allow
jcr:primaryType="rep:GrantACE"
rep:principalName="everyone"
rep:privileges="{Name}[jcr:read]"/>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="rep:ACL">
<allow
jcr:primaryType="rep:GrantACE"
rep:principalName="everyone"
rep:privileges="{Name}[jcr:read]"/>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="rep:ACL">
<allow
jcr:primaryType="rep:GrantACE"
rep:principalName="everyone"
rep:privileges="{Name}[jcr:read]"/>
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="rep:ACL">
<allow
jcr:primaryType="rep:GrantACE"
rep:principalName="everyone"
rep:privileges="{Name}[jcr:read]"/>
</jcr:root>
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,28 @@
</assetToComponentMapping>
</cq:authoring>
</policy_1575040440977>
#if ($includeForms == "y" or $includeFormsenrollment == "y" or $includeFormscommunications == "y")
<cc-af-header-policy
jcr:lastModified="{Date}2023-06-07T15:48:33.506+05:30"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
jcr:title="Core Component Adaptive Form Header Policy"
jcr:description="Includes only Core Component Adaptive Form header component."
sling:resourceType="wcm/core/components/policy/policy"
components="/apps/${appId}/components/adaptiveForm/pageheader">
<jcr:content jcr:primaryType="nt:unstructured"/>
</cc-af-header-policy>
<cc-af-footer-policy
jcr:lastModified="{Date}2022-07-12T11:41:57.902+05:30"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
jcr:title="Core Component Adaptive Form Footer Policy"
jcr:description="Includes only Core Component Adaptive Form footer component."
sling:resourceType="wcm/core/components/policy/policy"
components="/apps/${appId}/components/adaptiveForm/footer">
<jcr:content jcr:primaryType="nt:unstructured"/>
</cc-af-footer-policy>
#end
</container>
<teaser jcr:primaryType="nt:unstructured">
<policy_1575031387650
Expand Down Expand Up @@ -684,28 +706,7 @@
<jcr:content jcr:primaryType="nt:unstructured"/>
</policy_1518118565779>
#end
#if ($includeForms == "y" or $includeFormsenrollment == "y" or $includeFormscommunications == "y")
<cc-af-header-policy
jcr:lastModified="{Date}2023-06-07T15:48:33.506+05:30"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
jcr:title="Core Component Adaptive Form Header Policy"
jcr:description="Includes only Core Component Adaptive Form header component."
sling:resourceType="wcm/core/components/policy/policy"
components="/apps/${appId}/components/adaptiveForm/pageheader">
<jcr:content jcr:primaryType="nt:unstructured"/>
</cc-af-header-policy>
<cc-af-footer-policy
jcr:lastModified="{Date}2022-07-12T11:41:57.902+05:30"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
jcr:title="Core Component Adaptive Form Footer Policy"
jcr:description="Includes only Core Component Adaptive Form footer component."
sling:resourceType="wcm/core/components/policy/policy"
components="/apps/${appId}/components/adaptiveForm/footer">
<jcr:content jcr:primaryType="nt:unstructured"/>
</cc-af-footer-policy>
#end

</responsivegrid>
</components>
</foundation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<container1
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"
cq:policy="fd/af/components/responsivegrid/page-header"
cq:policy="${appId}/components/container/cc-af-header-policy"
layout="responsiveGrid"/>
<guideContainer
cq:policy="${appId}/components/adaptiveForm/formcontainer/default"
Expand All @@ -18,7 +18,7 @@
<container2
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"
cq:policy="fd/af/components/responsivegrid/page-footer"
cq:policy="${appId}/components/container/cc-af-footer-policy"
layout="responsiveGrid"/>
</jcr:content>
</jcr:root>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
sling:resourceType="${appId}/components/adaptiveForm/page">
<container1
jcr:primaryType="nt:unstructured"
sling:resourceType="core/wcm/components/container/v1/container"
sling:resourceType="${appId}/components/container"
layout="responsiveGrid"
editable="{Boolean}true" />
<guideContainer
Expand All @@ -21,7 +21,7 @@
</guideContainer>
<container2
jcr:primaryType="nt:unstructured"
sling:resourceType="core/wcm/components/container/v1/container"
sling:resourceType="${appId}/components/container"
layout="responsiveGrid"
editable="{Boolean}true" />
<cq:responsive jcr:primaryType="nt:unstructured">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@
themeClientLibRef="adaptiveform.theme.canvas3"
#end
sling:resourceType="${appId}/components/adaptiveForm/formcontainer"
fieldType="form">
actionType="fd/af/components/guidesubmittype/restendpoint"
fieldType="form"
schemaType="none"
textIsRich="true"
thankYouMessage="Thank you for submitting the form."
thankYouOption="page">
<text_2145122489
jcr:lastModified="{Date}2023-06-15T10:15:15.538Z"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
jcr:title="Text"
jcr:title="Form Introduction"
sling:resourceType="${appId}/components/adaptiveForm/text"
fieldType="plain-text"
name="text_21451224891684997830821"
name="FormIntro"
textIsRich="true"
value="&lt;p>Please complete the following form to request a benefit summary. These details will help us provide you with an overview of your eligible benefits.&lt;/p>&#xd;&#xa;"/>
<textinput
Expand Down Expand Up @@ -127,9 +132,12 @@
hideTitle="false"
mandatoryMessage="Please enter your contact number."
name="PhoneNumber"
pattern="^[0-9]{10}$"
readOnly="{Boolean}false"
required="true"
textIsRich="[true,true]"
validateExpMessage="Please enter a valid US phone number, including the area code. Example: (123) 456-7890"
validatePatternMessage="Please enter a valid US phone number, including the area code. Example: (123) 456-7890"
visible="{Boolean}true"/>
<dropdown
jcr:lastModified="{Date}2023-06-15T10:24:38.640Z"
Expand Down Expand Up @@ -202,14 +210,15 @@
<cq:responsive jcr:primaryType="nt:unstructured">
<default
jcr:primaryType="nt:unstructured"
offset="6"
width="6"/>
offset="0"
width="12"/>
</cq:responsive>
</submit>
</guideContainer>
<parsys1
<container1
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/foundation/components/responsivegrid">
sling:resourceType="${appId}/components/container"
layout="responsiveGrid">
<pageheader
jcr:lastModified="{Date}2023-05-25T06:28:44.438Z"
jcr:lastModifiedBy="admin"
Expand Down Expand Up @@ -241,15 +250,16 @@
jcr:lastModified="{Date}2023-05-25T06:28:44.438Z"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/foundation/components/text"
sling:resourceType="${appId}/components/text"
text="&lt;p>Employee Benefits Summary&lt;/p>&#xd;&#xa;"
textIsRich="true"
value="Company Name Here"/>
</pageheader>
</parsys1>
<parsys2
</container1>
<container2
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/foundation/components/responsivegrid">
sling:resourceType="${appId}/components/container"
layout="responsiveGrid">
<footer
jcr:lastModified="{Date}2023-05-25T06:28:44.438Z"
jcr:lastModifiedBy="admin"
Expand All @@ -261,11 +271,11 @@
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
jcr:title="Footer"
sling:resourceType="core/wcm/components/text/v2/text"
sling:resourceType="${appId}/components/text"
css="footerText"
text="&lt;p>© YYYY WKND | All rights reserved.&lt;/p>&#xd;&#xa;"
textIsRich="true"/>
</footer>
</parsys2>
</container2>
</jcr:content>
</jcr:root>
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
cq:policy="${appId}/components/page/default"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mappings">
<parsys1
cq:policy="wcm/foundation/components/responsivegrid/cc-af-header-policy"
<container1
cq:policy="${appId}/components/container/cc-af-header-policy"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"/>
<guideContainer
cq:policy="${appId}/components/adaptiveForm/formcontainer/default"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"/>
<parsys2
cq:policy="wcm/foundation/components/responsivegrid/cc-af-footer-policy"
<container2
cq:policy="${appId}/components/container/cc-af-footer-policy"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"/>
</jcr:content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@
jcr:uuid="aa07e3c9-a52a-44bc-9c9c-27591f605aad"
sling:resourceType="${appId}/components/adaptiveForm/page"
guideComponentType="fd/af/templates">
<parsys1
<container1
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/foundation/components/responsivegrid"
sling:resourceType="${appId}/components/container"
layout="responsiveGrid"
editable="{Boolean}true"/>
<guideContainer
fd:version="2.1"
jcr:primaryType="nt:unstructured"
sling:resourceType="${appId}/components/adaptiveForm/formcontainer"
editable="{Boolean}true"
fieldType="form"/>
<parsys2
<container2
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/foundation/components/responsivegrid"
sling:resourceType="${appId}/components/container"
layout="responsiveGrid"
editable="{Boolean}true"/>
<cq:responsive jcr:primaryType="nt:unstructured">
<breakpoints jcr:primaryType="nt:unstructured">
Expand Down
Loading

0 comments on commit 519d248

Please sign in to comment.