{{ form_start(form, {attr: {class: 'ajax-form', 'data-form-confirmation': "Voulez-vous supprimer la tâche "~data.task.name~" ?"}}) }}
{{ form_widget(form.id, {value: data.task.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 la tâche',
	}
})}}
{% elseif data.variant == 'full' %}
{{ form_widget(form.submit, {label: 'Supprimer la tâche', attr: {class: "w-100"}})}}
{% endif %}
{{ form_end(form) }}