<h3 ng-if="editModalIsNew">
  <translate>model.featuretypes.attributes.create</translate>
</h3>
<h3 ng-if="!editModalIsNew">
  <translate>model.featuretypes.attributes.edit</translate>
</h3>

<form
  ng-submit="AddOrInsertAttributeToFeatureType(); "
  class="form"
  role="form"
>
  <div ng-model="attributeTabs.activeTab" bs-tabs>
    <div
      ng-repeat="tab in attributeTabs"
      title="{{tab.title|translate}} {{tab.nb}}"
      bs-pane
    >
      <ng-include src="tab.content" />
    </div>
  </div>

  <hr />

  <div class="form-group clearfix">
    <div class="col-xs-12 text-right">
      <close-modale-button></close-modale-button>
      <button
        type="submit"
        class="btn btn-primary"
        ng-disabled="!validAttributeForm.name"
      >
        <translate>common.save</translate>
      </button>
    </div>
  </div>
</form>
