{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-tier" 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 %}
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i> {{ text_form }}</h3>
      </div>
      <div class="panel-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-user" class="form-horizontal">
            <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-title">{{ entry_title }}</label>
            <div class="col-sm-10">
              <input type="text" name="title" value="{{ title }}" placeholder="{{ entry_title }}" id="input-title" class="form-control" />
              {% if error_title %}
              <div class="text-danger">{{ error_title }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-description">{{ entry_description }}</label>
            <div class="col-sm-10">
              <input type="text" name="description" value="{{ description }}" placeholder="{{ entry_description }}" id="input-description" class="form-control" />
              {% if error_description %}
              <div class="text-danger">{{ error_description }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-image">{{ entry_image }}</label>
            <div class="col-sm-10"><a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="{{ thumb }}" alt="" title="" data-placeholder="{{ placeholder }}" /></a>
              <input type="hidden" name="image" value="{{ image }}" id="input-image" />
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-tnc">{{ entry_tnc }}</label>
            <div class="col-sm-10">
              <input type="text" name="tnc" value="{{ tnc }}" placeholder="{{ entry_tnc }}" id="input-tnc" class="form-control" />
              {% if error_tnc %}
              <div class="text-danger">{{ error_tnc }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-achieve_tier_amount">{{ entry_achive_tier_amount }}</label>
            <div class="col-sm-10">
              <input type="text" name="achieve_tier_amount" value="{{ achieve_tier_amount }}" placeholder="{{ entry_achive_tier_amount }}" id="input-achieve_tier_amount" class="form-control" />
              {% if error_achieve_tier_amount %}
              <div class="text-danger">{{ error_achieve_tier_amount }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-maintain_tier_type">{{ entry_maintain_tier_type }}</label>
            <div class="col-sm-10">
              <input type="text" name="maintain_tier_type" value="{{ maintain_tier_type }}" placeholder="{{ entry_maintain_tier_type }}" id="input-maintain_tier_type" class="form-control" autocomplete="off" />
              {% if error_maintain_tier_type %}
              <div class="text-danger">{{ error_maintain_tier_type }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-maintain_tier_amount">{{ entry_maintain_tier_amount}}</label>
            <div class="col-sm-10">
              <input type="text" name="maintain_tier_amount" value="{{ maintain_tier_amount }}" placeholder="{{ entry_maintain_tier_amount }}" id="input-maintain_tier_amount" class="form-control" />
              {% if error_maintain_tier_amount %}
              <div class="text-danger">{{ error_maintain_tier_amount}}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-regular_multiplier_rate">{{ entry_regular_multiplier_rate}}</label>
            <div class="col-sm-10">
              <input type="text" name="regular_multiplier_rate" value="{{ regular_multiplier_rate }}" placeholder="{{ entry_regular_multiplier_rate }}" id="input-regular_multiplier_rate" class="form-control" />
              {% if error_regular_multiplier_rate %}
              <div class="text-danger">{{ error_regular_multiplier_rate}}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-sale_multiplier_rate">{{ entry_sale_multiplier_rate}}</label>
            <div class="col-sm-10">
              <input type="text" name="sale_multiplier_rate" value="{{ sale_multiplier_rate }}" placeholder="{{ entry_sale_multiplier_rate }}" id="input-sale_multiplier_rate" class="form-control" />
              {% if error_sale_multiplier_rate %}
              <div class="text-danger">{{ error_sale_multiplier_rate}}</div>
              {% endif %}
            </div>
          </div>
           <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-point_expiry_day">{{ entry_point_expiry_day}}</label>
            <div class="col-sm-10">
              <input type="text" name="point_expiry_day" value="{{ point_expiry_day }}" placeholder="{{ entry_point_expiry_day }}" id="input-point_expiry_day" class="form-control" />
              {% if error_point_expiry_day %}
              <div class="text-danger">{{ error_point_expiry_day}}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-tier_expiry_day">{{ entry_tier_expiry_day}}</label>
            <div class="col-sm-10">
              <input type="text" name="tier_expiry_day" value="{{ tier_expiry_day }}" placeholder="{{ entry_tier_expiry_day }}" id="input-tier_expiry_day" class="form-control" />
              {% if error_tier_expiry_day %}
              <div class="text-danger">{{ error_tier_expiry_day}}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-start_date">{{ entry_start_date}}</label>
            <div class="col-sm-10">
              <input type="text" name="start_date" value="{{ start_date }}" placeholder="{{ entry_start_date }}" id="input-start_date" class="form-control" />
              {% if error_start_date %}
              <div class="text-danger">{{ error_start_date}}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group required">
            <label class="col-sm-2 control-label" for="input-end_date">{{ entry_end_date}}</label>
            <div class="col-sm-10">
              <input type="text" name="end_date" value="{{ end_date }}" placeholder="{{ entry_end_date }}" id="input-end_date" class="form-control" />
              {% if error_end_date %}
              <div class="text-danger">{{ error_end_date}}</div>
              {% endif %}
            </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="status" id="input-status" class="form-control">
                {% if status %}
                <option value="0">{{ text_disabled }}</option>
                <option value="1" selected="selected">{{ text_enabled }}</option>
                {% else %}
                <option value="0" selected="selected">{{ text_disabled }}</option>
                <option value="1">{{ text_enabled }}</option>
                {% endif %}
              </select>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{{ footer }} 