<mvc:View xmlns:rowmodes='sap.ui.table.rowmodes' xmlns:mvc='sap.ui.core.mvc' xmlns='sap.m' xmlns:core='sap.ui.core' xmlns:t='sap.ui.table' xmlns:l='sap.ui.layout' xmlns:f='sap.ui.layout.form' xmlns:mc='sap.mcsuite.controls' xmlns:dnd='sap.ui.core.dnd' controllerName='sap.mcsuite.modules.clusters.tasks.clusters_show.controller.Task' xmlns:utils='sap.mcsuite.model.utils' xmlns:cssgrid='sap.ui.layout.cssgrid' xmlns:tcm='sap.m.table.columnmenu' core:require="{
    format: 'sap/mcsuite/model/Format', 
    translate: 'sap/mcsuite/model/Translate', 
    utils: 'sap/mcsuite/model/Utils'
  }" >
<cssgrid:CSSGrid id='header' class='header-container' width='100%' gridTemplateColumns='1fr 1fr 1fr'>
<HBox id='breadcrumb' class='breadcrumb-container' alignItems='Start' justifyContent='Start'>
  <Breadcrumbs class='breadcrumb' separatorStyle='Slash' currentLocationText='{query>/name}'>
    <Link id='homeLink' press='goHome' text='Home' icon='sap-icon://home'/>
    <Link id='moduleLink' press='taskNav' text='{parts: [{value:"FOLDER"}, {value:"CLUSTERS"}, {value:""}], formatter: "translate.Label.get"}'>
      <customData>
        <core:CustomData key='module' value='clusters'/>
        <core:CustomData key='task' value='index'/>
      </customData>
    </Link>
    </Breadcrumbs>
    </HBox>
<HBox id='title' class='title-container' alignItems='Center' justifyContent='Center'>
    <Title text='{query>/name}'  level='H1'/>
</HBox>
<HBox id='quicksearch' class='quicksearch-container' alignItems='Center' justifyContent='Center'>
</HBox>
  </cssgrid:CSSGrid>
