<core:FragmentDefinition xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
	xmlns="sap.m"
	xmlns:macro="sap.fe.macros"
	xmlns:core="sap.ui.core">

	<HBox class="sapUiSmallMargin">
		<template:if test="{= ${facet>Target/$AnnotationPath}.indexOf('com.sap.vocabularies.UI.v1.FieldGroup') > -1}">
			<template:then>
				<macro:Form metadataContexts="{ model: 'facet', path:'Target/$AnnotationPath/Data', name: 'dataFieldCollection'},{ model:'entitySet',path:'',name:'entitySet'}"
					editMode="Display"
					formTitle="{facet>Label}"/>
			</template:then>
			<template:elseif test="{= ${facet>Target/$AnnotationPath}.indexOf('com.sap.vocabularies.UI.v1.Identification') > -1}">
				<macro:Form metadataContexts="{ model: 'facet', path:'Target/$AnnotationPath', name: 'dataFieldCollection'},{ model:'entitySet',path:'',name:'entitySet'}"
				editMode="Display"
				formTitle="{facet>Label}"/>
			</template:elseif>
			<template:elseif test="{= ${facet>Target/$AnnotationPath}.indexOf('com.sap.vocabularies.UI.v1.DataPoint') > -1}">
				<macro:Form metadataContexts="{ model: 'facet', path:'', name: 'dataFieldCollection'},{ model:'entitySet',path:'',name:'entitySet'}"
					editMode="Display"
					formTitle="{facet>Label}"/>
			</template:elseif>
		</template:if>
	</HBox>
</core:FragmentDefinition>
