<div class="modal" tabindex="-1" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" ng-click="closeRelatedData()">
          <i class="fa fa-times"></i>
        </button>
        <button type="button" class="close" ng-click="hideForm()">
          <i class="fa fa-minus"></i>
        </button>
        <h4 class="modal-title">
          <translate
            >tools.builder.fields.relations.form.relatedeatures</translate
          >
        </h4>
      </div>
      <div class="modal-body">
        <div
          geojsondata="nmdata.geojson"
          fti="matchfti"
          crud="nmCrud"
          button-edit="buttonNMEditIcon"
          map="map"
          no-default-action="true"
          relationshow="true"
          height="330"
          gcdata-datatable
        ></div>
      </div>
      <div class="modal-footer">
        <button
          type="button"
          class="btn btn-default"
          ng-click="closeForm(true)"
          style="float: left;"
        >
          {{'common.allclose' | translate }}
        </button>
        <button
          ng-if="rel.composite"
          class="btn btn-primary"
          type="button"
          ng-click="addNewComponent()"
        >
          <translate
            >{{'tools.builder.fields.relations.form.newcomponent'}}</translate
          >
        </button>
      </div>
    </div>
  </div>
</div>
