<div class="col-md-9 text-right">
{{ include('company/blocks/_message_alert.html.twig') }}
{% if is_granted('ROLE_COMMERCIAL') %}
<span>
<a href="{{ path('company_email', {'id': company.id}) }}" class="btn btn-primary"
onclick="return confirm('Voulez-vous envoyer la fiche à la société {{ company.name }} par mail ?');">
<i class="fa fa-envelope" aria-hidden="true"></i>
<span>
Envoyer le formulaire par mail au client
</span>
</a>
</span>
<span>
<button class="btn btn-secondary" data-toggle="modal" data-target="#messageModal">
<i class="fa fa-envelope" aria-hidden="true"></i>
Envoyer un message au client
</button>
</span>
{{ include('company/_message_form.html.twig') }}
{% elseif is_granted('ROLE_ACCOUNTANT') %}
<span>
<a href="{{ path('send_validate_importation', {'id': company.id}) }}"
class="btn btn-primary"
onclick="return confirm('Voulez-vous confirmer l'importation de la société {{ company.name }} ?');" >
<i class="fa fa-envelope" aria-hidden="true"></i>
valider l'importation
</a>
</span>
{% endif %}
</div>