<Dialog id="addFragmentAtExtPointDialog"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns="sap.m"
    xmlns:core="sap.ui.core"
    xmlns:f="sap.ui.layout.form" 
    title="Add XML Fragment at Extension Point" 
    contentWidth="500px" 
    class="sapUiRTABorder">
    <content>
        <f:SimpleForm id="addFragmentAtExtPointDialog_Form"
            editable="true"
            layout="ResponsiveGridLayout"
            labelSpanS="4"
            singleContainerFullSize="false">
            <f:content>
                <MessageStrip
                    text="The selected extension point has a default content. It will not be visible after adding the fragment."
                    id="extensionPointDefaultContentMessage"
                    class="sapUiTinyMarginBottom"
                    showIcon="true"
                    type="Information"
                    visible="{/hasDefaultContent}">
                </MessageStrip>
                <Label text="Extension Point" />
                <Select
                    id="extensionPoint"
                    enabled="{/extensionListEnabled}"
                    change="onExtensionPointHandler"
                    selectedKey='{/extensionPointKey}'
                    items="{
                        path: '/extensionPointList',
                        sorter: { path: 'text' }
                    }">
                    <core:Item key="{key}" text="{value}" />
                </Select>
                <Label text="Fragment Name" />
                <Input 
                    id="fragmentName"
                    description=".fragment.xml" 
                    value="{/newFragmentName}" 
                    liveChange="onFragmentNameInputChange">
                </Input>
            </f:content>
        </f:SimpleForm>
    </content>
    <beginButton>
        <Button 
            id="createDialogBtn" 
            text="Create"
            press="onCreateBtnPress"
            enabled="false"
            type="Emphasized" />
    </beginButton>
    <endButton>
        <Button 
            id="closeDialogBtn" 
            text="Cancel"
            press="handleDialogClose"
            type="Reject" />
    </endButton>
</Dialog>