<div class="">
  <h3 class="modalTitle">
    Nouveau rapport
  </h3>
  <div class="modalBody">
    <div class="row spbrow">
      <div class="col-xs-12">
        <label class="control-label">Type</label>
      </div>
      <div class="col-xs-12">
        <select
          class="form-control"
          ng-options="type.key as type.label for type in typesRapports"
          ng-model="newDashboard.type"
          ng-change="newDashboard.fichier=null"
        ></select>
      </div>
    </div>
    <div class="row spbrow">
      <div class="col-xs-12">
        <label class="control-label">Label</label>
      </div>
      <div class="col-xs-12">
        <input type="text" class="form-control" ng-model="newDashboard.label" />
      </div>
    </div>

    <div class="row spbrow">
      <div class="col-xs-12">
        <label class="control-label">Description</label>
      </div>
      <div class="col-xs-12">
        <textarea
          class="form-control"
          ng-model="newDashboard.detail"
        ></textarea>
      </div>
    </div>

    <div class="row spbrow">
      <div class="col-xs-12">
        <label class="control-label">Fichier</label>
      </div>
      <div class="col-xs-12">
        <select
          class="form-control"
          ng-options="item.name as item.name for item in listTemplates"
          ng-model="newDashboard.fichier"
          ng-show="newDashboard.type=='modele'"
        >
        </select>
      </div>
    </div>

    <div class="row">
      <div class="col-xs-12">
        <hr />
        <button
          type="button"
          class="btn btn-default pull-right"
          ng-click="addDashboard(newDashboard)"
        >
          Enregistrer
        </button>
      </div>
    </div>
  </div>
</div>
