<core:FragmentDefinition
	xmlns:core="sap.ui.core"
	xmlns="sap.m"
	xmlns:form="sap.ui.layout.form">
	<Dialog title="{/text/dialogTitle}"
		validationSuccess="onValidationSuccess"
		validationError="onValidationError"
		parseError="onValidationError"
		>
		<content>
			<form:SimpleForm editable="true" title="{/text/sectionTitle}" layout="ResponsiveGridLayout"
				adjustLabelSpan="false" singleContainerFullSize="false"
				labelSpanXL="4" labelSpanL="4" labelSpanM="4" labelSpanS="4"
				emptySpanXL="0" emptySpanL="0" emptySpanM="0" emptySpanS="0"
				columnsXL="2" columnsL="2" columnsM="2"
				>
				<form:content>
					<Label text="{/text/newSectionLabel}"/>
					<CheckBox selected="{path: '/asNewSection/selected', type: 'sap.ui.model.type.Boolean'}"/>
					<Label text="{/text/nameLabel}"/>
					<Input value="{path: '/sectionName/value', type: 'sap.ui.model.type.String', constraints: {minLength: 1}}"
						valueState="{/sectionName/valueState}"/>
				</form:content>
			</form:SimpleForm>
			<form:SimpleForm editable="true" title="{/text/sizeTitle}" layout="ResponsiveGridLayout"
				adjustLabelSpan="false" singleContainerFullSize="false"
				labelSpanXL="4" labelSpanL="4" labelSpanM="4" labelSpanS="4"
				emptySpanXL="0" emptySpanL="0" emptySpanM="0" emptySpanS="0"
				columnsXL="2" columnsL="2" columnsM="2"
				>
				<form:content>
					<Label text="{/text/widthLabel}"/>
					<Input value="{path: '/frameWidth/value', type: 'sap.ui.model.type.Float', constraints: {minimum: 0}}"
						valueState="{/frameWidth/valueState}"/>
					<Select selectedKey="{frameWidthUnit/selectedKey}"/>
					<Label text="{/text/heigthLabel}"/>
					<Input value="{path: '/frameHeigth/value', type: 'sap.ui.model.type.Float', constraints: {minimum: 0}}"
						valueState="{/frameHeigth/valueState}"/>
					<Select selectedKey="{frameHeigthUnit/selectedKey}"/>
					<Label/>
					<Text text="{/text/sizeWarning}"/>
				</form:content>
			</form:SimpleForm>
			<form:SimpleForm editable="true" title="{/text/urlTitle}" layout="ResponsiveGridLayout"
				adjustLabelSpan="false" singleContainerFullSize="false"
				labelSpanXL="4" labelSpanL="4" labelSpanM="4" labelSpanS="4"
				emptySpanXL="0" emptySpanL="0" emptySpanM="0" emptySpanS="0"
				columnsXL="2" columnsL="2" columnsM="2"
				>
				<form:content>
					<TextArea value="{path: '/frameUrl/value', type: 'sap.ui.model.type.String', constraints: { minLength: 1}}"
						valueState="{/frameUrl/valueState}"/>
				</form:content>
			</form:SimpleForm>
		</content>
		<beginButton>
			<Button
				type="Emphasized"
				text="{/text/OKText}"
				press="onOKPress"
			/>
		</beginButton>
		<endButton>
			<Button
				type="Transparent"
				text="{/text/cancelText}"
				press="onCancelPress"
			/>
		</endButton>
	</Dialog>
</core:FragmentDefinition>