<div class="form-group">
  <label for="portail_name" class="required col-sm-2 control-label">
    <translate>model.network.name</translate>
  </label>
  <div
    class="col-xs-10"
    ng-class="{'has-error': isNewResource && (currentResources|arrayMap:'name').indexOf(edit_resource.name)!=-1}"
  >
    <input
      type="text"
      class="form-control"
      id="portail_name"
      ng-model="edit_resource.name"
      ng-change="makeFormDirty()"
      required
    />
    <div
      class="alert inlinealert alert-danger"
      ng-if="isNewResource && (currentResources|arrayMap:'name').indexOf(edit_resource.name)!=-1"
    >
      <translate>model.network.already_exist</translate>
    </div>
  </div>
</div>
<div class="form-group">
  <label class="required col-sm-2 control-label">
    <translate>model.network.networkType</translate>
  </label>
  <div class="col-xs-10">
    <gcautocomplete list="networkTypes"
                    ng-model="edit_resource.networkType"
                    on-change="generateTabsOnNetworkTypeChange();makeFormDirty();"
                    attribute-displayed="'alias'"
                    attribute-used="'type'">
    </gcautocomplete>
  </div>
</div>
<div class="form-group clearfix">
  <div class="col-xs-4">
    <label for="minNodesToParse">
      <translate>model.network.minNodesToParse</translate>
    </label>
    <input
      type="number"
      class="form-control"
      id="minNodesToParse"
      ng-model="edit_resource.minNodesToParse"
      ng-change="makeFormDirty()"
      required
    />
  </div>
  <div class="col-xs-4">
    <label for="maxNodesToParse">
      <translate>model.network.maxNodesToParse</translate>
    </label>
    <input
      type="number"
      class="form-control"
      id="maxNodesToParse"
      ng-model="edit_resource.maxNodesToParse"
      ng-change="makeFormDirty()"
      required
    />
  </div>
  <div class="col-xs-4">
    <label for="nodesIncrementWalk">
      <translate>model.network.nodesIncrementWalk</translate>
    </label>
    <input
      type="number"
      class="form-control"
      id="nodesIncrementWalk"
      ng-model="edit_resource.nodesIncrementWalk"
      ng-change="makeFormDirty()"
      required
    />
  </div>
</div>
<div class="form-group clearfix">
  <div class="col-xs-10">
    <label for="delayToReload">
      <translate>model.network.delayToReload</translate>
    </label>
    <input
      type="range"
      class="form-control"
      id="delayToReload"
      min="10"
      max="60"
      step="10"
      ng-model="edit_resource.delayToReload"
      ng-change="makeFormDirty()"
    /><span class="badge"
      >{{edit_resource.delayToReload}} {{'model.network.minutes' |
      translate}}</span
    >
  </div>
</div>
