<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.contacts.tasks.contacts_add.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='{parts: [{value:"BREADCRUMB"}, {value:"6956"}, {value:"Add"}], formatter: "translate.Label.get"}'>
    <Link id='homeLink' press='goHome' text='Home' icon='sap-icon://home'/>
    <Link id='moduleLink' press='taskNav' text='{parts: [{value:"FOLDER"}, {value:"CONTACTS"}, {value:""}], formatter: "translate.Label.get"}'>
      <customData>
        <core:CustomData key='module' value='contacts'/>
        <core:CustomData key='task' value='index'/>
      </customData>
    </Link>
    </Breadcrumbs>
    </HBox>
<HBox id='title' class='title-container' alignItems='Center' justifyContent='Center'>
    <Title text='{parts: [{value:"TASK"}, {value:"6956"}, {value:""}], formatter: "translate.Label.get"}' 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-form' backgroundDesign='Solid' alignContent='SpaceAround' id='subtask26532' >
    <Title text='{parts: [{value:"SUBTITLE"}, {value:"26532"}, {value:"Agregar contacto"}], formatter: "translate.Label.get"}' level='H2'/>
    <IconTabBar expandable='false' class='mc-form-tabbar' id='subtask26532-iconTabBar'>
    <items>
      <IconTabFilter text='{parts: [{value:"TAB"}, {value:"57474"}, {value:"Datos generales"}], formatter: "translate.Label.get"}'>
      <f:Form editable='true'>
        <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_contacts_bs"}, {value:"greeting"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_greeting_field'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/greeting', targetType: 'string', type: 'sap.ui.model.type.String', formatOptions: { groupingEnabled: false }}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='false'/>
         <core:CustomData key='table' value=''/>
         <core:CustomData key='title' value='{parts: [{value:"crm_contacts_bs"}, {value:"greeting"}], formatter: "translate.Field.get"}' />
         <core:CustomData key='type' value='static'/> 
       </customData>
       <suggestionItems> 
         <core:Item key='Herr' text='Herr' /> 
         <core:Item key='Frau' text='Frau' /> 
         <core:Item key='Divers' text='Divers' /> 
       </suggestionItems> 
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"title"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_title_field'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/title', targetType: 'string', type: 'sap.ui.model.type.String', formatOptions: { groupingEnabled: false }}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='false'/>
         <core:CustomData key='table' value=''/>
         <core:CustomData key='title' value='{parts: [{value:"crm_contacts_bs"}, {value:"title"}], formatter: "translate.Field.get"}' />
         <core:CustomData key='type' value='static'/> 
       </customData>
       <suggestionItems> 
         <core:Item key='B.Sc.' text='B.Sc.' /> 
         <core:Item key='Dl.' text='Dl.' /> 
         <core:Item key='Dipl.-Inf' text='Dipl.-Inf' /> 
         <core:Item key='Dipl.-Ing' text='Dipl.-Ing' /> 
         <core:Item key='Dipl.-Wirtsch.-Inf' text='Dipl.-Wirtsch.-Inf' /> 
         <core:Item key='Dr.' text='Dr.' /> 
         <core:Item key='Mag.' text='Mag.' /> 
         <core:Item key='M.Eng.' text='M.Eng.' /> 
         <core:Item key='M.Sc.' text='M.Sc.' /> 
         <core:Item key='Prof.' text='Prof.' /> 
       </suggestionItems> 
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"status"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_status_field'  required='true'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/status', targetType: 'string', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" 
        suggestionItems="{path: '/crm_contacts_st'}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='true'/>
         <core:CustomData key='table' value='crm_contacts_st'/>
         <core:CustomData key='title' value='{parts: [{value:"crm_contacts_bs"}, {value:"status"}], formatter: "translate.Field.get"}' />
         <core:CustomData key='orderby' value='name'/>
         <core:CustomData key='filter' value=""/>
        </customData>
        <core:Item key="{path: 'id', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" text='{name}'/>
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"forename"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_forename_field'  required='true'  class='mc-add-input' value="{path: 'newEntity>/forename'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='true'/>
       </customData>
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"surname"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_surname_field'  required='true'  class='mc-add-input' value="{path: 'newEntity>/surname'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='true'/>
       </customData>
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"name"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_name_field'  class='mc-add-input' value="{path: 'newEntity>/name'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='false'/>
      	   <core:CustomData key='unique' value='true'/>
      	   <core:CustomData key='warning' value='true'/>
       </customData>
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"position"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_position_field'  required='true'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/position', targetType: 'string', type: 'sap.ui.model.type.String', formatOptions: { groupingEnabled: false }}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='true'/>
         <core:CustomData key='table' value=''/>
         <core:CustomData key='title' value='{parts: [{value:"crm_contacts_bs"}, {value:"position"}], formatter: "translate.Field.get"}' />
         <core:CustomData key='type' value='static'/> 
       </customData>
       <suggestionItems> 
         <core:Item key='9' text='9' /> 
         <core:Item key='8' text='8' /> 
         <core:Item key='7' text='7' /> 
         <core:Item key='6' text='6' /> 
         <core:Item key='5' text='5' /> 
         <core:Item key='4' text='4' /> 
         <core:Item key='3' text='3' /> 
         <core:Item key='2' text='2' /> 
         <core:Item key='1' text='1' /> 
       </suggestionItems> 
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"cat_id"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_cat_id_field'  required='true'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/cat_id', targetType: 'string', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" 
        suggestionItems="{path: '/crm_contacts_lk'}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='true'/>
         <core:CustomData key='table' value='crm_contacts_lk'/>
         <core:CustomData key='title' value='{parts: [{value:"crm_contacts_bs"}, {value:"cat_id"}], formatter: "translate.Field.get"}' />
         <core:CustomData key='orderby' value='name'/>
         <core:CustomData key='filter' value=""/>
        </customData>
        <core:Item key="{path: 'id', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" text='{name}'/>
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"client_id"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_client_id_field'  required='true'  
        showValueHelp='true' 
        selectedKey="{path: 'newEntity>/client_id', targetType: 'string', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" 
        suggestionItems="{path: '/crm_clients_bs'}" 
        valueHelpRequest='onValueHelpRequest' 
        class='mc-add-select' 
        editable='true' 
        valueHelpIconSrc='sap-icon://fa-solid/chevron-down' 
      > 
       <customData>
         <core:CustomData key='mandatory' value='true'/>
         <core:CustomData key='table' value='crm_clients_bs'/>
         <core:CustomData key='title' value='{parts: [{value:"crm_contacts_bs"}, {value:"client_id"}], formatter: "translate.Field.get"}' />
       	<core:CustomData key='fields' value='name,_parent_id/name'/>
         <core:CustomData key='orderby' value='name'/>
         <core:CustomData key='filter' value=""/>
        </customData>
        <core:Item key="{path: 'id', type: 'sap.ui.model.type.Integer', formatOptions: { groupingEnabled: false }}" text='{name}'/>
      </Input>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"field_free1"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <CheckBox id='mc_field_free1_field' selected="{path: 'newEntity>/field_free1', type: 'format.BooleanString'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='false'/>
       </customData>
      </CheckBox>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"field_free2"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <CheckBox id='mc_field_free2_field' selected="{path: 'newEntity>/field_free2', type: 'format.BooleanString'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='false'/>
       </customData>
      </CheckBox>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"field_free3"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <CheckBox id='mc_field_free3_field' selected="{path: 'newEntity>/field_free3', type: 'format.BooleanString'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='false'/>
       </customData>
      </CheckBox>
      </f:fields>
      </f:FormElement>
      <f:FormElement label='{parts: [{value:"crm_contacts_bs"}, {value:"comment"}], formatter: "translate.Field.get"}'>
      <f:fields>
      <Input id='mc_comment_field'  class='mc-add-input' value="{path: 'newEntity>/comment'}">
      	<customData>
      	   <core:CustomData key='mandatory' value='false'/>
       </customData>
      </Input>
      </f:fields>
      </f:FormElement>
      </f:FormContainer>
      </f:formContainers>
      </f:Form>
      </IconTabFilter>
    </items>
    </IconTabBar>
    <HBox width='100%' alignItems='Center' justifyContent='Center'>
      <Button text='{parts: [{value:"BUTTON"}, {value:"26532"}, {value:"Guardar"}], formatter: "translate.Label.get"}' id='subtask26532-submitButton'>
        <customData>
          <core:CustomData key='module' value='contacts'/>
          <core:CustomData key='task' value='contacts_show'/>
          <core:CustomData key='field' value='id'/>
          <core:CustomData key='value' value='{$id}'/>
        </customData>
      </Button>
    </HBox>
  </VBox>
  </VBox>
  </HBox>
</VBox>
</mvc:View>