<div ng-hide="inprogress">
  <select-objects-for-treatment
    data-geo-limit="geoLimit"
    >
  </select-objects-for-treatment>

  <div class="input-group">
    <div
      class="col-sm-2"
      edit-polygon
      map="map"
      res="limitZoneGeometry"
      ng-show="geoLimit=='Zone'"
      toolbarwidget="toolBarWidget"
      usemode="'edition'">
    </div>
  </div>
  <label><translate>geotreat.Source_Component </translate></label>
  <div model-component geomtype="LINE" res="fti1"></div>
  <br />
  <label><translate>geotreat.InputLineNearest </translate> </label>
  <div model-component geomtype="LINE" res="fti2"></div>
  <div class="row">
    <label class="col-xs-6"><translate>geotreat.Distance_min </translate></label
    ><label class="col-xs-6"
      ><translate>geotreat.Distance_max </translate></label
    >
  </div>
  <div class="row">
    <div class="col-xs-6">
      <input
        class="form-control"
        type="number"
        ng-model="distanceMin"
        min="0"
      />
    </div>
    <div class="col-xs-6">
      <input
        class="form-control"
        type="number"
        ng-model="distanceMax"
        min="0"
      />
    </div>
  </div>

  <button
    type="button"
    class="btn btn-default"
    title="Configuration"
    ng-click="run(fti1,fti2,distanceMin,distanceMax)"
    ng-disabled="!(geoLimit&&fti1.uid&&fti2.uid&&(distanceMin==0 ||distanceMin)&&(distanceMax==0 ||distanceMax))"
  >
    <translate>geotreat.Run</translate>
  </button>
</div>
<div ng-show="inprogress">
  <div class="geoloader" style="height:200px">
    <i class="fa fa-cog fa-spin fa-3x fa-fw margin-bottom"></i>

    <span class="main">
      <translate>common.processing </translate>
    </span>
    <br />
    <span class="main">
      {{state.infoMessage}}
    </span>
  </div>

  <button
    type="button"
    class="btn btn-default"
    title="Configuration"
    ng-click="stop()"
    style="z-index:1600"
  >
    <translate>geotreat.Stop </translate>
  </button>
</div>
