<div class="editList_header clearfix">
  <div class="buttons">
    <button
      type="button"
      class="btn btn-mini btn-success"
      ng-click="addNewTrigger()"
    >
      <translate>common.add</translate>
    </button>
    <button
      type="button"
      class="btn btn-mini btn-danger"
      ng-click="removeTriggerFromFeatureType()"
    >
      <translate>common.delete</translate>
    </button>
  </div>
  <h4><translate>model.featuretypes.triggers.title</translate></h4>
</div>
<div>
  <table ng-table="tableParams" class="table table-striped">
    <thead>
      <tr>
        <th><translate>common.name</translate></th>
        <th><translate>model.featuretypes.triggers.targetField</translate></th>
        <th><translate>model.featuretypes.triggers.actionExecution</translate></th>
        <th><translate>model.featuretypes.triggers.triggerActivated</translate></th>
        <th><translate>model.featuretypes.triggers.edit</translate></th>
      </tr>
    </thead>
    <tbody>
      <tr
        class="textAlignCenter"
        ng-repeat="trigger in currentfeaturetype.triggers"
        ng-class="{'active': trigger.$selected}"
        ng-click="noselectionatAll(trigger);trigger.$selected = !trigger.$selected"
        aria-selected="{{trigger.$selected}}"
      >
        <td>{{trigger.name}}</td>
        <td>{{trigger.targetField}}</td>
        <td>{{getTriggerType(trigger)}}</td>
        <td>
          <div ng-if="trigger.enabled" class="text-success bg-success div-icon-boolean">&#x2714;</div>
          <div ng-if="!trigger.enabled" class="text-danger bg-danger div-icon-boolean">&#x2716;</div>
        </td>
        <td>
          <button
            type="button"
            class="btn btn-mini btn-info"
            ng-click="updateTrigger($index)"
          >
            <translate>common.details</translate>
          </button>
        </td>
      </tr>
    </tbody>
  </table>
</div>