{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <a data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary" onclick="$('#form').submit();"><i class="fa fa-check-circle"></i></a>
        <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 }}</div>
    {% endif %}
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-list"></i> {{ text_manage }}</h3>
      </div>
      <div class="panel-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 }}" />
          <ul class="nav nav-tabs">
            <li class="active"><a href="#tab-general" data-toggle="tab">{{ tab_general }}</a></li>
            <li><a href="#tab-profile" data-toggle="tab">{{ tab_settings }}</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-profile">
              <div class="form-group">
                <label class="col-sm-2 control-label">{{ text_general_private }}</label>
                <div class="col-sm-10">
                  <select name="data[private_listing]" class="form-control">
                    <option value="0"{% if data.private_listing == 0 %} selected{% endif %}>{{ text_no }}</option>
                    <option value="1"{% if data.private_listing == 1 %} selected{% endif %}>{{ text_yes }}</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label" for="name">{{ text_general_price }}</label>
                <div class="col-sm-10">
                  <input type="text" name="data[price_modify]" id="price_modify" value="{% if data.price_modify == "" %}{{ '0' }}{% else %}{{ data.price_modify }}{% endif %}" class="form-control" />
                  <span class="help-block">{{ text_general_price_help }}</span>
                </div>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
  $('#price_modify').on('change', function(){
    $(this).text().replace('%', '');
  });
//--></script>
{{ footer }}
