<h3 class="modalTitle">
  Modèle règlementaire ({{
  getElementFiliereAlias(currentElementReglementaire)}})
</h3>
<div class="modalBody">
  <div class="row">
    <div class="col-xs-12">
      <label class="required"> Nom </label>
      <input
        type="text"
        class="form-control"
        ng-model="currentModeleReglementaire.name"
      />
      <div
        class="alert alert-danger alert-inline"
        ng-if="modeleReglementaireErrors.errors.name_exists"
      >
        Un modèle portant ce nom existe déjà
      </div>
    </div>
  </div>
  <div class="row largeInputGroup">
    <div class="col-xs-12">
      <div ng-repeat="a in modelefti.attributes">
        <div ng-if="displayAttributeForModeleReglementaire(a)">
          <label> {{ a.alias }} </label>
          <div
            form-field
            fti="ftiWithoutRestrict"
            attname="a.name"
            res="currentModeleReglementaire.properties"
            ng-if="!controleClos"
          ></div>
          <input
            type="text"
            ng-if="controleClos"
            ng-model="currentModeleReglementaire.properties[a.name]"
            class="form-control"
            disabled
          />
        </div>
      </div>
    </div>
  </div>

  <div class="row" ng-if="allowEditModele">
    <div class="col-xs-12 text-right">
      <hr />
      <div
        class="btn btn-primary"
        ng-click="editModeleReglementaire()"
        ng-disabled="!checkCanEditModeleReglementaire()"
      >
        Enregistrer
      </div>
    </div>
  </div>
</div>
