.content.xml 10.3 KB
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:mixinTypes="[granite:InternalArea]"
    jcr:primaryType="cq:Page">
    <jcr:content
        jcr:mixinTypes="[sling:VanityPath]"
        jcr:primaryType="nt:unstructured"
        jcr:title="AEM Screens | Assign Device"
        sling:resourceType="granite/ui/components/coral/foundation/page"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/assign-device-wizard">
        <head jcr:primaryType="nt:unstructured">
            <viewport
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/admin/page/viewport"/>
            <favicon
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/page/favicon"/>
            <clientlibs
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/includeclientlibs"
                categories="[coralui3,granite.ui.coral.foundation,screens.dcc.assigndevicewizard]"/>
        </head>
        <body
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/page/body">
            <items jcr:primaryType="nt:unstructured">
                <form
                    granite:class="screens-AssignDevice"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form"
                    async="{Boolean}false"
                    foundationForm="{Boolean}true"
                    maximized="{Boolean}true"
                    method="post"
                    novalidate="{Boolean}true"
                    style="vertical">
                    <items jcr:primaryType="nt:unstructured">
                        <charset
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                            name="_charset_"
                            value="utf-8"/>
                        <deviceconfig
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                            name="deviceConfig"
                            value="${param.deviceConfig}"/>
                        <wizard
                            granite:class="screens-AssignDeviceWizard"
                            jcr:primaryType="nt:unstructured"
                            jcr:title="Assign Device"
                            sling:resourceType="granite/ui/components/coral/foundation/wizard"
                            cancelHref="${empty param.returnPage ? (empty header.Referer ? &quot;/screens/devices.html?assigned=false&quot; : header.Referer) : param.returnPage}">
                            <items jcr:primaryType="nt:unstructured">
                                <step1
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Device"
                                    sling:resourceType="granite/ui/components/coral/foundation/container"
                                    maximized="{Boolean}true">
                                    <items jcr:primaryType="nt:unstructured">
                                        <device
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/coral/foundation/form/advancedselect"
                                            foundation-validation-ui="none"
                                            maximized="{Boolean}true"
                                            name="device"
                                            required="{Boolean}true"
                                            selectionMode="single">
                                            <field
                                                jcr:primaryType="nt:unstructured"
                                                sling:resourceType="granite/ui/components/coral/foundation/masonry"
                                                limit="{Long}20"
                                                path="${requestPathInfo.suffix}"
                                                selectionCount="single"
                                                selectionMode="{Boolean}true"
                                                size="${empty requestPathInfo.selectors[1] ? &quot;20&quot; : requestPathInfo.selectors[1]}"
                                                src="/mnt/overlay/screens/dcc/content/assigndevicewizard/jcr:content/body/items/form/items/wizard/items/step1/items/device/field{.offset,limit}.html{+id}">
                                                <datasource
                                                    jcr:primaryType="nt:unstructured"
                                                    sling:resourceType="screens/dcc/components/datasources/devices"
                                                    assigned="false"
                                                    exclude="/home/users/(?!screens)(/.*)*"
                                                    itemResourceType="screens/dcc/components/card"
                                                    limit="${empty requestPathInfo.selectors[1] ? &quot;21&quot; : requestPathInfo.selectors[1] + 1}"
                                                    offset="${requestPathInfo.selectors[0]}"/>
                                            </field>
                                        </device>
                                    </items>
                                    <parentConfig jcr:primaryType="nt:unstructured">
                                        <next
                                            granite:class="foundation-wizard-control"
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/coral/foundation/button"
                                            disabled="{Boolean}true"
                                            text="Next">
                                            <granite:data
                                                jcr:primaryType="nt:unstructured"
                                                foundation-wizard-control-action="next"/>
                                        </next>
                                    </parentConfig>
                                </step1>
                                <step2
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Display"
                                    sling:resourceType="granite/ui/components/coral/foundation/container">
                                    <items jcr:primaryType="nt:unstructured">
                                        <fixedcolumns
                                            granite:class="coral-FixedColumn"
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/coral/foundation/container">
                                            <items jcr:primaryType="nt:unstructured">
                                                <column
                                                    granite:class="coral-FixedColumn-column"
                                                    jcr:primaryType="nt:unstructured"
                                                    sling:resourceType="granite/ui/components/coral/foundation/container">
                                                    <items jcr:primaryType="nt:unstructured">
                                                        <display
                                                            jcr:primaryType="nt:unstructured"
                                                            sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
                                                            fieldLabel="Display/Device Config Path"
                                                            name="display"
                                                            pickerTitle="Display Path"
                                                            required="{Boolean}true"
                                                            rootPath="/content/screens"
                                                            value="${empty param.display ? '' : granite:encodeURIPath(param.display)}"/>
                                                    </items>
                                                </column>
                                            </items>
                                        </fixedcolumns>
                                    </items>
                                    <parentConfig jcr:primaryType="nt:unstructured">
                                        <next
                                            granite:class="foundation-wizard-control"
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/coral/foundation/button"
                                            disabled="{Boolean}true"
                                            text="Assign"
                                            type="submit"
                                            variant="primary">
                                            <granite:data
                                                jcr:primaryType="nt:unstructured"
                                                foundation-wizard-control-action="next"/>
                                        </next>
                                    </parentConfig>
                                </step2>
                            </items>
                        </wizard>
                    </items>
                </form>
            </items>
        </body>
    </jcr:content>
</jcr:root>