<!-- Composant de visualisation des objets partagés par l'ensemble des config de règles -->
<cfg-rules-infos
  id="updateCfgRulesInfos"
  featuretype="currentfeaturetype"
></cfg-rules-infos
><br />

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

  <table>
    <tr>
      <td>
        <translate>rulecfg.moveObjectsOnLine.intersectionlayers</translate>
      </td>
      <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>
      <td>
        <button
          type="button"
          class="btn btn-mini btn-success"
          ng-click="addShareObject()"
          translate
        >
          rulecfg.getintersectingpoint.addShareObject
        </button>
      </td>
    </tr>
    <tr></tr>
  </table>

  <label ng-show="rule['parameters']['shareObjects'].length > 0" translate
    >rulecfg.moveObjectsOnLine.objectsToMove</label
  ><br />
  <table
    ng-show="rule['parameters']['shareObjects'].length > 0"
    id="rulecfggetintersectingPointTab"
  >
    <tr>
      <th><translate>rulecfg.getintersectingpoint.layersColumn</translate></th>
      <th>
        <translate>rulecfg.deleteObjectsOnLine.shareObjectNameColumn</translate>
      </th>
      <th>
        <translate
          >rulecfg.cutintersectingline.isToBeHistoricizeColumn</translate
        >
      </th>
      <th><translate>rulecfg.getintersectingpoint.deleteColumn</translate></th>
    </tr>
    <tr ng-repeat="shareObject in rule['parameters']['shareObjects']">
      <td>{{shareObject.layerName}}</td>
      <!--<td><input ng-model="shareObject.name" ng-change="updateSharedObjects(shareObject)" required/></td>-->
      <td>
        <select
          class="ruleCfgInput"
          ng-model="shareObject.name"
          ng-options="shareObjName for shareObjName in allSharedObjectsNames"
        >
          <option value="" translate>rulecfg.common.choiceprompt</option>
        </select>
      </td>
      <td><input type="checkbox" ng-model="shareObject.isHistoricize" /></td>
      <td>
        <button
          type="button"
          class="btn btn-mini btn-danger"
          ng-click="removeShareObject($index)"
        >
          -
        </button>
      </td>
    </tr>
  </table>
</div>
<div ng-if="currentfeaturetype.typeInfo != 'LINE' ">
  <translate>rulecfg.common.rulenotfitthislayer</translate>
</div>
