<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:f="http://java.sun.com/jsf/core">
  <af:pageTemplate viewId="/template/toolbarTemplate.jspx"
                   value="#{bindings.pageTemplateBinding}" id="pt1">
    <f:facet name="facet1">
      <af:panelBox text="#{sc_moduleres.sectiondefinition_lbheader}"
                   id="pb_main" showDisclosure="false">
        <f:facet name="toolbar"/>
        <af:panelTabbed id="pt_main" styleClass="AFStretchWidth"
                        dimensionsFrom="auto"
                        partialTriggers="cb_rollback cb_commit cb_remove cb_new cb_filter cb_load cb_refresh">
          <af:showDetailItem text="#{sc_moduleres.sectiondefinition_tabsection}"
                             id="sdi_section">
            <af:table var="row" rowBandingInterval="0" id="entityT"
                      columnStretching="last" styleClass="AFStretchWidth"
                      partialTriggers="::cb_new ::cb_commit ::cb_rollback ::cb_remove"
                      value="#{pageFlowScope.sectionBean.baseRowCollection}"
                      rowSelection="single"
                      selectedRowKeys="#{pageFlowScope.sectionBean.entityTableRowKeySet}">
              <af:column sortable="false"
                         headerText="#{sc_moduleres.sectiondefinition_lbsectionname}"
                         align="left" id="c_rolegroup" width="230">
                <af:inputText value="#{row.baseEntity.name}" id="it_rolename"
                              label="Label 1" partialTriggers="cb_update"
                              autoSubmit="true" immediate="true"
                              readOnly="#{!row.rowProperties.updateable}"/>
              </af:column>
              <af:column sortable="false"
                         headerText="#{sc_moduleres.sectiondefinition_lbbranch}"
                         align="center" id="c_branch" width="230">
                <af:selectOneChoice id="soc_branch" autoSubmit="true"
                                    value="#{row.baseEntity.branch}" simple="true"
                                    disabled="#{!row.rowProperties.updateable}"
                                    partialTriggers="cb_update">
                  <f:selectItems value="#{pageFlowScope.sectionBean.branchSupplier.itemList}"
                                 id="selectItems_roles"/>
                </af:selectOneChoice>
              </af:column>
              <af:column id="c_updateBtn" width="67"
                         headerClass="columnHeaderClass">
                <af:commandButton text="Güncelle" id="cb_update"
                                  partialSubmit="true"
                                  actionListener="#{pageFlowScope.sectionBean.update}"
                                  immediate="true"
                                  disabled="#{row.rowProperties.updateable}"
                                  partialTriggers="cb_update"/>
              </af:column>
            </af:table>
          </af:showDetailItem>
          <af:showDetailItem text="#{sc_moduleres.sectiondefinition_tabtable}"
                             id="sdi_table" styleClass="AFStretchWidth">
            <af:table var="rowTable" rowBandingInterval="0" id="tableT"
                      rowSelection="single" immediate="true"
                      columnBandingInterval="0" disableColumnReordering="true"
                      columnStretching="column:c_tablename"
                      rendered="#{pageFlowScope.sectionBean.selectedMainEntity ne null}"
                      value="#{pageFlowScope.sectionBean.selectedMainEntity.tables}"
                      styleClass="AFStretchWidth"
                      selectedRowKeys="#{pageFlowScope.sectionBean.tableTableRowKeySet}">
              <af:column sortable="false"
                         headerText="#{sc_moduleres.sectiondefinition_lbtablename}"
                         id="c_tablename" width="300"
                         headerClass="columnHeaderClass">
                <af:inputText value="#{rowTable.name}"
                              id="it_tablename" label="Label 1" autoSubmit="true"
                              immediate="true"
                              disabled="#{!pageFlowScope.sectionBean.selectedMainBaseRow.rowProperties.updateable}"/>
              </af:column>
              <af:column sortable="false"
                         headerText="#{sc_moduleres.sectiondefinition_lbtablecapacity}"
                         id="c_capacity" width="150"
                         headerClass="columnHeaderClass">
                <af:inputText value="#{rowTable.capacity}" id="it_capacity"
                              label="Label 1"
                              autoSubmit="true" immediate="true"
                              disabled="#{!pageFlowScope.sectionBean.selectedMainBaseRow.rowProperties.updateable}">
                  <f:convertNumber type="number" integerOnly="true"
                                   pattern="#####"/>
                </af:inputText>
              </af:column>
            </af:table>
          </af:showDetailItem>
        </af:panelTabbed>
      </af:panelBox>
    </f:facet>
    <f:attribute name="toolbarCommandsBean"
                 value="#{pageFlowScope.sectionBean}"/>
  </af:pageTemplate>
</jsp:root>
