<div class="">
  <h3 class="modalTitle">
    Contrôle
  </h3>
  <div class="modalBody">
    <div class="row">
      <div class="form-intermediate-title">Ajouter un nouveau contrôle</div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <label class="required"> Agent </label>
        <div class="input-group">
          <div style="display: none">
            <input
              type="text"
              class="form-control"
              ng-model="selectcontroleexterne.agent"
              disabled
            />
          </div>
          <input
            type="text"
            class="form-control"
            ng-model="selectcontroleexterne.agent_name"
            disabled
          />
          <span class="input-group-btn">
            <user-picker res="userPicker.agent"></user-picker>
          </span>
        </div>
      </div>
      <div class="col-xs-12">
        <div class="checkbox">
          <label>
            <input
              type="checkbox"
              ng-model="selectcontroleexterne.subvention"
            />
            Éligible à subvention
          </label>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <div
          class="alert alert-info inlinealert"
          ng-if="!selectcontroleexterne.agent"
        >
          Veuillez choisir un agent.
        </div>
        <button
          type="button"
          class="btn btn-primary pull-right"
          ng-click="appliquerControleExterne()"
          ng-disabled="!selectcontroleexterne.agent"
        >
          Enregistrer
        </button>
      </div>
    </div>
  </div>
</div>
