<div class="popover">
  <h3 class="popover-title">
    <translate>
      tools.builder.fields.network.path_route_from_nodes.title
    </translate>
  </h3>
  <div class="popover-content" style="width: 350px">
    <div class="row">
      <div class="col-xs-12">
        <label><translate>common.label</translate></label>
        <input class="form-control" type="text" ng-model="field.label" />
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <label><translate>common.description</translate></label>
        <input class="form-control" type="text" ng-model="field.description" />
      </div>
    </div>
    <div class="row">
      <div class="col-xs-12">
        <label><translate>common.network</translate></label>
        <select
          class="form-control"
          type="text"
          ng-init="loadNetworkNames()"
          ng-model="field.config.network"
          >
          <option ng-repeat="network in networkNames">{{network}}</option>
        </select>
      </div>
    </div>
    <div class="row">
      <div class="col-xs-6">
        <label
          title="{{'tools.builder.fields.network.path_route_from_nodes.max_nodes_tip' | translate}}">
          <translate>
          tools.builder.fields.network.path_route_from_nodes.max_nodes
        </translate>
        </label>
        <input
          class="form-control"
          type="number"
          ng-model="field.config.max_nodes"
        >
      </div>
      <div class="col-xs-6">
        <label
          title="{{'tools.builder.fields.network.path_route_from_nodes.max_paths_tip' | translate}}">
          <translate>
            tools.builder.fields.network.path_route_from_nodes.max_paths
          </translate>
        </label>
        <input
          class="form-control"
          type="number"
          ng-model="field.config.max_paths"
        >
      </div>
    </div>
    <div class="row">
      <div class="col-xs-6">
        <label for="type">
          <translate>
            tools.builder.fields.network.path_route_from_nodes.buffer_type
          </translate>
        </label>
        <select
          class="form-control"
          ng-model="field.config.buftype"
          ng-options="bt as bt.label for bt in field.config.bufferTypes"
        >
        </select>
      </div>
      <div class="col-xs-6">
        <label>
          <translate>
            tools.builder.fields.network.path_route_from_nodes.buffer_size
          </translate>
        <input
          class="form-control"
          type="number"
          ng-model="field.config.size"
        />
        </label>
      </div>
    </div>
  </div>

  <form-builder-variables
    label="tools.builder.fields.common.reseau"
    res="field.config.res"
    formvariables="formvariables"
  ></form-builder-variables>
  <form-builder-variables
    label="Résultat de la sélection"
    res="field.config.update_selection"
    formvariables="formvariables">
  </form-builder-variables>
  <form-builder-variables
    label="Geometrie du tampon"
    res="field.config.buffer_geometry"
    formvariables="formvariables">
  </form-builder-variables>
  <form-builder-function
    label="tools.builder.fields.common.on_finish"
    res="field.config.finish">
  </form-builder-function>
</div>
