#**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*#

#if($TABNAME == $ResourceBundle.getString('WebcrawlerConnector.Robots'))
<div class="row">
  <div class="col-md-6 col-lg-4">
    <div class="form-group">
      <label for="robotsusage">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.RobotsTxtUsage'))</label>
      <select class="form-control" name="robotsusage" id="robotsusage">
        <option value="none" #if($ROBOTSUSAGE == 'none') selected="selected" #end >$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.DontLookAtRobotsTxt'))</option>
        <option value="data" #if($ROBOTSUSAGE == 'data') selected="selected" #end >$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.ObeyRobotsTxtForDataFetchesOnly'))</option>
        <option value="all"  #if($ROBOTSUSAGE == 'all')  selected="selected" #end >$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.ObeyRobotsTxtForAllFetches'))</option>
      </select>
    </div>
    <div class="form-group">
      <label for="metarobotstagsusage">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.MetaRobotsTagsUsage'))</label>
      <select class="form-control" name="metarobotstagsusage" id="metarobotstagsusage">
        <option value="none" #if($METAROBOTSTAGSUSAGE == 'none') selected="selected" #end>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.DontLookAtMetaRobotsTags'))</option>
        <option value="all"  #if($METAROBOTSTAGSUSAGE == 'all')  selected="selected" #end>$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.ObeyMetaRobotsTags'))</option>
      </select>
    </div>
  </div>
</div>
#else
<input type="hidden" name="robotsusage" value="$Encoder.attributeEscape($ROBOTSUSAGE)"/>
<input type="hidden" name="metarobotstagsusage" value="$Encoder.attributeEscape($METAROBOTSTAGSUSAGE)"/>
#end
