{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-shipping" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
        <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
      <h1>{{ heading_title }}</h1>
      <ul class="breadcrumb">
        {% for breadcrumb in breadcrumbs %}
        <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
        {% endfor %}
      </ul>
    </div>
  </div>

  <div class="container-fluid">
    {% if error_warning %}
    <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    {% endif %}

    <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-shipping" class="form-horizontal">
     <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_edit }}</h3>
      </div>
      <div class="panel-body">
          <div class="form-group">
            <label class="col-sm-2 control-label">{{ entry_test }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_test %}
                <input type="radio" name="shipping_hitshipo_cpost_test" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_test" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_test %}
                <input type="radio" name="shipping_hitshipo_cpost_test" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_test" value="0" />
                {{ text_no }}
                {% endif %}
              </label>
            </div>
          </div>
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-name">{{ entry_name }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_username" value="{{ shipping_hitshipo_cpost_username }}" placeholder="{{ entry_name }}" id="input-name" class="form-control" />
              {% if error_name %}
              <div class="text-danger">{{ error_name }}</div>
              {% endif %}
            </div>
          </div>
            <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-account">{{ entry_password }}</label>
            <div class="col-sm-10">
              <input type="password" name="shipping_hitshipo_cpost_password" value="{{ shipping_hitshipo_cpost_password }}" placeholder="{{ entry_password }}" id="input-account" class="form-control" />
             </div>
          </div>
          
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-customer">{{ entry_customer }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_customer_num" value="{{ shipping_hitshipo_cpost_customer_num }}" placeholder="{{ entry_customer }}" id="input-customer" class="form-control" />
              {% if error_customer %}
              <div class="text-danger">{{ error_customer }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-contract">{{ entry_contract }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_contract_id" value="{{ shipping_hitshipo_cpost_contract_id }}" placeholder="{{ entry_contract }}" id="input-contract" class="form-control" />
              {# {% if error_contract %}
              <div class="text-danger">{{ error_contract }}</div>
              {% endif %} #}
            </div>
          </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ entry_front_end_logs }}">{{ entry_front_end_logs }}</span></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_front_end_logs %}
                <input type="radio" name="shipping_hitshipo_cpost_front_end_logs" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_front_end_logs" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_front_end_logs  %}
                <input type="radio" name="shipping_hitshipo_cpost_front_end_logs" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_front_end_logs" value="0" />
                {{ text_no }}
                {% endif %}
              </label>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="Enable to get req and res in order page">Debug Logs ( Order Page )</span></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_back_end_logs %}
                <input type="radio" name="shipping_hitshipo_cpost_back_end_logs" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_back_end_logs" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_back_end_logs  %}
                <input type="radio" name="shipping_hitshipo_cpost_back_end_logs" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_back_end_logs" value="0" />
                {{ text_no }}
                {% endif %}
              </label>
            </div>
          </div>
  
      <div class="form-group">
            <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_status" id="input-status" class="form-control">
                {% if shipping_hitshipo_cpost_status %}
                <option value="1" selected="selected">{{ text_enabled }}</option>
                <option value="0">{{ text_disabled }}</option>
                {% else %}
                <option value="1">{{ text_enabled }}</option>
                <option value="0" selected="selected">{{ text_disabled }}</option>
                {% endif %}
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-sort-order">{{ entry_sort_order }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_sort_order" value="{{ shipping_hitshipo_cpost_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control" />
            </div>
          </div>
    </div>
  </div>
  <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_shiiping_address }}</h3>
      </div>
      <div class="panel-body">
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-shipper_name">{{ entry_shipper_name }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_shipper_name" value="{{ shipping_hitshipo_cpost_shipper_name }}" placeholder="{{ entry_shipper_name }}" id="input-shipper_name" class="form-control" />
              {% if error_shipper_name %}
              <div class="text-danger">{{ error_shipper_name }}</div>
              {% endif %}
            </div>
          </div>
        <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-company_name">{{ entry_company_name }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_company_name" value="{{ shipping_hitshipo_cpost_company_name }}" placeholder="{{ entry_company_name }}" id="input-company_name" class="form-control" />
              {% if error_company_name %}
              <div class="text-danger">{{ error_company_name }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-phone_num">{{ entry_phone_num }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_phone_num" value="{{ shipping_hitshipo_cpost_phone_num }}" placeholder="{{ entry_phone_num }}" id="input-phone_num" class="form-control" />
              {% if error_phone_num %}
              <div class="text-danger">{{ error_phone_num }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-email_addr">{{ entry_email_addr }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_email_addr" value="{{ shipping_hitshipo_cpost_email_addr }}" placeholder="{{ entry_email_addr }}" id="input-email_addr" class="form-control" />
              {% if error_email_addr %}
              <div class="text-danger">{{ error_email_addr }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-address1">{{ entry_address1 }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_address1" value="{{ shipping_hitshipo_cpost_address1 }}" placeholder="{{ entry_address1 }}" id="input-address1" class="form-control" />
              {% if error_address1 %}
              <div class="text-danger">{{ error_address1 }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group">
            <label class="col-sm-2 control-label" for="input-address2">{{ entry_address2 }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_address2" value="{{ shipping_hitshipo_cpost_address2 }}" placeholder="{{ entry_address2 }}" id="input-address2" class="form-control" />
              {% if error_address2 %}
              <div class="text-danger">{{ error_address2 }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-city">{{ entry_city }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_city" value="{{ shipping_hitshipo_cpost_city }}" placeholder="{{ entry_city }}" id="input-city" class="form-control" />
              {% if error_city %}
              <div class="text-danger">{{ error_city }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-state">{{ entry_state }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_state" value="{{ shipping_hitshipo_cpost_state }}" placeholder="{{ entry_state }}" id="input-state" class="form-control" />
              {% if error_state %}
              <div class="text-danger">{{ error_state }}</div>
              {% endif %}
            </div>
          </div>
        <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-country_code">{{ entry_country_code }}</label>
            <div class="col-sm-10">
        <select name="shipping_hitshipo_cpost_country_code" class="form-control control-label" style="text-align:left">
        {% for key,value in countrylist %}
        <option value="{{key}}" {% if key == shipping_hitshipo_cpost_country_code %}selected="true"{% endif %}>{{value}}</option>
        {% endfor %}
        </select>
        
              {% if error_country_code %}
              <div class="text-danger">{{ error_country_code }}</div>
              {% endif %}
            </div>
          </div>
        
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-postcode">{{ entry_postcode }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_postcode" value="{{ shipping_hitshipo_cpost_postcode }}" placeholder="{{ entry_postcode }}" id="input-postcode" class="form-control" />
              {% if error_postcode %}
              <div class="text-danger">{{ error_postcode }}</div>
              {% endif %}
            </div>
          </div>
          
    </div>
  </div>
  <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_rates }}</h3>
      </div>
      <div class="panel-body">
          <div class="form-group">
            <label class="col-sm-2 control-label">{{ entry_realtime_rates }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_realtime_rates %}
                <input type="radio" name="shipping_hitshipo_cpost_realtime_rates" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_realtime_rates" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_realtime_rates %}
                <input type="radio" name="shipping_hitshipo_cpost_realtime_rates" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_realtime_rates" value="0" />
                {{ text_no }}
                {% endif %}
              </label>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="{{ help_display_rate_tax }}">{{ entry_rate_tax }}</span></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_rate_tax %}
                <input type="radio" name="shipping_hitshipo_cpost_rate_tax" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_rate_tax" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_rate_tax %}
                <input type="radio" name="shipping_hitshipo_cpost_rate_tax" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_rate_tax" value="0" />
                {{ text_no }}
                {% endif %}
              </label>
            </div>
          </div>
{#   <div class="form-group">
            <label class="col-sm-2 control-label" for="input-rate-type">{{ entry_rate_type }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_rate_type" id="input-rate-type" class="form-control">
                {% if shipping_hitshipo_cpost_rate_type == 'LIST' %}
                <option value="LIST" selected="selected">{{ text_list_rate }}</option>
                {% else %}
                <option value="LIST">{{ text_list_rate }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_rate_type == 'ACCOUNT' %}
                <option value="ACCOUNT" selected="selected">{{ text_account_rate }}</option>
                {% else %}
                <option value="ACCOUNT">{{ text_account_rate }}</option>
                {% endif %}
              </select>
            </div>
          </div> #}
      
      <div class="form-group">
            <label class="col-sm-2 control-label">{{ entry_service }}</label>
            <div class="col-sm-10">
              <div class="well well-sm" style="height: 150px; overflow: auto;">
                {% for service in services %}
                <div class="checkbox">
                  <label>
                    {% if service.value in shipping_hitshipo_cpost_service %}
                    <input type="checkbox" name="shipping_hitshipo_cpost_service[]" value="{{ service.value }}" checked="checked" />
                    {{ service.text }}
                    {% else %}
                    <input type="checkbox" name="shipping_hitshipo_cpost_service[]" value="{{ service.value }}" />
                    {{ service.text }}
                    {% endif %}
                  </label>
                </div>
                {% endfor %}
              </div>
              <button type="button" onclick="$(this).parent().find(':checkbox').prop('checked', true);" class="btn btn-link">{{ text_select_all }}</button> / <button type="button" onclick="$(this).parent().find(':checkbox').prop('checked', false);" class="btn btn-link">{{ text_unselect_all }}</button></div>
          </div>
      </div>
    </div>
  <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_packing }}</h3>
      </div>
      <div class="panel-body">
     <div class="form-group">
            <label class="col-sm-2 control-label">{{ _entry_weight }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_weight %}
                <input type="radio" name="shipping_hitshipo_cpost_weight" value="1" checked="checked" />
                {{ _entry_lbin }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_weight" value="1" />
                {{ _entry_lbin }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_weight %}
                <input type="radio" name="shipping_hitshipo_cpost_weight" value="0" checked="checked" />
                {{ _entry_kgcm }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_weight" value="0" />
                {{ _entry_kgcm }}
                {% endif %}
              </label>
            </div>
          </div>
       <div class="form-group">
            <label class="col-sm-2 control-label" for="input-packaging-type">{{ _entry_packing_type }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_packing_type" id="input-packing-type" class="form-control">
                {% if shipping_hitshipo_cpost_packing_type == 'per_item' %}
                <option value="per_item" selected="selected">{{ text_per_item }}</option>
                {% else %}
                <option value="per_item">{{ text_per_item }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_packing_type == 'weight_based' %}
                <option value="weight_based" selected="selected">{{ text_cpost_weight_based }}</option>
                {% else %}
                <option value="weight_based">{{ text_cpost_weight_based }}</option>
                {% endif %}
              </select>
            </div>
          </div>
         </div>
    </div>
  <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_peritem_head }}</h3>
      </div>
      <div class="panel-body">
    <div class="form-group">
            <label class="col-sm-2 control-label" for="input-packaging-type">{{ _entry_packing_type }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_per_item" id="input-packing-type" class="form-control">
                {% if shipping_hitshipo_cpost_per_item == 'BOX' %}
                <option value="BOX" selected="selected">{{ text_box }}</option>
                {% else %}
                <option value="BOX">{{ text_box }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_per_item == 'FLY' %}
                <option value="FLY" selected="selected">{{ text_fly }}</option>
                {% else %}
                <option value="FLY">{{ text_fly }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_per_item == 'YP' %}
                <option value="YP" selected="selected">{{ text_cpost_yp }}</option>
                {% else %}
                <option value="YP">{{ text_cpost_yp }}</option>
                {% endif %}
              </select>
            </div>
          </div>
      </div>
    </div>
  
  <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_weight_head }}</h3>
      </div>
      <div class="panel-body">
      
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-postcode">{{ text_head12 }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitshipo_cpost_wight_b" value="{{ shipping_hitshipo_cpost_wight_b }}" placeholder="{{ text_head12 }}" id="input-wight_b" class="form-control" />
              {% if error_wight_b %}
              <div class="text-danger">{{ error_wight_b }}</div>
              {% endif %}
            </div>
          </div>
      <div class="form-group">
            <label class="col-sm-2 control-label" for="input-packaging-type">{{ _entry_packing_type }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_weight_c" id="input-packing-type" class="form-control">
                {% if shipping_hitshipo_cpost_weight_c == 'pack_descending' %}
                <option value="pack_descending" selected="selected">{{ text_head13 }}</option>
                {% else %}
                <option value="pack_descending">{{ text_head13 }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_weight_c == 'pack_ascending' %}
                <option value="pack_ascending" selected="selected">{{ text_head14 }}</option>
                {% else %}
                <option value="pack_ascending">{{ text_head14 }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_weight_c == 'pack_simple' %}
                <option value="pack_simple" selected="selected">{{ text_head15 }}</option>
                {% else %}
                <option value="pack_simple">{{ text_head15 }}</option>
                {% endif %}
              </select>
            </div>
          </div>
     </div>
    </div>
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_label }} </h3>
      </div>
      <div class="panel-body">

        <div class="form-group">
            <label class="col-sm-2 control-label" for="input-hitshipo_cpost_int_key">HIT-Shipo Integration Key<span data-toggle="tooltip" title="Enter/Get integration key"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
             <input type="text" name="shipping_hitshipo_cpost_int_key" value="{{ shipping_hitshipo_cpost_int_key }}" placeholder="" id="input-hitshipo_cpost_int_key" class="form-control" />
             <a href="https://hitstacks.com/hitshipo.php" target="_blank">Don't have a key? Signup for free</a>
            </div>
          </div>
         <div class="form-group">
            <label class="col-sm-2 control-label" for="input-hitshipo_cpost_send_mail_to">Auto label generation<span data-toggle="tooltip" title="Need automated label generation??"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_auto_label %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_label" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_label" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_auto_label %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_label" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_label" value="0" />
                {{ text_disable }}
                {% endif %}
              </label>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-hitshipo_cpost_auto_status">Change Order Status<span data-toggle="tooltip" title="Enable to change the order status to 'shipped' once label generated automatically. (Note: In manual label generation, automatically status will change once creating shipments)"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_auto_status %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_status" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_status" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_auto_status %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_status" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_auto_status" value="0" />
                {{ text_disable }}
                {% endif %}
              </label>
            </div>
          </div>
         <div class="form-group">
            <label class="col-sm-2 control-label" for="input-hitshipo_cpost_send_mail_to">Email to receive generated labels<span data-toggle="tooltip" title="To whom you want to sent the shipping label once created"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
             <input type="text" name="shipping_hitshipo_cpost_send_mail_to" value="{{ shipping_hitshipo_cpost_send_mail_to }}" placeholder="" id="input-hitshipo_cpost_send_mail_to" class="form-control" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-hitshipo_cpost_cod">Cash On Delivey<b style="color:red;">*</b></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitshipo_cpost_cod %}
                <input type="radio" name="shipping_hitshipo_cpost_cod" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_cod" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitshipo_cpost_cod %}
                <input type="radio" name="shipping_hitshipo_cpost_cod" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitshipo_cpost_cod" value="0" />
                {{ text_disable }}
                {% endif %}
              </label>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-dropoff-type">{{ text_head20 }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_dropoff_type" id="input-dropoff-type" class="form-control">
                {% if shipping_hitshipo_cpost_dropoff_type == '8.5x11' %}
                <option value="8.5x11" selected="selected">{{ text_head21 }}</option>
                {% else %}
                <option value="8.5x11">{{ text_head21 }}</option>
                {% endif %}
                {% if shipping_hitshipo_cpost_dropoff_type == '4x6' %}
                <option value="4x6" selected="selected">{{ text_head22 }}</option>
                {% else %}
                <option value="4x6">{{ text_head22 }}</option>
                {% endif %}
              </select>
            </div>
          </div>
      
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-dropoff-type">{{ text_head33 }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitshipo_cpost_output_type" id="input-dropoff-type" class="form-control">
                {% if shipping_hitshipo_cpost_output_type == 'PDF' %}
                <option value="PDF" selected="selected">{{ text_head34 }}</option>
                {% else %}
                <option value="PDF">{{ text_head34 }}</option>
                {% endif %}
              </select>
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-non_del">Non-Delivery handling<span data-toggle="tooltip" title="(Required for U.S.A. and international shipments)"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
             <select name="shipping_hitshipo_cpost_non_del_hand" id="input-export_reason" class="form-control" />
              <option value="RASE" {% if shipping_hitshipo_cpost_non_del_hand == 'RASE' %}selected="selected"{% endif %}>RASE - Return at Sender’s Expense</option>
              <option value="RTS" {% if shipping_hitshipo_cpost_non_del_hand == 'RTS' %}selected="selected"{% endif %}>RTS - Return to Sender</option>
              <option value="ABAN" {% if shipping_hitshipo_cpost_non_del_hand == 'ABAN' %}selected="selected"{% endif %}>ABAN - Abandon</option>
             </select>
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-customs_des">Shipment Content <b style="color:red;"> *</b></label>
            <div class="col-sm-10">
             <input type="text" name="shipping_hitshipo_cpost_shipment_content" value="{{ shipping_hitshipo_cpost_shipment_content }}" placeholder="Enter shipment content..." id="input-customs_des" class="form-control" />
            </div>
          </div>

</div>
</div>

        </form>
    
    <div class="pull-right">
      <button type="submit" form="form-shipping" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fa fa-save"></i></button>
        <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default"><i class="fa fa-reply"></i></a></div>
    </div>
      </div>
    </div>
    </div>
  
  </div>
</div>
{% block javascripts %}
<script type="text/javascript">

</script>
{% endblock %}

{{ footer }}
