<core:FragmentDefinition
    xmlns="sap.m"
    xmlns:core="sap.ui.core"
    xmlns:grid="sap.ui.layout.cssgrid"
    xmlns:l="sap.ui.layout"
    core:require="{
        translate: 'sap/mcsuite/model/Translate'
    }"
>
    <Dialog
        draggable="true"
        contentHeight="auto"
        contentWidth="auto"
        showHeader="false"
        class="mc-dialog"
    >
        <VBox
            class="mc-dialog-header"
            alignItems="Stretch"
            justifyContent="SpaceBetween"
        >
            <grid:CSSGrid gridTemplateColumns="2fr 5fr">
                <HBox
                    alignItems="Start"
                    justifyContent="Center"
                >
                    <Avatar
                        src="sap-icon://fa-solid/shield-exclamation"
                        displaySize="M"
                        class="sapUiTinyMarginEnd"
                        backgroundColor="Accent6"
                    />
                </HBox>
                <VBox
                    alignItems="Start"
                    justifyContent="Center"
                >
                    <HBox
                        alignItems="Center"
                        justifyContent="Start"
                        height="1rem"
                    >
                        <Title
                            text='{parts: [{value:"LABEL"}, {value:"UNAUTHORIZED_ACCESS_TITLE"}, {value:"Unbefugter Zugriff"}], formatter: "translate.Label.get"}'
                            level="H3"
                        />
                    </HBox>
                    <Text text='{parts: [{value:"LABEL"}, {value:"ACCESS_DENIED"}, {value:"Zugriff verweigert"}], formatter: "translate.Label.get"}' />
                </VBox>
            </grid:CSSGrid>
                
                <HBox 
                    alignItems="Center" 
                    justifyContent="Center" 
                    class="sapUiMediumMarginTop"
                >
                    <Button
                        text='{parts: [{value:"LABEL"}, {value:"GO_HOME"}, {value:"Startseite"}], formatter: "translate.Label.get"}'
                        type="Emphasized"
                        press="goHome"
                        class="sapUiMediumMarginEnd"
                    />
                    <Button
                        text='{parts: [{value:"LABEL"}, {value:"GO_BACK"}, {value:"Zurück"}], formatter: "translate.Label.get"}'
                        type="Default"
                        press="goBack; closeDialog"
                    />
                </HBox>
        </VBox>
    </Dialog>
</core:FragmentDefinition>
