.content.xml 2.83 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:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    granite:rel="screens-dcc-actions-changeactivechannel-dialog"
    jcr:mixinTypes="[granite:InternalArea]"
    jcr:primaryType="nt:unstructured"
    jcr:title="Change active channel"
    sling:resourceType="granite/ui/components/coral/foundation/dialog">
    <items jcr:primaryType="nt:unstructured">
        <form
            granite:id="screens-dcc-actions-changeactivechannel-dialog-form"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/form"
            action="${requestPathInfo.suffix}/jcr:content"
            dataPath="${requestPathInfo.suffix}/jcr:content/"
            foundationForm="{Boolean}true"
            method="post"
            style="vertical">
            <successresponse
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/form/responses/reload"/>
            <items jcr:primaryType="nt:unstructured">
                <channels
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/select"
                    fieldLabel="Channel Role"
                    name="./activeChannel">
                    <datasource
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="screens/dcc/components/datasources/referencedchannels"
                        exclude="/content/(?!screens)(/.*)*"
                        path="${requestPathInfo.suffix}"/>
                </channels>
                <charset
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                    ignoreData="{Boolean}true"
                    name="_charset_"
                    value="utf-8"/>
            </items>
        </form>
    </items>
    <footer jcr:primaryType="nt:unstructured">
        <cancel
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/button"
            text="Cancel">
            <parentConfig
                jcr:primaryType="nt:unstructured"
                close="{Boolean}true"/>
        </cancel>
        <save
            granite:rel="screens-dcc-actions-changeactivechannel-dialog-submit"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/button"
            formId="screens-dcc-actions-changeactivechannel-dialog-form"
            text="Apply"
            type="submit"
            variant="primary"/>
    </footer>
</jcr:root>