{% extends 'admin/layout.html.twig' %}

{% set menu = 'admin_setting_es_bar' %}

{% block main %}

{{ web_macro.flash_messages() }}

<form class="form-horizontal" method="post" id="esbar-setting-form" novalidate>
  <div class="row form-group">
    <div class="col-md-3 control-label">
      <label >{{'admin.setting.es_bar.esbar_function'|trans}}</label>

    </div>
    <div class="controls col-md-8 radios">
      {{ radios('enabled', {1:'admin.setting.es_bar.esbar_function.open'|trans, 0:'admin.setting.es_bar.esbar_function.closed'|trans}, esBar.enabled) }}
      <p class="help-block">{{'admin.setting.es_bar.help_block'|trans}}</p>
    </div>
  </div>

  <div class="row form-group">
    <div class="col-md-3 control-label"></div>
    <div class="controls col-md-8">
      <button type="submit" class="btn btn-primary">{{'form.btn.submit'|trans}}</button>
    </div>
  </div>
  <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
</form>
{% endblock %}