.content.xml 10.7 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-assignchannel-dialog"
    jcr:mixinTypes="[granite:InternalArea]"
    jcr:primaryType="nt:unstructured"
    jcr:title="Channel Assignment"
    sling:resourceType="granite/ui/components/coral/foundation/dialog">
    <items jcr:primaryType="nt:unstructured">
        <form
            granite:id="screens-dcc-actions-assignchannel-form"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/form"
            action="${empty requestPathInfo.suffix ? param.item : requestPathInfo.suffix}${param.appendTo}"
            dataPath="${requestPathInfo.suffix}"
            method="post"
            style="vertical">
            <successresponse
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/form/responses/reload"/>
            <items jcr:primaryType="nt:unstructured">
                <charset
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                    ignoreData="{Boolean}true"
                    name="_charset_"
                    value="utf-8"/>
                <name
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                    name=":nameHint"/>
                <role
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                    fieldLabel="Channel Role"
                    name="./role"
                    required="{Boolean}true"
                    validation="foundation.jcr.name"/>
                <channel
                    granite:class="u-coral-clearFix screens-ChannelAssignment-type"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/container">
                    <items jcr:primaryType="nt:unstructured">
                        <assignment-type-label
                            granite:class="coral-Form-fieldlabel u-coral-pullLeft"
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/text"
                            text="Reference channel…"/>
                        <assignment-type
                            granite:class="u-coral-pullRight u-coral-padding-horizontal"
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/radiogroup"
                            fieldDescription="Choose 'by path' for explicit assignments, and 'by name' to dynamically resolve the channel in the parent locations."
                            name="./sling:resourceType">
                            <items jcr:primaryType="nt:unstructured">
                                <absolute
                                    jcr:primaryType="nt:unstructured"
                                    checked="{Boolean}true"
                                    text="by path"
                                    value="screens/core/components/channelassignment/absolute"/>
                                <name
                                    jcr:primaryType="nt:unstructured"
                                    checked="{Boolean}false"
                                    text="by name"
                                    value="screens/core/components/channelassignment/dynamic"/>
                            </items>
                        </assignment-type>
                    </items>
                </channel>
                <channel-path
                    granite:class="screens-ChannelAssignment-channelReference"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
                    fieldLabel="Channel Path"
                    name="./path"
                    pickerTitle="Select Path"
                    required="{Boolean}true"
                    rootPath="/content/screens"/>
                <channel-name
                    granite:class="screens-ChannelAssignment-channelReference"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete"
                    deleteHint="{Boolean}false"
                    disabled="{Boolean}true"
                    fieldLabel="Channel Name"
                    name="./name"
                    required="{Boolean}true">
                    <datasource
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="screens/dcc/components/datasources/channelsinpath"
                        path="${param.item}"/>
                    <options
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete/list"/>
                </channel-name>
                <priority
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
                    fieldLabel="Priority"
                    max="9999"
                    min="1"
                    name="./priority"
                    required="{Boolean}true"
                    value="1"/>
                <events-type
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                    name="./events@TypeHint"
                    value="String[]"/>
                <events
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/select"
                    emptyText="Select"
                    fieldLabel="Supported Events"
                    multiple="{Boolean}true"
                    name="./events">
                    <items jcr:primaryType="nt:unstructured">
                        <event-load
                            jcr:primaryType="nt:unstructured"
                            text="Initial Load"
                            value="load"/>
                        <event-idle
                            jcr:primaryType="nt:unstructured"
                            text="Idle Screen"
                            value="idle"/>
                        <event-timer
                            jcr:primaryType="nt:unstructured"
                            text="Timer"
                            value="timer"/>
                        <event-interaction
                            jcr:primaryType="nt:unstructured"
                            text="User Interaction"
                            value="click"/>
                    </items>
                </events>
                <schedule
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                    emptyText="after 6:00 and before 18:00"
                    fieldDescription="Use later.js' text or cron syntax. The Schedule is evaluated based on the Device's local time."
                    fieldLabel="Schedule…"
                    name="./schedule"
                    required="{Boolean}false"/>
                <link
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/hyperlink"
                    href="https://bunkat.github.io/later/parsers.html#cron"
                    target="_blank"
                    text="Documentation for the schedule syntax"/>
                <schedule-dates
                    granite:class="u-coral-clearFix screens-ChannelAssignment-dates screens-InputGroup screens-InputGroup--2columns"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/container">
                    <items jcr:primaryType="nt:unstructured">
                        <start-date
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
                            displayedFormat="YYYY-MM-DD"
                            emptyText="2000-12-31"
                            fieldLabel="active from"
                            name="./startDate"
                            required="{Boolean}false"
                            valueFormat="YYYY-MM-DD"/>
                        <end-date
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
                            displayedFormat="YYYY-MM-DD"
                            emptyText="2030-12-31"
                            fieldLabel="active until"
                            name="./endDate"
                            required="{Boolean}false"
                            valueFormat="YYYY-MM-DD"/>
                    </items>
                </schedule-dates>
                <show-tooltip
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
                    name="./showTooltip"
                    required="{Boolean}false"
                    text="Show Attraction Tooltip"
                    uncheckedValue="{Boolean}false"
                    value="{Boolean}true"/>
            </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-assignchannel-dialog-submit"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/button"
            formId="screens-dcc-actions-assignchannel-form"
            text="Save"
            type="submit"
            variant="primary">
            <parentConfig
                jcr:primaryType="nt:unstructured"
                close="{Boolean}false"/>
        </save>
    </footer>
</jcr:root>