{% load combo %}

{% if not json.err and not plateforme.err and plateforme.data %}

<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">

<h3>{{ json.query }} ({{ json.count }})</h3>

{% if json.data %}

<form method="post" action="{% url 'combo-public-ajax-page-cell' page_pk=cell.page.id cell_reference=cell.get_reference %}{% if request.GET.ctx %}?ctx={{ request.GET.ctx|urlencode }}{% endif %}">
  <p>
  <input type="hidden" name="action" value="csv"/>
  <input type="hidden" name="plateforme_id" value="{{ plateforme_id }}"/>
  <input type="hidden" name="query" value="{{ query_id }}"/>
  <button>Exporter</button> 
  </p>
</form>

{% include "./rsa13-fragment-liste-beneficiaires.html" %}

{% endif %}
</div>

{% endif %}
