{% load combo %}

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

<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">
<h3>Recherche</h3>
{% if not json.err %}

<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="0"/>
  <input type="hidden" name="numero_caf" value="{{ request.GET.numero_caf|default:'' }}"/>
  <input type="hidden" name="nom" value="{{ request.GET.nom|default:'' }}"/>
  <input type="hidden" name="referent" value="{{ request.GET.referent|default:'' }}"/>
  <button>Exporter</button>
  </p>
</form>

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

{% else %}
  <p>Aucun bénéficiaire trouvé.</p>
{% endif %}
</div>

{% endif %}
