{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-dashboard" 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="alert alert-info"><i class="fa fa-info-circle"></i> {{ text_replacement }}</div>
    <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">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-dashboard" class="form-horizontal">
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-width">{{ entry_width }}</label>
            <div class="col-sm-10">
              <select name="dashboard_websky_iranmap_width" id="input-width" class="form-control">
                {% for column in columns %}
                <option value="{{ column }}"{% if column == dashboard_websky_iranmap_width %} selected="selected"{% endif %}>{{ column }}</option>
                {% endfor %}
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-address"><span data-toggle="tooltip" title="{{ text_help_address }}">{{ entry_address }}</span></label>
            <div class="col-sm-10">
              <select name="dashboard_websky_iranmap_address" id="input-address" class="form-control">
                <option value="payment"{% if dashboard_websky_iranmap_address == 'payment' %} selected="selected"{% endif %}>{{ text_payment }}</option>
                <option value="shipping"{% if dashboard_websky_iranmap_address == 'shipping' %} selected="selected"{% endif %}>{{ text_shipping }}</option>
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-color"><span data-toggle="tooltip" title="{{ text_help_color }}">{{ entry_color }}</span></label>
            <div class="col-sm-10">
              <div class="input-group">
                <span class="input-group-addon" style="padding: 3px 8px;"><input type="color" id="input-color-picker" value="{{ dashboard_websky_iranmap_color }}" style="width: 34px; height: 28px; padding: 0; border: 0; background: transparent;" /></span>
                <input type="text" name="dashboard_websky_iranmap_color" value="{{ dashboard_websky_iranmap_color }}" placeholder="#1e91cf" id="input-color" class="form-control" pattern="#[0-9A-Fa-f]{6}" dir="ltr" />
              </div>
            </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="dashboard_websky_iranmap_status" id="input-status" class="form-control">
                <option value="1"{% if dashboard_websky_iranmap_status %} selected="selected"{% endif %}>{{ text_enabled }}</option>
                <option value="0"{% if not dashboard_websky_iranmap_status %} selected="selected"{% endif %}>{{ text_disabled }}</option>
              </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="number" name="dashboard_websky_iranmap_sort_order" value="{{ dashboard_websky_iranmap_sort_order }}" id="input-sort-order" class="form-control" />
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
$('#input-color-picker').on('input change', function() {
  $('#input-color').val(this.value);
});
$('#input-color').on('input change', function() {
  if (/^#[0-9a-f]{6}$/i.test(this.value)) {
    $('#input-color-picker').val(this.value);
  }
});
//--></script>
{{ footer }}
