{{ 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-licence" class="form-horizontal">
      <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-key"></i> {{ text_info }}</h3>
      </div>
      <div class="panel-body">
        <ul>
          <li> <label class="">{{ text_info1 }}</label></li>
          <li> <label class="">{{ text_info2 }}</label></li>
          <li> <label class="">{{ text_info3 }}</label></li>
          
         </ul>
       
      </div>
    </div>
    </form>
    {% if shipping_hitcpost_renew_status_licence == 'Expired' %}

         <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-renew" class="form-horizontal">
      <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-key"></i> Renew Licence Key</h3>
      </div>
      <div class="panel-body">
        <ul>
          <li> <label class="" style="color:red;">Without Licence Activation, You will not get Updates email from HIT TECH</label></li>
          <li> <label class="" style="color:red;">Without Licence Activation, You will not get Support from HIT TECH</label></li>
         </ul>
        <div>
         
        <label class="">Licence Key</label> <input type="text" name="shipping_hitcpost_renew_licence" value ="{{ shipping_hitcpost_licence_licence }}" class="form-control" placeholder="Enter Licence key"> <br/>
        <label class="">Purchased Email Address</label> <input type="text" name="shipping_hitcpost_renew_email" value ="{{ shipping_hitcpost_licence_email }}"  class="form-control" placeholder="Enter Email Adress">
        <br/>
        <button type="submit" form="form-renew" data-toggle="tooltip" title="" class="btn btn-primary"  name="btn_renew_activation"><i class="fa fa-key" ></i> Renew Licence Key</button>

        </div>
      </div>
    </div>
    </form>

         <a target="_blank" href="https://hittechmarket.com/checkout/?edd_license_key={{ shipping_hitcpost_licence_licence }}&download_id=2288"><label style="    cursor: pointer;margin-left:10px;"> Renewal Link </label></a>
    {% 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_hitcpost_test %}
                <input type="radio" name="shipping_hitcpost_test" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_test" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_test %}
                <input type="radio" name="shipping_hitcpost_test" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_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_hitcpost_username" value="{{ shipping_hitcpost_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="text" name="shipping_hitcpost_password" value="{{ shipping_hitcpost_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_hitcpost_customer_num" value="{{ shipping_hitcpost_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_hitcpost_contract_id" value="{{ shipping_hitcpost_contract_id }}" placeholder="{{ entry_contract }}" id="input-contract" class="form-control" />
            </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_hitcpost_front_end_logs %}
                <input type="radio" name="shipping_hitcpost_front_end_logs" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_front_end_logs" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_front_end_logs  %}
                <input type="radio" name="shipping_hitcpost_front_end_logs" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_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="{{ help_display_time }}">{{ entry_display_time }}</span></label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitcpost_display_time %}
                <input type="radio" name="shipping_hitcpost_display_time" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_display_time" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_display_time %}
                <input type="radio" name="shipping_hitcpost_display_time" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_display_time" 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_hitcpost_status" id="input-status" class="form-control">
                {% if shipping_hitcpost_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_hitcpost_sort_order" value="{{ shipping_hitcpost_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_hitcpost_shipper_name" value="{{ shipping_hitcpost_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_hitcpost_company_name" value="{{ shipping_hitcpost_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_hitcpost_phone_num" value="{{ shipping_hitcpost_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_hitcpost_email_addr" value="{{ shipping_hitcpost_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_hitcpost_address1" value="{{ shipping_hitcpost_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_hitcpost_address2" value="{{ shipping_hitcpost_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_hitcpost_city" value="{{ shipping_hitcpost_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_hitcpost_state" value="{{ shipping_hitcpost_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_hitcpost_country_code" class="form-control control-label" style="text-align:left">
        {% for key,value in countrylist %}
        <option value="{{key}}" {% if key == shipping_hitcpost_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_hitcpost_postcode" value="{{ shipping_hitcpost_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_hitcpost_realtime_rates %}
                <input type="radio" name="shipping_hitcpost_realtime_rates" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_realtime_rates" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_realtime_rates %}
                <input type="radio" name="shipping_hitcpost_realtime_rates" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_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_hitcpost_rate_tax %}
                <input type="radio" name="shipping_hitcpost_rate_tax" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_rate_tax" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_rate_tax %}
                <input type="radio" name="shipping_hitcpost_rate_tax" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_rate_tax" value="0" />
                {{ text_no }}
                {% endif %}
              </label>
            </div>
          </div>
{#       <div class="form-group">
            <label class="col-sm-2 control-label">{{ entry_insurance }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitcpost_insurance %}
                <input type="radio" name="shipping_hitcpost_insurance" value="1" checked="checked" />
                {{ text_yes }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_insurance" value="1" />
                {{ text_yes }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_insurance %}
                <input type="radio" name="shipping_hitcpost_insurance" value="0" checked="checked" />
                {{ text_no }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_insurance" 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_hitcpost_rate_type" id="input-rate-type" class="form-control">
                {% if shipping_hitcpost_rate_type == 'LIST' %}
                <option value="LIST" selected="selected">{{ text_list_rate }}</option>
                {% else %}
                <option value="LIST">{{ text_list_rate }}</option>
                {% endif %}
                {% if shipping_hitcpost_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_hitcpost_service %}
                    <input type="checkbox" name="shipping_hitcpost_service[]" value="{{ service.value }}" checked="checked" />
                    {{ service.text }}
                    {% else %}
                    <input type="checkbox" name="shipping_hitcpost_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_hitcpost_weight %}
                <input type="radio" name="shipping_hitcpost_weight" value="1" checked="checked" />
                {{ _entry_lbin }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_weight" value="1" />
                {{ _entry_lbin }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_weight %}
                <input type="radio" name="shipping_hitcpost_weight" value="0" checked="checked" />
                {{ _entry_kgcm }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_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_hitcpost_packing_type" id="input-packing-type" class="form-control">
                {% if shipping_hitcpost_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_hitcpost_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_hitcpost_per_item" id="input-packing-type" class="form-control">
                {% if shipping_hitcpost_per_item == 'BOX' %}
                <option value="BOX" selected="selected">{{ text_box }}</option>
                {% else %}
                <option value="BOX">{{ text_box }}</option>
                {% endif %}
                {% if shipping_hitcpost_per_item == 'FLY' %}
                <option value="FLY" selected="selected">{{ text_fly }}</option>
                {% else %}
                <option value="FLY">{{ text_fly }}</option>
                {% endif %}
                {% if shipping_hitcpost_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_hitcpost_wight_b" value="{{ shipping_hitcpost_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_hitcpost_weight_c" id="input-packing-type" class="form-control">
                {% if shipping_hitcpost_weight_c == 'pack_descending' %}
                <option value="pack_descending" selected="selected">{{ text_head13 }}</option>
                {% else %}
                <option value="pack_descending">{{ text_head13 }}</option>
                {% endif %}
                {% if shipping_hitcpost_weight_c == 'pack_ascending' %}
                <option value="pack_ascending" selected="selected">{{ text_head14 }}</option>
                {% else %}
                <option value="pack_ascending">{{ text_head14 }}</option>
                {% endif %}
                {% if shipping_hitcpost_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">{{ text_head16 }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitcpost_plt %}
                <input type="radio" name="shipping_hitcpost_plt" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_plt" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_plt %}
                <input type="radio" name="shipping_hitcpost_plt" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_plt" value="0" />
                {{ text_disable }}
                {% endif %}
              </label>
            </div>
          </div>
      <div class="form-group">
            <label class="col-sm-2 control-label">{{ text_head17 }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitcpost_sat %}
                <input type="radio" name="shipping_hitcpost_sat" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_sat" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_sat %}
                <input type="radio" name="shipping_hitcpost_sat" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_sat" value="0" />
                {{ text_disable }}
                {% endif %}
              </label>
            </div>
          </div>
      <div class="form-group">
            <label class="col-sm-2 control-label">{{ text_head18 }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitcpost_email_trach %}
                <input type="radio" name="shipping_hitcpost_email_trach" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_email_trach" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_email_trach %}
                <input type="radio" name="shipping_hitcpost_email_trach" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_email_trach" value="0" />
                {{ text_disable }}
                {% endif %}
              </label>
            </div>
          </div>
      <div class="form-group">
            <label class="col-sm-2 control-label">{{ text_head19 }}</label>
            <div class="col-sm-10">
              <label class="radio-inline">
                {% if shipping_hitcpost_airway %}
                <input type="radio" name="shipping_hitcpost_airway" value="1" checked="checked" />
                {{ text_enable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_airway" value="1" />
                {{ text_enable }}
                {% endif %}
              </label>
              <label class="radio-inline">
                {% if not shipping_hitcpost_airway %}
                <input type="radio" name="shipping_hitcpost_airway" value="0" checked="checked" />
                {{ text_disable }}
                {% else %}
                <input type="radio" name="shipping_hitcpost_airway" 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_hitcpost_dropoff_type" id="input-dropoff-type" class="form-control">
                {% if shipping_hitcpost_dropoff_type == '8.5x11' %}
                <option value="8.5x11" selected="selected">{{ text_head21 }}</option>
                {% else %}
                <option value="8.5x11">{{ text_head21 }}</option>
                {% endif %}
                {% if shipping_hitcpost_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_hitcpost_output_type" id="input-dropoff-type" class="form-control">
                {% if shipping_hitcpost_output_type == 'PDF' %}
                <option value="PDF" selected="selected">{{ text_head34 }}</option>
                {% else %}
                <option value="PDF">{{ text_head34 }}</option>
                {% endif %}
                {% if shipping_hitcpost_output_type == 'ZPL' %}
                <option value="ZPL" selected="selected">{{ text_head35 }}</option>
                {% else %}
                <option value="ZPL">{{ text_head35 }}</option>
                {% endif %}
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-export_reason">Reason for Export<span data-toggle="tooltip" title="Export reason.(Required only for international Shipping)"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
             <select name="shipping_hitcpost_export_reason" id="input-export_reason" class="form-control" />
              <option value="SOG" {% if shipping_hitcpost_export_reason == 'SOG' %}selected="selected"{% endif %}>SOG - Sale of Goods</option>
              <option value="DOC" {% if shipping_hitcpost_export_reason == 'DOC' %}selected="selected"{% endif %}>DOC - Document</option>
              <option value="SAM" {% if shipping_hitcpost_export_reason == 'SAM' %}selected="selected"{% endif %}>SAM - Commercial Sample</option>
              <option value="REP" {% if shipping_hitcpost_export_reason == 'REP' %}selected="selected"{% endif %}>REP - repair or warranty</option>
             </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-customs_des">Customs Description<span data-toggle="tooltip" title="A customs description of the item.(Required only for international Shipping)"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
             <input type="text" name="shipping_hitcpost_customs_des" value="{{ shipping_hitcpost_customs_des }}" placeholder="Customs description..." id="input-customs_des" class="form-control" />
            </div>
          </div>
        {# <div class="form-group">
            <label class="col-sm-2 control-label" for="input-dropoff-type">{{ text_head41 }}</label>
            <div class="col-sm-10">
              <select name="shipping_hitcpost_duty_type" id="input-dropoff-type" class="form-control">
                {% if shipping_hitcpost_duty_type == '' %}
                <option value="" selected="selected">{{ text_head37 }}</option>
                {% else %}
                <option value="">{{ text_head37 }}</option>
                {% endif %}
                {% if shipping_hitcpost_duty_type == 'S' %}
                <option value="S" selected="selected">{{ text_head38 }}</option>
                {% else %}
                <option value="S">{{ text_head38 }}</option>
                {% endif %}
                {% if shipping_hitcpost_duty_type == 'R' %}
                <option value="R" selected="selected">{{ text_head39 }}</option>
                {% else %}
                <option value="R">{{ text_head39 }}</option>
                {% endif %}
        {% if shipping_hitcpost_duty_type == 'T' %}
                <option value="T" selected="selected">{{ text_head40 }}</option>
                {% else %}
                <option value="T">{{ text_head40 }}</option>
                {% endif %}
              </select>
            </div>
          </div>
      
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-shipment_content">{{ text_head42 }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitcpost_shipment_content" value="{{ shipping_hitcpost_shipment_content }}" placeholder="{{ text_head42 }}" id="input-shipment_content" class="form-control" />
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-shipment_content">{{ text_head43 }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_hitcpost_logo" value="{{ shipping_hitcpost_logo }}" placeholder="{{ text_head43 }}" id="input-logo" 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_pickup_head }} </h3>
      </div>
      <div class="panel-body">

      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picbusiness">Business address flag <span data-toggle="tooltip" title="True indicates that the pickups is at the business address specified in your Canada Post profile. False indicates pickups at an alternate address (Only be paid by credit card)."><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picbussiness" id="input-picbusiness" class="form-control" />
          <option value="true" {% if shipping_hitcpost_picbussiness == 'true' %}selected="selected"{% endif %}>True</option>
          <option value="false" {% if shipping_hitcpost_picbussiness == 'false' %}selected="selected"{% endif %}>False</option>
         </select>
        </div>
      </div>

      <div class="form-group" id="shipping_hitcpost_picalt_company">
        <label class="col-sm-2 control-label" for="input-picalt_company">Alternate Company Name<span data-toggle="tooltip" title="Required if Business address flag is Fasle."><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picalt_company" value="{{ shipping_hitcpost_picalt_company }}" placeholder="Alternate Company Name" id="input-picalt_company" class="form-control" />
        </div>
      </div>
      <div class="form-group" id="shipping_hitcpost_picalt_address">
        <label class="col-sm-2 control-label" for="input-picalt_address">Alternate Address line 1<span data-toggle="tooltip" title="Required if Business address flag is Fasle."><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picalt_address" value="{{ shipping_hitcpost_picalt_address }}" placeholder="Alternate Company Name" id="input-picalt_address" class="form-control" />
        </div>
      </div>
      <div class="form-group" id="shipping_hitcpost_picalt_city">
        <label class="col-sm-2 control-label" for="input-picalt_city">Alternate City<span data-toggle="tooltip" title="Required if Business address flag is Fasle."><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picalt_city" value="{{ shipping_hitcpost_picalt_city }}" placeholder="Alternate Company Name" id="input-picalt_city" class="form-control" />
        </div>
      </div>
      <div class="form-group" id="shipping_hitcpost_picalt_province">
        <label class="col-sm-2 control-label" for="input-picalt_province">Alternate province<span data-toggle="tooltip" title="Use standard 2-character Canadian province codes. Required if Business address flag is Fasle."><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picalt_province" value="{{ shipping_hitcpost_picalt_province }}" placeholder="Alternate Company Name" id="input-picalt_province" class="form-control" />
        </div>
      </div>
      <div class="form-group" id="shipping_hitcpost_picalt_post_code">
        <label class="col-sm-2 control-label" for="input-picalt_post_code">Alternate postal-code<span data-toggle="tooltip" title="(Format : A9A9A9) Required if Business address flag is Fasle."><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picalt_post_code" value="{{ shipping_hitcpost_picalt_post_code }}" placeholder="Alternate Company Name" id="input-picalt_post_code" class="form-control" />
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picper">Contact person Name<b style="color:red;">*</b></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picper" value="{{ shipping_hitcpost_picper }}" placeholder="Person Name" id="input-picper" class="form-control" />
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picper_email">Contact E-mail<b style="color:red;">*</b></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picper_email" value="{{ shipping_hitcpost_picper_email }}" placeholder="E-mail" id="input-picper_email" class="form-control" />
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-packaging-type">Contact Phone Number<span data-toggle="tooltip" title="Format 999-999-9999"><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_piccon" value="{{ shipping_hitcpost_piccon }}" placeholder="123-123-1234" id="input-account" class="form-control" />
        </div>
      </div>


      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picfiveton">Five-ton flag <span data-toggle="tooltip" title="True identifies that a 5-ton truck is needed."></span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picfiveton" id="input-picfiveton" class="form-control" />
          <option value="false" {% if shipping_hitcpost_picfiveton == 'false' %}selected="selected"{% endif %}>False</option>
          <option value="true" {% if shipping_hitcpost_picfiveton == 'true' %}selected="selected"{% endif %}>True</option>
         </select>
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picloading_dock">Loading-dock flag <span data-toggle="tooltip" title="True identifies that there is a loading dock at the location."</span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picloading_dock" id="input-picloading_dock" class="form-control" />
          <option value="false" {% if shipping_hitcpost_picloading_dock == 'false' %}selected="selected"{% endif %}>False</option>
          <option value="true" {% if shipping_hitcpost_picloading_dock == 'true' %}selected="selected"{% endif %}>True</option>
         </select>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picinstructions">Pickup-instructions<span data-toggle="tooltip" title="Instructions for the driver (e.g., use back door, use side entrance, bring a dolly)"><b style="color:red;">*</b></span></label>
        <div class="col-sm-10">
         <input type="text" name="shipping_hitcpost_picinstructions" value="{{ shipping_hitcpost_picinstructions }}" placeholder="Use back door" id="input-picinstructions" class="form-control" />
        </div>
      </div>

      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picpww"> PWW-flag <span data-toggle="tooltip" title="Identifies that Priority Worldwide items could be available for pickup."</span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picpww" id="input-picpww" class="form-control" />
          <option value="false" {% if shipping_hitcpost_picpww == 'false' %}selected="selected"{% endif %}>False</option>
          <option value="true" {% if shipping_hitcpost_picpww == 'true' %}selected="selected"{% endif %}>True</option>
         </select>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picpriority">Priority flag<span data-toggle="tooltip" title=" Identifies that Priority items could be available for pickup."</span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picpriority" id="input-picpriority" class="form-control" />
          <option value="false" {% if shipping_hitcpost_picpriority == 'false' %}selected="selected"{% endif %}>False</option>
          <option value="true" {% if shipping_hitcpost_picpriority == 'true' %}selected="selected"{% endif %}>True</option>
         </select>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picreturns">Return flag<span data-toggle="tooltip" title="Identifies that returned items could be available for pickup."</span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picreturns" id="input-picreturns" class="form-control" />
          <option value="false" {% if shipping_hitcpost_picreturns == 'false' %}selected="selected"{% endif %}>False</option>
          <option value="true" {% if shipping_hitcpost_picreturns == 'true' %}selected="selected"{% endif %}>True</option>
         </select>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-2 control-label" for="input-picheavy-item">Heavy-item flag <span data-toggle="tooltip" title="Identifies that some the items to pick up may have a weight greater than 23 kg (50 lbs.)"</span></label>
        <div class="col-sm-10">
         <select name="shipping_hitcpost_picheavy_item" id="input-picheavy-item" class="form-control" />
          <option value="false" {% if shipping_hitcpost_picheavy_item == 'false' %}selected="selected"{% endif %}>False</option>
          <option value="true" {% if shipping_hitcpost_picheavy_item == 'true' %}selected="selected"{% endif %}>True</option>
         </select>
        </div>
      </div>

      <div class="form-group">
            <label class="col-sm-2 control-label" for="input-packaging-type">Pickup Open Time<span data-toggle="tooltip" title="Must be between noon (12:00) and 4 p.m. (16:00)"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
              <select name="shipping_hitcpost_pickup_time" id="input-packing-type" class="form-control">
            <option value="12:00" {% if shipping_hitcpost_pickup_time == '12:00' %}selected="selected"{% endif %}>12:00</option>
            <option value="12:15" {% if shipping_hitcpost_pickup_time == '12:15' %}selected="selected"{% endif %}>12:15</option>
            <option value="12:30" {% if shipping_hitcpost_pickup_time == '12:30' %}selected="selected"{% endif %}>12:30</option>
            <option value="12:45" {% if shipping_hitcpost_pickup_time == '12:45' %}selected="selected"{% endif %}>12:45</option>
            <option value="13:00" {% if shipping_hitcpost_pickup_time == '13:00' %}selected="selected"{% endif %}>13:00</option>
            <option value="13:15" {% if shipping_hitcpost_pickup_time == '13:15' %}selected="selected"{% endif %}>13:15</option>
            <option value="13:30" {% if shipping_hitcpost_pickup_time == '13:30' %}selected="selected"{% endif %}>13:30</option>
            <option value="13:45" {% if shipping_hitcpost_pickup_time == '13:45' %}selected="selected"{% endif %}>13:45</option>
            <option value="14:00" {% if shipping_hitcpost_pickup_time == '14:00' %}selected="selected"{% endif %}>14:00</option>
            <option value="14:15" {% if shipping_hitcpost_pickup_time == '14:15' %}selected="selected"{% endif %}>14:15</option>
            <option value="14:30" {% if shipping_hitcpost_pickup_time == '14:30' %}selected="selected"{% endif %}>14:30</option>
            <option value="14:45" {% if shipping_hitcpost_pickup_time == '14:45' %}selected="selected"{% endif %}>14:45</option>
            <option value="15:00" {% if shipping_hitcpost_pickup_time == '15:00' %}selected="selected"{% endif %}>15:00</option>
            <option value="15:15" {% if shipping_hitcpost_pickup_time == '15:15' %}selected="selected"{% endif %}>15:15</option>
            <option value="15:30" {% if shipping_hitcpost_pickup_time == '15:30' %}selected="selected"{% endif %}>15:30</option>
            <option value="15:45" {% if shipping_hitcpost_pickup_time == '15:45' %}selected="selected"{% endif %}>15:45</option>
            <option value="16:00" {% if shipping_hitcpost_pickup_time == '16:00' %}selected="selected"{% endif %}>16:00</option>
            <option value="16:15" {% if shipping_hitcpost_pickup_time == '16:15' %}selected="selected"{% endif %}>16:15</option>
            <option value="16:30" {% if shipping_hitcpost_pickup_time == '16:30' %}selected="selected"{% endif %}>16:30</option>
            <option value="16:45" {% if shipping_hitcpost_pickup_time == '16:45' %}selected="selected"{% endif %}>16:45</option>
            <option value="17:00" {% if shipping_hitcpost_pickup_time == '17:00' %}selected="selected"{% endif %}>17:00</option>
            <option value="17:15" {% if shipping_hitcpost_pickup_time == '17:15' %}selected="selected"{% endif %}>17:15</option>
            <option value="17:30" {% if shipping_hitcpost_pickup_time == '17:30' %}selected="selected"{% endif %}>17:30</option>
            <option value="17:45" {% if shipping_hitcpost_pickup_time == '17:45' %}selected="selected"{% endif %}>17:45</option>
            </select>
            </div>
          </div>
      <div class="form-group">
            <label class="col-sm-2 control-label" for="input-packaging-type">Pickup Close Time<span data-toggle="tooltip" title="Must be a minimum of one hour after preferred-time"><b style="color:red;">*</b></span></label>
            <div class="col-sm-10">
              <select name="shipping_hitcpost_close_time" id="input-packing-type" class="form-control">
            <option value="12:00" {% if shipping_hitcpost_close_time == '12:00' %}selected="selected"{% endif %}>12:00</option>
            <option value="12:15" {% if shipping_hitcpost_close_time == '12:15' %}selected="selected"{% endif %}>12:15</option>
            <option value="12:30" {% if shipping_hitcpost_close_time == '12:30' %}selected="selected"{% endif %}>12:30</option>
            <option value="12:45" {% if shipping_hitcpost_close_time == '12:45' %}selected="selected"{% endif %}>12:45</option>
            <option value="13:00" {% if shipping_hitcpost_close_time == '13:00' %}selected="selected"{% endif %}>13:00</option>
            <option value="13:15" {% if shipping_hitcpost_close_time == '13:15' %}selected="selected"{% endif %}>13:15</option>
            <option value="13:30" {% if shipping_hitcpost_close_time == '13:30' %}selected="selected"{% endif %}>13:30</option>
            <option value="13:45" {% if shipping_hitcpost_close_time == '13:45' %}selected="selected"{% endif %}>13:45</option>
            <option value="14:00" {% if shipping_hitcpost_close_time == '14:00' %}selected="selected"{% endif %}>14:00</option>
            <option value="14:15" {% if shipping_hitcpost_close_time == '14:15' %}selected="selected"{% endif %}>14:15</option>
            <option value="14:30" {% if shipping_hitcpost_close_time == '14:30' %}selected="selected"{% endif %}>14:30</option>
            <option value="14:45" {% if shipping_hitcpost_close_time == '14:45' %}selected="selected"{% endif %}>14:45</option>
            <option value="15:00" {% if shipping_hitcpost_close_time == '15:00' %}selected="selected"{% endif %}>15:00</option>
            <option value="15:15" {% if shipping_hitcpost_close_time == '15:15' %}selected="selected"{% endif %}>15:15</option>
            <option value="15:30" {% if shipping_hitcpost_close_time == '15:30' %}selected="selected"{% endif %}>15:30</option>
            <option value="15:45" {% if shipping_hitcpost_close_time == '15:45' %}selected="selected"{% endif %}>15:45</option>
            <option value="16:00" {% if shipping_hitcpost_close_time == '16:00' %}selected="selected"{% endif %}>16:00</option>
            <option value="16:15" {% if shipping_hitcpost_close_time == '16:15' %}selected="selected"{% endif %}>16:15</option>
            <option value="16:30" {% if shipping_hitcpost_close_time == '16:30' %}selected="selected"{% endif %}>16:30</option>
            <option value="16:45" {% if shipping_hitcpost_close_time == '16:45' %}selected="selected"{% endif %}>16:45</option>
            <option value="17:00" {% if shipping_hitcpost_close_time == '17:00' %}selected="selected"{% endif %}>17:00</option>
            <option value="17:15" {% if shipping_hitcpost_close_time == '17:15' %}selected="selected"{% endif %}>17:15</option>
            <option value="17:30" {% if shipping_hitcpost_close_time == '17:30' %}selected="selected"{% endif %}>17:30</option>
            <option value="17:45" {% if shipping_hitcpost_close_time == '17:45' %}selected="selected"{% endif %}>17:45</option>
          </select>
            </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">

    jQuery('#input-picbusiness').change(function(){
      if(jQuery(this).val() == 'false') {
        jQuery('#shipping_hitcpost_picalt_company').show();
        jQuery('#shipping_hitcpost_picalt_address').show();
        jQuery('#shipping_hitcpost_picalt_city').show();
        jQuery('#shipping_hitcpost_picalt_province').show();
        jQuery('#shipping_hitcpost_picalt_post_code').show();
      }else
      {
        jQuery('#shipping_hitcpost_picalt_company').hide();
        jQuery('#shipping_hitcpost_picalt_address').hide();
        jQuery('#shipping_hitcpost_picalt_city').hide();
        jQuery('#shipping_hitcpost_picalt_province').hide();
        jQuery('#shipping_hitcpost_picalt_post_code').hide();
      }
    }).change();

  jQuery(window).load(function(){
    jQuery('#hit_cpost_shipping_add_trackingpin_shipmentid').change(function(){
      if(jQuery(hit_cpost_shipping_add_trackingpin_shipmentid).is(':checked')) {
        jQuery('#cpost_email_service').show();
      }else
      {
        jQuery('#cpost_email_service').hide();
      }
    }).change();

    jQuery('#hit_cpost_shipping_return_label_key').change(function(){
      if(jQuery('#hit_cpost_shipping_return_label_key').is(':checked')) {
        jQuery('#hit_return_label_acc_number').show();
      }else
      {
        jQuery('#hit_return_label_acc_number').hide();
      }
    }).change();

    jQuery('#hit_cpost_shipping_request_archive_airway_label').change(function(){
      if(jQuery('#hit_cpost_shipping_request_archive_airway_label').is(':checked')) {
        jQuery('#hit_no_of_archive_bills').show();
      }else
      {
        jQuery('#hit_no_of_archive_bills').hide();
      }
    }).change();
    jQuery('#hit_cpost_shipping_email_notification_service').change(function(){
      if(jQuery('#hit_cpost_shipping_email_notification_service').is(':checked')) {
        jQuery('#hit_cpost_email_notification_message').show();
      }else
      {
        jQuery('#hit_cpost_email_notification_message').hide();
      }
    }).change();
    jQuery('#hit_cpost_shipping_dutypayment_type').change(function(){
      if(jQuery(this).val() == 'T') {
        jQuery('#hit_t_acc_number').show();
      }else
      {
        jQuery('#hit_t_acc_number').hide();
      }
    }).change();

    var pack_type_options = '{{ option_string }}';
    jQuery('.cpost_boxes .insert').click( function() {
      var $tbody = jQuery('.cpost_boxes').find('#rates');
      var size = $tbody.find('tr').size();
      var code = '<tr class="new">\
  <td  style="padding:3px;" class="check-column"><input type="checkbox" /></td>\
  <input type="hidden" size="1" name="boxes_id[' + size + ']" />\
  <td style="padding:3px;"><input type="text" size="25" name="boxes_name[' + size + ']" /></td>\
  <td style="padding:3px;"><input type="text" style="width:100%;" name="boxes_length[' + size + ']" /></td>\
  <td style="padding:3px;"><input type="text" style="width:100%;" name="boxes_width[' + size + ']" /></td>\
  <td style="padding:3px;"><input type="text" style="width:100%;" name="boxes_height[' + size + ']" /></td>\
  <td style="padding:3px;"><input type="text" style="width:100%;" name="boxes_box_weight[' + size + ']" /></td>\
  <td style="padding:3px;"><input type="text" style="width:100%;" name="boxes_max_weight[' + size + ']" /></td>\
  <td style="padding:3px;"><center><input type="checkbox" name="boxes_enabled[' + size + ']" /></center></td>\
  <td style="padding:3px;"><select name="boxes_pack_type[' + size + ']" >' + pack_type_options + '</select></td>\
  </tr>';
      $tbody.append( code );
      return false;
    });

    jQuery('.cpost_boxes .remove').click(function() {
      var $tbody = jQuery('.cpost_boxes').find('#rates');
      $tbody.find('.check-column input:checked').each(function() {
        jQuery(this).closest('tr').hide().find('input').val('');
      });

      return false;
    });

  });

</script>
{% endblock %}

{{ footer }}
