<core:FragmentDefinition xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
						 xmlns="sap.m" xmlns:build="sap.build" xmlns:core="sap.ui.core" xmlns:sfo="sap.ui.comp.smartform"
						 xmlns:sfi="sap.ui.comp.smartfield" xmlns:l="sap.ui.layout"
						 xmlns:dt="sap.ui.dt">

	<VBox id="header::{path: 'headerFacet>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getStableIdPartFromFacet'}::Form"
		  displayInline="true" class="sapSmartTemplatesObjectPageHeaderForm"
		  visible="{= ${path: 'headerFacet>com.sap.vocabularies.UI.v1.Hidden'} ? ${path: 'headerFacet>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getBindingForHiddenPath'} : true}"
          dt:annotation="{parts: [{path: 'parameter>/entityType'}, {value: 'com.sap.vocabularies.UI.v1.HeaderFacets'}, {path: 'headerFacet>Target/AnnotationPath'}, {path: 'headerFacet>'}], formatter: 'sap.suite.ui.generic.template.changeHandler.js.AnnotationHelperForDesignTime.createInstanceMetadataWithPath'}">
		<template:if test="{headerFacet>Label}">
			<Text text="{path: 'headerFacet>Label', formatter: 'sap.ui.model.odata.AnnotationHelper.format'}" class="sapSmartTemplatesObjectPageHeaderFormTitle"/>
		</template:if>
		<template:if test="{form>Data}">
			<template:then>
				<!-- Fieldgroup -->
				<template:repeat list="{form>Data}" var="dataField">
					<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.HeaderFormDataField"
								   type="XML"/>
				</template:repeat>
			</template:then>
			<template:else>
				<!-- Identification -->
				<template:repeat list="{form>}" var="dataField">
					<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.HeaderFormDataField"
								   type="XML"/>
				</template:repeat>
			</template:else>
		</template:if>
	</VBox>

</core:FragmentDefinition>
