#**
* 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.RequestHeaders'))
#set( $DESKTOP = $Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.DesktopUserAgent')) )
#set( $MOBILE = $Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.MobileUserAgent')) )
<div class="row">
  <div class="col-md-6 col-lg-4">
    <div class="form-group">
      <label for="user_agent_platform">$Encoder.bodyEscape($ResourceBundle.getString('WebcrawlerConnector.UserAgentPlatformColon'))</label>
      <select class="form-control" name="user_agent_platform" id="user_agent_platform">
        <option value="$DESKTOP" #if($USER_AGENT_PLATFORM == $DESKTOP) selected="selected" #end >$DESKTOP</option>
        <option value="$MOBILE" #if($USER_AGENT_PLATFORM == $MOBILE) selected="selected" #end >$MOBILE</option>
      </select>
    </div>
  </div>
</div>
#else
<input type="hidden" name="user_agent_platform" value="$Encoder.attributeEscape($USER_AGENT_PLATFORM)"/>
#end
