{{ form_start(form, {attr: {class: 'ajax-form', 'data-form-confirmation': "Voulez-vous supprimer l'activité "~data.activity.name~" ?"}}) }}
{{ form_widget(form.id, {value: data.activity.id}) }}
{% if data.variant|default('icon') == 'icon' %}
{{ form_widget(form.submit, {
	label: '<i class="icofont-trash color-red"><span class="d-none">Supprimer</span></i></i>',
	label_html: true,
	attr: {
	    class: 'icon-button',
	    title: 'Supprimer l\'activié',
	}
})}}
{% elseif data.variant == 'full' %}
{{ form_widget(form.submit, {label: 'Supprimer l\'activité', attr: {class: "w-100"}})}}
{% endif %}
{{ form_end(form) }}