<h3 class="modalTitle">
  <translate ng-if="isNew">hpo.common.addstat</translate>
  <translate ng-if="!isNew">hpo.common.updatestat</translate>
</h3>
<form id="formulaire-feature" ng-submit="confirm(statistic)">
  <div class="modalBody marginTop">
    <div class="row">
      <div class="col-xs-12">
        <div class="col-md-4" style="padding:8px 0px 0px 0px;">
          <label class="required" translate>hpo.common.name</label>
        </div>
        <div class="col-md-8" style="padding-top:0px;padding-left: 0px;">
          <input
            type="text"
            class="form-control"
            ng-model="statistic.name"
            limit="25"
            required
          />
        </div>
      </div>
    </div>

    <br />

    <div class="col-xs-12 nopadding">
      <div class="col-md-6">
        <div class="panel panel-primary panel-hpo">
          <h4 class="adjust-positions text-left" translate>
            hpo.common.components
          </h4>
          <div
            class="row adjust-positions"
            css-manipulate='{ "mh":"350px","ovy":"auto" }'
          >
            <div
              class="col-md-12"
              ng-hide="!fti"
              ng-repeat="fti in ftis track by $index "
            >
              <input
                type="radio"
                ng-model="statistic.ftiuid"
                ng-value="fti.uid"
                ng-change="changedCorrectionToolOrFti3(statistic)"
              />
              {{ fti.alias }}
            </div>
          </div>
          <br />
        </div>
      </div>
      <div class="col-md-6">
        <div class="panel panel-primary panel-hpo">
          <h4 class="adjust-positions text-left" translate>
            hpo.common.componentsdefails
          </h4>
          <div
            class="row adjust-positions"
            css-manipulate='{ "mh":"350px","ovy":"auto" }'
          >
            <div
              class="col-md-12"
              ng-hide="!fti"
              ng-repeat="fti in ftisdefail track by $index "
            >
              <input
                type="radio"
                ng-model="statistic.ftidefailuid"
                ng-value="fti.uid"
                disabled
              />
              {{ fti.alias }}
            </div>
          </div>
          <br />
        </div>
      </div>
    </div>

    <hr />

    <!-- Single button -->
    <div class="row nomargin">
      <div class="col-xs-12 text-right nopadding-col marginBottom">
        <button
          class="btn btn-primary"
          type="submit"
          ng-disabled="!statistic.name"
        >
          <translate>common.save</translate>
        </button>
      </div>
    </div>
  </div>
</form>
