{% do setSubAriane(1, 'Export des adresses électroniques' | trad) %}
{% extends 'layout.twig' %}
     
{% block body %}

<section class="contenu">
	<h1>{{ 'Paramétrage' | trad }}</h1>
	
	{{ ariane() }}
	{{ arianeSub() }}

	<h2>{{ strBuild(
		'Export des adresses électroniques vers @1@' | trad,
		['Agena3000']
	) }}</h2>

	<form class="form-default box-form mb-base" method="POST"
        action="{{ path('Parametrage.Agena.exportAdr', {
			pdp: pdpConfig.ID,
		}) }}"
        onsubmit="return ajaxSubmit(event)"
        data-onsuccess="formSuccess"
    >
		{{ formInput({
			name: 'InitialAdminUser',
			type: 'SELECT',
			choices: listUser,
			validator: {mandatory: true},
		}, {}, 'Identifiant administrateur initial' | trad) }}
		<footer class="text-right">
			<button type="submit" class="button principal">
				{{ 'Exporter' | trad }}
			</button>
		</footer>
    </form>

</section>
{% apply jsTemplate('tpl-terme-paiement') %}
<p>

</p>
{% endapply %}
<script>
window.action.formSuccess = (response) => {
	desactiveLoader();
	activePopupInfo(
		{{ 'Opération terminé' | trad | json }},
		response,
		'modal_small'
	);
}
</script>
{% endblock %}