<!-- Contenu de l'onglet de paramètrage des règles du featureType courant-->

<div class="editList_header clearfix">
  <div class="buttons">
    <button
      type="button"
      class="btn btn-mini btn-success"
      ng-click="addNewRule()"
    >
      <translate>common.add</translate>
    </button>
    <button
      type="button"
      class="btn btn-mini btn-danger"
      ng-click="removeRulesFromFeatureType()"
      ng-disabled="false"
    >
      <translate>common.delete</translate>
    </button>
  </div>
  <h4><translate>model.featuretypes.rules.title</translate></h4>
</div>
<div>
  <table ng-table="tableParams" class="table">
    <tr>
      <th>
        <translate>Name</translate>
      </th>
      <th>
        <translate>Type</translate>
      </th>
      <th>
        <translate>Action</translate>
      </th>
    </tr>
    <tr
      style="text-align: center;"
      ng-repeat="rule in $data"
      ng-class="{'active': rule.$selected}"
      ng-click="noselectionatAll(rule);rule.$selected = !rule.$selected"
      ui-draggable="true"
      drag="$index"
      ui-on-drop="onDropg2c($index , $data , rule)"
    >
      <td>{{rule["name"]}}</td>
      <td>{{rule["type"]}}</td>
      <td>
        <button
          type="button"
          class="btn btn-mini btn-info"
          ng-click="updateRule(rule)"
        >
          <translate>common.details</translate>
        </button>
        <button
          type="button"
          class="btn btn-default"
          title="up"
          ng-click="ruleMoveUp(rule)"
          ng-disabled="disableActionMove($index,'up')"
        >
          <span class="glyphicon glyphicon-chevron-up"> </span>
        </button>
        <button
          type="button"
          class="btn btn-default"
          title="down"
          ng-click="ruleMoveDown(rule)"
          ng-disabled="disableActionMove($index,'down')"
        >
          <span class="glyphicon glyphicon-chevron-down"> </span>
        </button>
      </td>
    </tr>
  </table>
</div>
