<label class="rulesCfgTitle" translate
  >rulecfg.mergeintersectinglines.title</label
><br />
<div ng-if="currentfeaturetype.typeInfo == 'POINT' ">
  <div ng-if="editTypeList">
    <div class="ruleCfgEditTypeList" dual-list-box data="editTypeList"></div>
  </div>

  <table style=" text-align: left;">
    <tr>
      <td>
        <translate>rulecfg.mergeintersectinglines.intersectionlayers</translate>
      </td>
    </tr>
    <tr>
      <td>
        <select
          class="ruleCfgInput"
          ng-model="temp"
          ng-change="onLayerChange(temp)"
          ng-options="f as f.alias for f in featureTypes"
        >
          <option value="" translate>rulecfg.common.choiceprompt</option>
        </select>
      </td>
    </tr>
  </table>

  <table style=" text-align: left;">
    <tr>
      <td>
        <translate>rulecfg.mergeintersectinglines.lengthFieldName</translate>
      </td>
      <td>
        <translate>rulecfg.mergeintersectinglines.materialFieldName</translate>
      </td>
      <td>
        <translate>rulecfg.mergeintersectinglines.diameterFieldName</translate>
      </td>
      <td><translate>rulecfg.mergeintersectinglines.Add</translate></td>
    </tr>
    <tr>
      <td>
        <select
          class="ruleCfgInput"
          ng-model="lengthFieldName"
          ng-change="onLengthFieldNameChange(lengthFieldName)"
          ng-options="a.name as a.alias for a in temp.attributes"
        >
          <option value="" translate>rulecfg.common.choiceprompt</option>
        </select>
      </td>
      <td>
        <select
          class="ruleCfgInput"
          ng-model="materialFieldName"
          ng-change="onMaterialfieldNameChange(materialFieldName)"
          ng-options="a.name as a.alias for a in temp.attributes"
        >
          <option value="" translate>rulecfg.common.choiceprompt</option>
        </select>
      </td>
      <td>
        <select
          class="ruleCfgInput"
          ng-model="diameterFieldName"
          ng-change="onDiameterFieldNameChange(diameterFieldName)"
          ng-options="a.name as a.alias for a in temp.attributes"
        >
          <option value="" translate>rulecfg.common.choiceprompt</option>
        </select>
      </td>
      <td>
        <button
          type="button"
          class="btn btn-mini btn-success"
          ng-click="addObject()"
        >
          +
        </button>
      </td>
    </tr>
  </table>

  <div style="padding-top: 15px; text-align: center; width: 100%">
    <label ng-show="rule['parameters']['layersObjects'].length > 0" translate
      >rulecfg.mergeintersectinglines.layersListTitle</label
    ><br />
    <table
      ng-show="rule['parameters']['layersObjects'].length > 0"
      style="border-spacing: 10px 0px; border-collapse: separate; display: inline-block"
    >
      <!--        <table ng-show="rule['parameters']['layersObjects'].length > 0" class="rulecfgcutintersectedLineTab" style="border-color:greenyellow;">-->
      <tr>
        <th>
          <translate>rulecfg.mergeintersectinglines.layersColumn</translate>
        </th>
        <!--            <th><translate>rulecfg.mergeintersectinglines.materialFieldName</translate></th>
                <th><translate>rulecfg.mergeintersectinglines.diameterFieldName</translate></th>
                <th><translate>rulecfg.mergeintersectinglines.lengthFieldName</translate></th>-->
        <th>
          <translate
            >rulecfg.mergeintersectinglines.isToBeHistoricizeColumn</translate
          >
        </th>
        <th>
          <translate>rulecfg.mergeintersectinglines.deleteColumn</translate>
        </th>
      </tr>
      <tr ng-repeat="layerObj in rule['parameters']['layersObjects']">
        <td>{{layerObj.layerName}}</td>
        <!--           <td>{{layerObj.materialFieldName}}</td>
               <td>{{layerObj.diameterFieldName}}</td>
               <td>{{layerObj.lengthFieldName}}</td>            -->
        <td><input type="checkbox" ng-model="layerObj.isHistoricize" /></td>
        <td>
          <button
            type="button"
            class="btn btn-mini btn-danger"
            ng-click="removeObject($index)"
          >
            -
          </button>
        </td>
      </tr>
    </table>
  </div>
</div>
<div ng-if="currentfeaturetype.typeInfo != 'POINT'">
  <translate>rulecfg.common.rulenotfitthislayer</translate>
</div>
