-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add af2 fragment template type, fragment container component, fragmen…
…t component and captcha component. (#1129) * FORMS-9265 Include editable template for fragment 2.0 as part of archetype. * Adding fragment, captcha components. * Adding fragment template specific thumbnail. --------- Co-authored-by: Pankaj Parashar <[email protected]>
- Loading branch information
1 parent
3bb5404
commit dd14414
Showing
13 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...ps/src/main/content/jcr_root/apps/__appId__/components/adaptiveForm/fragment/.content.xml
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Adaptive Form Fragment" | ||
jcr:description="Adaptive Form Fragment placeholder (v1) component" | ||
sling:resourceSuperType="core/fd/components/form/fragment/v1/fragment" | ||
componentGroup="${appTitle} - Adaptive Form"/> |
5 changes: 5 additions & 0 deletions
5
...rc/main/content/jcr_root/apps/__appId__/components/adaptiveForm/fragment/_cq_template.xml
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Fragment" | ||
fieldType="panel"/> |
7 changes: 7 additions & 0 deletions
7
...in/content/jcr_root/apps/__appId__/components/adaptiveForm/fragmentcontainer/.content.xml
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Adaptive Form Fragment Container (Core Component)" | ||
jcr:description="Adaptive Form Fragment Container (Core Component) (v1) component" | ||
sling:resourceSuperType="core/fd/components/form/fragmentcontainer/v1/fragmentcontainer" | ||
componentGroup=".hidden"/> |
6 changes: 6 additions & 0 deletions
6
...ontent/jcr_root/apps/__appId__/components/adaptiveForm/fragmentcontainer/_cq_template.xml
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Form Container" | ||
fd:version="2.1" | ||
fieldType="form"/> |
8 changes: 8 additions & 0 deletions
8
...s/src/main/content/jcr_root/apps/__appId__/components/adaptiveForm/recaptcha/.content.xml
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | ||
cq:icon="shield" | ||
jcr:primaryType="cq:Component" | ||
jcr:title="Adaptive Form reCAPTCHA" | ||
jcr:description="Adaptive Form reCAPTCHA (v1) component" | ||
sling:resourceSuperType="core/fd/components/form/recaptcha/v1/recaptcha" | ||
componentGroup="${appTitle} - Adaptive Form"/> |
6 changes: 6 additions & 0 deletions
6
...c/main/content/jcr_root/apps/__appId__/components/adaptiveForm/recaptcha/_cq_template.xml
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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="CAPTCHA" | ||
required="{Boolean}true" | ||
fieldType="captcha"/> |
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
8 changes: 8 additions & 0 deletions
8
...ntent/jcr_root/conf/__appId__/settings/wcm/template-types/afv2-fragment-page/.content.xml
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
jcr:primaryType="cq:Template"> | ||
<jcr:content | ||
jcr:description="Adaptive Form Fragment Template with core components." | ||
jcr:primaryType="cq:PageContent" | ||
jcr:title="Adaptive Form Fragment (Core Components)"/> | ||
</jcr:root> |
19 changes: 19 additions & 0 deletions
19
...r_root/conf/__appId__/settings/wcm/template-types/afv2-fragment-page/initial/.content.xml
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" | ||
jcr:primaryType="cq:Page"> | ||
<jcr:content | ||
cq:deviceGroups="[/etc/mobile/groups/responsive]" | ||
jcr:primaryType="cq:PageContent" | ||
sling:resourceType="${appId}/components/adaptiveForm/page" | ||
#if ( $aemVersion == "cloud") | ||
sling:configRef="/conf/${appId}/forms" | ||
#end | ||
guideComponentType="fd/af/templates"> | ||
<guideContainer | ||
fd:version="2.1" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="${appId}/components/adaptiveForm/fragmentcontainer" | ||
fieldType="form" | ||
fd:type="fragment"/> | ||
</jcr:content> | ||
</jcr:root> |
13 changes: 13 additions & 0 deletions
13
..._root/conf/__appId__/settings/wcm/template-types/afv2-fragment-page/policies/.content.xml
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" | ||
jcr:primaryType="cq:Page"> | ||
<jcr:content | ||
cq:policy="${appId}/components/page/policy" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="wcm/core/components/policies/mappings"> | ||
<guideContainer | ||
cq:policy="${appId}/components/adaptiveForm/formcontainer/default" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="wcm/core/components/policies/mapping"/> | ||
</jcr:content> | ||
</jcr:root> |
33 changes: 33 additions & 0 deletions
33
...root/conf/__appId__/settings/wcm/template-types/afv2-fragment-page/structure/.content.xml
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:fd="http://www.adobe.com/aemfd/fd/1.0" | ||
jcr:primaryType="cq:Page"> | ||
<jcr:content | ||
cq:deviceGroups="[/etc/mobile/groups/responsive]" | ||
jcr:primaryType="cq:PageContent" | ||
sling:resourceType="${appId}/components/adaptiveForm/page" | ||
guideComponentType="fd/af/templates"> | ||
<guideContainer | ||
fd:version="2.1" | ||
jcr:primaryType="nt:unstructured" | ||
sling:resourceType="${appId}/components/adaptiveForm/fragmentcontainer" | ||
editable="{Boolean}true" | ||
fieldType="form" | ||
fd:type="fragment"/> | ||
<cq:responsive jcr:primaryType="nt:unstructured"> | ||
<breakpoints jcr:primaryType="nt:unstructured"> | ||
<smallScreen | ||
jcr:primaryType="nt:unstructured" | ||
title="Smaller Screen" | ||
width="{Decimal}479"/> | ||
<phone | ||
jcr:primaryType="nt:unstructured" | ||
title="Phone" | ||
width="{Decimal}767"/> | ||
<tablet | ||
jcr:primaryType="nt:unstructured" | ||
title="Tablet" | ||
width="{Decimal}991"/> | ||
</breakpoints> | ||
</cq:responsive> | ||
</jcr:content> | ||
</jcr:root> |
Binary file added
BIN
+19.5 KB
...oot/conf/__appId__/settings/wcm/template-types/afv2-fragment-page/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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