{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right" style="display:none;">
        <button type="button" data-toggle="tooltip" title="{{ button_filter }}" onclick="$('#filter-return').toggleClass('hidden-sm hidden-xs');" class="btn btn-default hidden-md hidden-lg"><i class="fa fa-filter"></i></button>
        <a href="{{ add }}" data-toggle="tooltip" title="{{ button_add }}" class="btn btn-primary"><i class="fa fa-plus"></i></a>
        <button type="button" data-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger" onclick="confirm('{{ text_confirm }}') ? $('#form-return').submit() : false;"><i class="fa fa-trash-o"></i></button>
      </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 %}
      {% if success %}
      <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> Successfully uploaded.
        <button type="button" class="close" data-dismiss="alert">&times;</button>
      </div>
      {% endif %}
      <div class="row">
        <div id="" class="col-md-3 col-md-push-9 col-sm-12 hidden-sm hidden-xs">
        </div>
        <div id="customerimport" class="col-md-9 col-md-pull-3 col-sm-12">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title"><i class="fa fa-filter"></i> Import Area</h3>
            </div>
            <div class="panel-body">

              <form action="{{ customer_import }}" method="post" enctype="multipart/form-data" id="csv_import">
                  <table class="form">

            <tr>
                          <td>Customer Import</td>
                          <td>
                              <input type="file" name="csv_import" /></td>
                          <td><a class="button button-csv"><span>Import Customers</span></a></td>
                      </tr>
                  </table>
              </form>

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

<script type="text/javascript">
  $(document).ready(function(){
    $( ".button-csv" ).click(function() {
      $('#csv_import').submit();
    });

  });
</script>


{{ footer }}
