{{ header }}{{ column_left }}
<!-- Content Wrapper. Contains page content -->
<div id="content" class="content-wrapper">
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <div>
      <div class="pull-right">
        <a data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary btn-sm" onclick="$('#form').submit();"><i class="fa fa-check-circle"></i> {{ button_save }}</a>
        <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-default btn-sm"><i class="fa fa-reply"></i> {{ button_cancel }}</a>
      </div>
      <h1>
        {{ heading_title }}
      </h1>
    </div>
    <div class="row">
      <div class="col-sm-12">
        <ul class="breadcrumb">
          {% for breadcrumb in breadcrumbs %}
          <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
          {% endfor %}
        </ul>
      </div>
    </div>
  </section>

  <!-- Alert -->
  <section class="content-header">
    {% 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> {{ success }}
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
    {% endif %}
  </section>
  <!-- /.alert -->

  <!-- Main content -->
  <section class="content">

    <!-- Default box -->
    <div class="box">
      <div class="box-header with-border">
        <h3 class="box-title">{{ text_manage }}</h3>

        <div class="box-tools pull-right">
          <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="{{ text_collapse }}">
            <i class="fa fa-minus"></i></button>
        </div>
      </div>
      <div class="box-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form" class="form-horizontal">
          <input type="hidden" name="type" value="{{ type }}" />
          <input type="hidden" name="ebay_profile_id" value="{{ ebay_profile_id }}" />
          <!-- Custom Tabs -->
          <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
              <li class="active"><a href="#tab-general" data-toggle="tab">{{ tab_general }}</a></li>
              <li><a href="#tab-template" data-toggle="tab">{{ tab_template }}</a></li>
              <li><a href="#tab-gallery" data-toggle="tab">{{ tab_gallery }}</a></li>
            </ul>
            <div class="tab-content">
              <div class="tab-pane active" id="tab-general">
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_profile_default }}</label>
                  <div class="col-sm-10">
                    <input type="hidden" name="default" value="0" />
                    <input type="checkbox" name="default" value="1"{% if default == 1 %} checked="checked"{% endif %} />
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label" for="name">{{ text_profile_name }}</label>
                  <div class="col-sm-10">
                    <input type="text" name="name" value="{{ name }}" placeholder="{{ text_profile_name }}" id="name" class="form-control" />
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label" for="description">{{ text_profile_desc }}</label>
                  <div class="col-sm-10">
                    <textarea name="description" class="form-control" rows="3" id="description">{{ description }}</textarea>
                  </div>
                </div>
              </div>
              <div class="tab-pane" id="tab-template">
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_template_choose }}</label>
                  <div class="col-sm-10">
                    <select name="data[ebay_template_id]" class="form-control">
                      <option value="None">None</option>
                      {% for template in templates %}
                        <option value="{{ template.template_id }}" {% if template.template_id == data.ebay_template_id %} selected{% endif %}>{{ template.name }}</option>
                      {% endfor %}
                    </select>
                    <span class="help-block">{{ text_template_choose_help }}</span>
                  </div>
                </div>
              </div>
              <div class="tab-pane" id="tab-gallery">
                <div class="form-group">
                  <label class="col-sm-2 control-label" for="name">{{ text_image_gallery }}</label>
                  <div class="col-sm-10">
                    <div class="row">
                      <div class="col-sm-3">
                        <div class="input-group">
                          <span class="input-group-addon">{{ text_width }}</span>
                          <input type="text" name="data[ebay_gallery_height]" value="{{ data.ebay_gallery_height }}" maxlength="4" class="form-control" />
                          <span class="input-group-addon">{{ text_px }}</span>
                        </div>
                      </div>
                      <div class="col-sm-3">
                        <div class="input-group">
                          <span class="input-group-addon">{{ text_height }}</span>
                          <input type="text" name="data[ebay_gallery_width]" value="{{ data.ebay_gallery_width }}" maxlength="4" class="form-control" />
                          <span class="input-group-addon">{{ text_px }}</span>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-sm-12">
                        <span class="help-block">{{ text_image_gallery_help }}</span>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label" for="name">{{ text_image_thumb }}</label>
                  <div class="col-sm-10">
                    <div class="row">
                      <div class="col-sm-3">
                        <div class="input-group">
                          <span class="input-group-addon">{{ text_width }}</span>
                          <input type="text" name="data[ebay_thumb_height]" value="{{ data.ebay_thumb_height }}" maxlength="4" class="form-control" />
                          <span class="input-group-addon">{{ text_px }}</span>
                        </div>
                      </div>
                      <div class="col-sm-3">
                        <div class="input-group">
                          <span class="input-group-addon">{{ text_height }}</span>
                          <input type="text" name="data[ebay_thumb_width]" value="{{ data.ebay_thumb_width }}" maxlength="4" class="form-control" />
                          <span class="input-group-addon">{{ text_px }}</span>
                        </div>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-sm-12">
                        <span class="help-block">{{ text_image_thumb_help }}</span>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_image_super }}</label>
                  <div class="col-sm-10">
                    <input type="hidden" name="data[ebay_supersize]" value="0" />
                    <input type="checkbox" name="data[ebay_supersize]" value="1"{% if data.ebay_supersize == 1 %} checked="checked"{% endif %} />
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_image_gallery_plus }}</label>
                  <div class="col-sm-10">
                    <input type="hidden" name="data[ebay_gallery_plus]" value="0" />
                    <input type="checkbox" name="data[ebay_gallery_plus]" value="1"{% if data.ebay_gallery_plus == 1 %} checked="checked"{% endif %} />
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_image_all_ebay }}</label>
                  <div class="col-sm-10">
                    <input type="hidden" name="data[ebay_img_ebay]" value="0" />
                    <input type="checkbox" name="data[ebay_img_ebay]" value="1"{% if data.ebay_img_ebay == 1 %} checked="checked"{% endif %} />
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_image_all_template }}</label>
                  <div class="col-sm-10">
                    <input type="hidden" name="data[ebay_img_template]" value="0" />
                    <input type="checkbox" name="data[ebay_img_template]" value="1"{% if data.ebay_img_template == 1 %} checked="checked"{% endif %} />
                  </div>
                </div>
                <div class="form-group">
                  <label class="col-sm-2 control-label">{{ text_image_exclude_default }}</label>
                  <div class="col-sm-10">
                    <input type="hidden" name="data[default_img_exclude]" value="0" />
                    <input type="checkbox" name="data[default_img_exclude]" value="1"{% if data.default_img_exclude == 1 %} checked="checked"{% endif %} />
                    <span class="help-block">{{ text_image_exclude_default_help }}</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!-- /.custom tabs -->
        </form>
      </div>
      <!-- /.box-body -->
    </div>
    <!-- /.box -->

  </section>
  <!-- /.content -->
</div>
<!-- /.content-wrapper -->
{{ footer }}
