{{ header }}{{ column_left }} 
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="pull-right">
        <button type="submit" form="form-yandex-metrika" 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"><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_edit }}</h3>
      </div>
      <div class="panel-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-yandex-metrika" class="form-horizontal">
          <div class="alert alert-info"><i class="fa fa-info-circle"></i> {{ text_help }}</div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-code">{{ entry_code }}</label>
            <div class="col-sm-10">
              <textarea name="analytics_yandex_metrika_code" rows="10" placeholder="{{ entry_code }}" id="input-code" class="form-control" style="	font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;" />{{ analytics_yandex_metrika_code }}</textarea>
              {% if (error_code) %} 
              <div class="text-danger">{{ error_code }}</div>
              {% endif %} 
            </div>
          </div>
              <div class="form-group required">
                <label class="col-sm-2 control-label" for="input-yandex-metrika"><span data-toggle="tooltip" title="{{ text_help_counter }}">{{ text_yandex_metrika }}</span></label>
                <div class="col-sm-10">
                <input type="text" name="analytics_yandex_metrika_counter" value="{{ analytics_yandex_metrika_counter }}" placeholder="{{ text_yandex_metrika }}" id="input-yandex-metrika" class="form-control" />
                </div>
              </div>  
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-status">{{ entry_status }}</label>
            <div class="col-sm-2">
              <select name="analytics_yandex_metrika_status" id="input-status" class="form-control">
                {% if (analytics_yandex_metrika_status) %} 
                <option value="1" selected="selected">{{ text_enabled }}</option>
                <option value="0">{{ text_disabled }}</option>
                {% else %} 
                <option value="1">{{ text_enabled }}</option>
                <option value="0" selected="selected">{{ text_disabled }}</option>
                {% endif %} 
              </select>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="" data-original-title="{{ text_no_admin }}">{{ entry_no_admin }}</span></label>
            <div class="col-sm-2">
				<label class="radio-inline"><input type="radio" name="analytics_yandex_metrika_no_admin" value="1" {{ analytics_yandex_metrika_no_admin == '1' ? 'checked="checked"' : '' }} /> {{ text_yes }} </label>
				<label class="radio-inline"><input type="radio" name="analytics_yandex_metrika_no_admin" value="" {{ analytics_yandex_metrika_no_admin == '' ? 'checked="checked"' : '' }} /> {{ text_no }} </label>
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label"><span data-toggle="tooltip" title="" data-original-title="{{ text_no_users }}">{{ entry_no_users }}</span></label>
            <div class="col-sm-2">
				<label class="radio-inline"><input type="radio" name="analytics_yandex_metrika_no_users" value="1" {{ analytics_yandex_metrika_no_users == '1' ? 'checked="checked"' : '' }} /> {{ text_yes }} </label>
				<label class="radio-inline"><input type="radio" name="analytics_yandex_metrika_no_users" value="" {{ analytics_yandex_metrika_no_users == '' ? 'checked="checked"' : '' }} /> {{ text_no }} </label>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{{ footer }} 