<form
  name="Atlas_Form_global"
  id="actionChoiceCfgModal"
  ng-submit="addAtlasInList(currentAtlasRessource);closeThisDialog();"
  class="form"
  role="form"
>
  <div class="row">
    <div class="col-xs-12">
      <div class="input-group">
        <!--h3 translate> tools.atlas.title </h3-->
        <div ng-switch="editMode">
          <h3 ng-switch-when="add">
            <translate>tools.atlas.create</translate>
          </h3>
          <h3 ng-switch-when="update">
            <translate>tools.atlas.update</translate>
          </h3>
        </div>
      </div>
    </div>
  </div>
  <hr />
  <div class="row">
    <div class="col-xs-12">
      <div class="input-group">
        <span class="input-group-addon" translate>common.name</span>
        <input
          id="modelname"
          name="modelname"
          type="text"
          placeholder="{{ 'common.name' | translate }}"
          ng-model="currentAtlasRessource.name"
          class="form-control"
          required
        />
      </div>
    </div>
  </div>
  <hr/>
  <div class="row">
    <div class="col-md-12">
      <atlas-cartographique current-atlas-ressource="currentAtlasRessource"/>
    </div>
  </div>
  <hr/>
  <!-- Boutons d'actions -->
  <div class="form-group clearfix">
    <div class="col-xs-12" style="padding-right:0;">
      <div class="text-right">
        <close-modale-button></close-modale-button>
        <button
          type="submit"
          class="btn btn-primary"
          title="{{'model.featuretypes.rules.addorupdate' | translate}}"
        >
          <translate>common.save</translate>
        </button>
      </div>
    </div>
  </div>
</form>
