{% extends '@bazar/bazar-import-export-form.twig' %}

{% block label %}{{ _t('BAZ_TYPE_FICHE_EXPORT') }}{% endblock %}

{% block appendToFormLabel %}
  {{ _t('BAZ_VISUALISATION_FICHIER_CSV_A_EXPORTER') ~ selectedForm.bn_label_nature 
            ~' - ' ~ _t('BAZ_TOTAL_FICHES') ~ ' : ' ~ nbEntries }}
{% endblock %}

{% block downloadFileName %}{{ filename }}{% endblock %}
{% block appendToFormButtonLabel %}{{- _t('BAZ_TELECHARGER_FICHIER_EXPORT_CSV') -}}{% endblock %}

{% block appendToForm %}
  <div class="control-group form-group">
    <div class="controls col-sm-9">
      <label>
        <input type="checkbox" class="form-check-input" 
          id="bazar-export-option-keys-instead-of-values" name="bazar-export-option-keys-instead-of-values" 
          onchange="javascript:this.form.submit();" value="1"
          {% if optionKeysInsteadOfValuesChecked %}checked{% endif %} />
        <span>{{ _t('BAZ_EXPORT_KEYS_INSTEAD_OF_VALUES') }}</span>
      </label>
    </div>
  </div>
  {{ parent() }}
{% endblock %}
