<div class="row spbrow">
  <div class="col-xs-12">
    <button
      type="button"
      class="btn btn-default pull-right"
      ng-click="addNewGeoCodage()"
    >
      <i class="fa fa-plus"></i>
    </button>
  </div>
</div>
<div class="row">
  <div class="col-xs-12">
    <table class="table table-bordered table-striped">
      <tr>
        <th class="col-xs-3">
          <translate>portals.geocodage.name</translate>
        </th>
        <th class="col-xs-4">
          <translate>portals.geocodage.url</translate>
        </th>
        <th class="col-xs-4">
          <translate>portals.geocodage.detail</translate>
        </th>
        <th class="col-xs-1"></th>
      </tr>
      <tr
        ng-repeat="x in edit_resource.parameters.kisgeocodage track by $index"
      >
        <td ng-class="{'has-error': kisgeocodagename === x.label}">
          <input type="text" class="form-control" ng-model="x.label" />
        </td>
        <td>
          <input type="text" class="form-control" ng-model="x.url" />
        </td>
        <td>
          <textarea
            rows="2"
            class="form-control"
            ng-model="x.detail"
          ></textarea>
        </td>
        <td>
          <div class="btn btn-danger btn-xs" ng-click="removeGeoCodage($index)">
            <i class="fa fa-times"></i>
          </div>
        </td>
      </tr>
    </table>
  </div>
  <div class="col-xs-12">
    <div ng-show="kisgeocodagename" class="alert alert-danger">
      <translate>portals.geocodage.samelabel</translate>
    </div>
  </div>
</div>