<VBox id='content' class='content-container' alignItems='Start' justifyContent='Start' width='100%' wrap='Wrap'>
  <HBox class='options hidden-if-empty' width='100%'>
  </HBox>
  <HBox class='aside-main-container' width='100%'>
  <VBox class='aside hidden-if-empty'>
  </VBox>
  <VBox class='main'>
	<VBox class="mc-options" id="subtask28353" height='100%'>
    <HBox visible='false' id='subtask28353-activeActions' class="mc-options-hbox" backgroundDesign="Solid" alignContent="SpaceAround" justifyContent='Center' >
      <Button 
      	class="optionsButton" 
      	icon="sap-icon://fa-regular/pen" type="Emphasized"       
        visible="{parts: [{value: 'CLUSTERS.UPDATE_ALL'},{value: 'CLUSTERS.UPDATE_LIMITED'}], formatter: '.checkScopes'}" 
        tooltip='{parts: [{value:"ACTIONS"}, {value:"MODIFY"}, {value:"MODIFY"}], formatter: "translate.Label.get"}'
        id='subtask28353-optionsButton-1'
      >
        <customData>
        <core:CustomData key="module" value="clusters"/>
        <core:CustomData key="task" value="clusters_mod"/>
        <core:CustomData key='field' value='id'/>
        <core:CustomData key='value' value='{query>/id}'/>
        </customData>
      </Button>
      <Button 
      	class="optionsButton" 
      	icon="sap-icon://fa-regular/file-pdf" 
        type="Emphasized"       
        visible="{parts: [{value: 'CLUSTERS.READ_ALL'}], formatter: '.checkScopes'}" 
        tooltip='{parts: [{value:"ACTIONS"}, {value:"PDF"}, {value:"PDF"}], formatter: "translate.Label.get"}'
        id='subtask28353-optionsButton-3'
      >
      </Button>
      <Button 
      	class="optionsButton" 
      	icon="sap-icon://fa-regular/trash" 
        type="Emphasized"       
        visible="{parts: [{value: 'CLUSTERS.DELETE_ALL'}, {value: 'CLUSTERS.DELETE_LIMITED'}], formatter: '.checkScopes'}" 
        tooltip='{parts: [{value:"ACTIONS"}, {value:"DELETE"}, {value:"DELETE"}], formatter: "translate.Label.get"}'
        id='subtask28353-optionsButton-2'
      >
        <customData>
        <core:CustomData key="module" value="clusters"/>
        <core:CustomData key="task" value="delete"/>
        <core:CustomData key='field' value='id'/>
        <core:CustomData key='value' value='{query>/id}'/>
        </customData>
      </Button>
    </HBox>
    <HBox visible='false' id='subtask28353-inactiveActions' class="mc-options-hbox" backgroundDesign="Solid" alignContent="SpaceAround" justifyContent='Center' >
      <Button 
      	class="optionsButton" 
        icon="sap-icon://fa-regular/recycle" 
        type="Emphasized"       
        visible="{parts: [{value: 'CLUSTERS.UPDATE_ALL'},{value: 'CLUSTERS.UPDATE_LIMITED'}], formatter: '.checkScopes'}" 
        tooltip='{parts: [{value:"ACTIONS"}, {value:"MODIFY"}, {value:"MODIFY"}], formatter: "translate.Label.get"}'
        id='subtask28353-reactive'
      >
        <customData>
        <core:CustomData key="module" value="clusters"/>
        <core:CustomData key="task" value="delete"/>
        <core:CustomData key='field' value='id'/>
        <core:CustomData key='value' value='{query>/id}'/>
        </customData>
      </Button>
    </HBox>
	</VBox>
  <VBox class='mc-show mc-form' backgroundDesign='Solid' alignContent='SpaceAround' id='subtask26386' >
    <Title text='{parts: [{value:"SUBTITLE"}, {value:"26386"}, {value:"Show"}], formatter: "translate.Label.get"}' level='H2'/>
    <IconTabBar expandable='false' class='mc-form-tabbar' id='subtask26386-iconTabBar'>
    <items>
      <IconTabFilter text='{parts: [{value:"TAB"}, {value:"57008"}, {value:"Datos generales"}], formatter: "translate.Label.get"}'>
      <f:Form editable='false'>
        <f:layout>
        <f:ResponsiveGridLayout
         labelSpanXL='2'
         labelSpanL='2'
         labelSpanM='2'
         labelSpanS='2'
         adjustLabelSpan='true'
         emptySpanXL='0'
         emptySpanL='4'
         emptySpanM='0'
         emptySpanS='0'
         columnsXL='1'
         columnsL='1'
         columnsM='1'
         singleContainerFullSize='true'
        />
        </f:layout>
      <f:formContainers>
      <f:FormContainer>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"name"}], formatter: "translate.Field.get"}' visible='{= !!${path: "name", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: 'name',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"cat_id"}], formatter: "translate.Field.get"}' visible='{= !!${path: "cat_id", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: '_cat_id/name',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"status"}], formatter: "translate.Field.get"}' visible='{= !!${path: "status", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: '_status/name',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"field_free1"}], formatter: "translate.Field.get"}' visible='{= !!${path: "field_free1", targetType: "any"} }'>
      <f:fields>
       <Link 
            class='no-border' 
            text='{_field_free1/name}' 
            tooltip='Details' 
            press='utils.Table.onActionPress' 
        > 
           <customData> 
                <core:CustomData key='module' value='alerts'/> 
                <core:CustomData key='task' value='alerts_show'/> 
                <core:CustomData key='field' value='id'/> 
                <core:CustomData key='value' value='{_field_free1/id}'/> 
            </customData> 
        </Link> 
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"field_free2"}], formatter: "translate.Field.get"}' visible='{= !!${path: "field_free2", targetType: "any"} }'>
      <f:fields>
       <Link 
            class='no-border' 
            text='{_field_free2/name}' 
            tooltip='Details' 
            press='utils.Table.onActionPress' 
        > 
           <customData> 
                <core:CustomData key='module' value='alerts'/> 
                <core:CustomData key='task' value='alerts_show'/> 
                <core:CustomData key='field' value='id'/> 
                <core:CustomData key='value' value='{_field_free2/id}'/> 
            </customData> 
        </Link> 
      </f:fields>
      </f:FormElement>
      </f:FormContainer>
      </f:formContainers>
      </f:Form>
      </IconTabFilter>
      <IconTabFilter text='{parts: [{value:"TAB"}, {value:"57021"}, {value:"Otros Datos"}], formatter: "translate.Label.get"}'>
      <f:Form editable='false'>
        <f:layout>
        <f:ResponsiveGridLayout
         labelSpanXL='2'
         labelSpanL='2'
         labelSpanM='2'
         labelSpanS='2'
         adjustLabelSpan='true'
         emptySpanXL='0'
         emptySpanL='4'
         emptySpanM='0'
         emptySpanS='0'
         columnsXL='1'
         columnsL='1'
         columnsM='1'
         singleContainerFullSize='true'
        />
        </f:layout>
      <f:formContainers>
      <f:FormContainer>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"comment"}], formatter: "translate.Field.get"}' visible='{= !!${path: "comment", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: 'comment',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"date_create"}], formatter: "translate.Field.get"}' visible='{= !!${path: "date_create", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: 'date_create', type: 'format.Date',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"user_create"}], formatter: "translate.Field.get"}' visible='{= !!${path: "user_create", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: 'user_create',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"date_mod"}], formatter: "translate.Field.get"}' visible='{= !!${path: "date_mod", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: 'date_mod', type: 'format.Date',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_clusters_bs"}, {value:"user_mod"}], formatter: "translate.Field.get"}' visible='{= !!${path: "user_mod", targetType: "any"} }'>
      <f:fields>
      <Text text="{path: 'user_mod',targetType: 'any'}"/>
      </f:fields>
      </f:FormElement>
      </f:FormContainer>
      </f:formContainers>
      </f:Form>
      </IconTabFilter>
    </items>
    </IconTabBar>
  </VBox>
<VBox class='mc-items' backgroundDesign='Solid' alignContent='SpaceAround' id='subtask26871' width='100%'  visible='{parts: [{value: "CLUSTERS.READ_ALL"}, {value: "CLUSTERS.READ_LIMITED"}], formatter: ".checkScopes"}'>
  <HBox width='100%' justifyContent='SpaceBetween' alignItems='Center' class='mc-items-toolbar'>
    <VBox class='mc-items-title-container'>
      <HBox justifyContent='Start' alignItems='Center'>
        <Title text='{parts: [{value:"ITEMS"}, {value:"26871"}, {value:"Objekte"}], formatter: "translate.Label.get"}' level='H2' />
        <Button class='mc-items-expandButton' id='subtask26871-expandButton' icon='sap-icon://fa-solid/chevron-right' type='Transparent'/>
      </HBox>
      <HBox justifyContent='Start' alignItems='Center'>
        <Text           text="{= %{path: '$count', targetType: 'string'} !== null ? ${$count} + ' ' : '0 '}"           id='subtask26871-title'           class='sapUiTinyMarginEnd'         />
        <Text           text='{parts: [{value:"SUBTITLE"}, {value:"26871"}, {value:" Einträge"}], formatter: "translate.Label.get"}'           id='subtask26871-title-label'         />
      </HBox>
    </VBox>
    <HBox class='mc-items-toolbarButton-container'>
      <Input id='subtask26871-searchInput' placeholder='{parts: [{value:"SEARCH"}, {value:"26871"}, {value:"Suche"}], formatter: "translate.Label.get"}'/>
      <Button class='mc-items-toolbarButton' id='subtask26871-addButton' icon='sap-icon://fa-solid/plus' type='Unstyled' press='taskNav' visible='{parts: [{value: "CLUSTERS.ASSIGN_ALL"}], formatter: ".checkScopes"}'>
        <customData>
          <core:CustomData             key='module'             value='clusters'           />
          <core:CustomData             key='task'             value='detail_add'           />
          <core:CustomData             key='field'             value='cluster_id'           />
          <core:CustomData             key='value'             value="{path: 'query>/id', type: 'sap.ui.model.type.Integer', formatOptions:{groupingEnabled: false}}"           />
          <core:CustomData             key='type'             value='SHOP'           />
        </customData>
      </Button>
    </HBox>
  </HBox>
  <List items="{path: '/crm_shops_bs'}" id='subtask26871-items' width='100%' visible='false'>
    <core:Fragment       fragmentName='sap.mcsuite.view.fragments.items.clusters_assignment_shops_item'      type='XML'     />
  </List>
</VBox>
  </VBox>
  </HBox>
</VBox>
</mvc:View>