templates/company/blocks/_buttons_action.html.twig line 1

Open in your IDE?
  1. <div class="col-md-9 text-right"> 
  2.     {{ include('company/blocks/_message_alert.html.twig') }}
  3.     {% if is_granted('ROLE_COMMERCIAL') %}
  4.         <span>
  5.             <a href="{{ path('company_email', {'id': company.id}) }}" class="btn btn-primary"
  6.                 onclick="return confirm('Voulez-vous envoyer la fiche à la société {{ company.name }} par mail ?');">
  7.                 <i class="fa fa-envelope" aria-hidden="true"></i>
  8.                 <span>
  9.                     Envoyer le formulaire par mail au client
  10.                 </span>
  11.             </a>
  12.         </span>
  13.         <span>
  14.             <button class="btn btn-secondary" data-toggle="modal" data-target="#messageModal"> 
  15.                 <i class="fa fa-envelope" aria-hidden="true"></i>
  16.                 Envoyer un message au client
  17.             </button>
  18.         </span>
  19.         {{ include('company/_message_form.html.twig') }}
  20.     {% elseif is_granted('ROLE_ACCOUNTANT') %}
  21.         <span>
  22.             <a href="{{ path('send_validate_importation', {'id': company.id}) }}" 
  23.                 class="btn btn-primary"
  24.                     onclick="return confirm('Voulez-vous confirmer l'importation de la société {{ company.name }} ?');" > 
  25.                 <i class="fa fa-envelope" aria-hidden="true"></i>
  26.                     valider l'importation
  27.             </a>
  28.         </span>
  29.     {% endif %}
  30. </div>