<h3 class="modalTitle" translate>
  hpo.common.configurationpage.initapp
</h3>
<div class="modalBody">
  <div class="row">
    <div class="col-xs-12" translate>
      hpo.common.configurationpage.infoapp
    </div>
  </div>

  <br />

  <div class="row sprow">
    <div class="col-xs-12" ng-show="datastores.length==0">
      <div
        class="alert alert-danger"
        ng-bind-html="{{ hpo.common.configurationpage.nodataapp | translate }}"
      ></div>
    </div>
    <div class="col-xs-12" ng-show="datastores.length>0">
      <label translate>hpo.common.configurationpage.datstre</label>
      <select
        ng-model="initDatastore"
        ng-options="dataStore as dataStore.name for dataStore in datastores"
        class="form-control"
        required
      >
        <option value="" translate
          >hpo.common.configurationpage.selectdatastore</option
        >
      </select>
    </div>
  </div>

  <div class="row sprow">
    <div class="col-xs-12" ng-show="datastores.length>0">
      <input
        type="checkbox"
        ng-model="create_tables"
        ng-init="create_tables = true"
        disabled
      />
      {{ "hpo.common.configurationpage.createapp" | translate }}
    </div>
  </div>

  <br />

  <div class="row sprow">
    <div class="col-xs-12">
      <label translate>mapv2.admin.configurationpage.modules</label>
    </div>
  </div>

  <div class="row sprow">
    <div class="col-xs-8 col-xs-offset-2">
      <input
        type="checkbox"
        ng-model="manipulate_data"
        ng-init="manipulate_data = true"
        disabled
      />
      {{ "mapv2.admin.configurationpage.data" | translate }}
    </div>
  </div>

  <div class="row sprow">
    <div class="col-xs-8 col-xs-offset-2">
      <input type="checkbox" ng-model="multicritere" />
      {{ "mapv2.admin.configurationpage.multicritere" | translate }}
    </div>
  </div>

  <div class="row">
    <div class="col-xs-12 text-right">
      <div
        class="btn btn-default"
        ng-disabled="!initDatastore"
        ng-click="initApp(initDatastore , manipulate_data , multicritere)"
        translate
      >
        hpo.common.configurationpage.initapp
      </div>
    </div>
  </div>
</div>
