<Dialog id="addNewTableColumnFragmentsDialog"
    xmlns="sap.m"
    xmlns:core="sap.ui.core"
    xmlns:f="sap.ui.layout.form"  
    title="{/title}" 
    contentWidth="500px" 
    class="sapUiRTABorder">
    <content>
        <f:SimpleForm id="addNewTableColumnFragmentsDialog_Form"
            editable="true"
            layout="ResponsiveGridLayout"
            labelSpanS="4"
            singleContainerFullSize="false">
            <f:content>
                <Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_INDEX_LABEL}" />
                <HBox alignItems="Center">
                    <Select
                        enabled="{/indexHandlingFlag}"
                        selectedKey="{path: '/selectedIndex', type: 'sap.ui.model.type.Integer'}"
                        items="{
                            path: '/index',
                            sorter: { path: 'text' }
                        }">
                        <core:Item key="{key}" text="{value}" />
                    </Select>
                    <core:Icon
                        useIconTooltip="false"
                        visible="{/specialIndexHandlingIcon}" 
                        src="sap-icon://message-information" 
                        class= "sapUiTinyMarginBegin" 
                        tooltip="{/iconTooltip}" />
                </HBox>
                <Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_COLUMN_FRAGMENT_NAME_LABEL}" />
                <Input 
                    description=".fragment.xml" 
                    value="{/newColumnFragmentName}" 
                    liveChange="onColumnFragmentNameInputChange">
                </Input>
                <Label text="{i18n>ADP_ADD_FRAGMENT_DIALOG_CELL_FRAGMENT_NAME_LABEL}" />
                <Input 
                    description=".fragment.xml" 
                    value="{/newCellFragmentName}" 
                    liveChange="onCellFragmentNameInputChange">
                </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>