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

Open in your IDE?
  1. <section class="p-0" id="v-pills-information">
  2.     <div class="card">
  3.         <div class="card-header">
  4.             <div class="row align-items-center">
  5.                 <div class="col">
  6.                     <h5 class="m-0 p-0">Informations générales</h5>
  7.                 </div>
  8.                 <div>
  9.                     {% if (is_granted('ROLE_ADMIN') 
  10.                         or is_granted('ROLE_COMMERCIAL')
  11.                         or is_granted('ROLE_ACCOUNTANT')
  12.                         or (not is_granted('ROLE_ACCOUNTANT')
  13.                         and not is_granted('ROLE_COMMERCIAL')))
  14.                         and company.locked == 0
  15.                     %}
  16.                         <a class="btn btn-sm btn-secondary btn-action" href="{{ path('company_edit', {'id': company.id}) }}">
  17.                             <i class="fas fa-pencil-alt"></i>
  18.                             <span class="sr-only">
  19.                                 Editer
  20.                             </span>
  21.                         </a>
  22.                     {% endif %}
  23.                     {% if is_granted('ROLE_ADMIN') and company.locked == 0 %}
  24.                         {{ include('company/_delete_form.html.twig') }}
  25.                     {% endif %}
  26.                 </div>
  27.             </div>
  28.         </div>
  29.         <div class="card-body">
  30.             <table class="table">
  31.                 <tbody>
  32.                     <tr>
  33.                         <th>Raison sociale</th>
  34.                         <td>{{ company.name }}</td>
  35.                     </tr>
  36.                     <tr>
  37.                         <th>Siret</th>
  38.                         <td>{{ company.siret }}</td>
  39.                     </tr>
  40.                     <tr>
  41.                         <th>TVA</th>
  42.                         <td>{{ company.tva }}</td>
  43.                     </tr>
  44.                     <tr>
  45.                         <th>Email</th>
  46.                         <td>{{ company.email }}</td>
  47.                     </tr>
  48.                     {% if is_granted('ROLE_ACCOUNTANT') or is_granted('ROLE_COMMERCIAL') %}
  49.                         <tr>
  50.                             <th>Code Client</th>
  51.                             <td>{{ company.codeClient }}</td>
  52.                         </tr>
  53.                         <tr>
  54.                             <th>Frais de port</th>
  55.                             <td>{{ company.shippingCostTaxExcluded }} €</td>
  56.                         </tr>
  57.                         <tr>
  58.                             <th>Franco de port </th>
  59.                             <td>{{ company.freeShippingTaxExcluded }} €</td>
  60.                         </tr>
  61.                         <tr>
  62.                             <th>Périodicité de facturation</th>
  63.                             <td>{{ company.billingFrequency }}</td>
  64.                         </tr>
  65.                         <tr>
  66.                             <th>Départ de</th>
  67.                             <td>{{ company.departure }}</td>
  68.                         </tr>
  69.                         <tr>
  70.                             <th>Tarifs</th>
  71.                             <td>{{ company.priceType }}</td>
  72.                         </tr>
  73.                         <tr>
  74.                             <th>Taux de remise</th>
  75.                             <td>{{ company.discountRate }}</td>
  76.                         </tr>
  77.                         <tr>
  78.                             <th>Tarifs d'exception</th>
  79.                             <td>{{ company.exceptionPrice ? 'Oui' : 'Non' }}</td>
  80.                         </tr>
  81.                         <tr>
  82.                             <th>Groupement</th>
  83.                             <td>{{ company.grouping ? 'Oui' : 'Non' }}</td>
  84.                         </tr>
  85.                         <tr>
  86.                             <th>Commentaire</th>
  87.                             <td>{{ company.groupingComment }}</td>
  88.                         </tr>
  89.                         <tr>
  90.                             <th>Remarque</th>
  91.                             <td>{{ company.note }}</td>
  92.                         </tr>
  93.                         <tr>
  94.                             <th>Métier</th>
  95.                             <td>{{ company.job.getDisplayName }}</td>
  96.                         </tr>
  97.                          <tr>
  98.                             <th>Connu par</th>
  99.                             <td>{{ company.knownAs }}</td>
  100.                         </tr>
  101.                         <tr>
  102.                             <th>Statut</th>
  103.                             <td class="badge {% if company.status.id == 1 %} badge-warning {% else %} badge-success {% endif %}" >{{ company.status.name }}</td>
  104.                         </tr>
  105.                     {% endif %}
  106.                 </tbody>
  107.             </table>
  108.             {% if files is defined and files is not empty %}
  109.                 <hr>
  110.                 <h5>DOCUMENTS</h5>
  111.                 <ul>
  112.                     {% for file in files %}
  113.                     <li>
  114.                         <a href='{{ asset(file.pathname) }}' target="_blank">
  115.                             <i class="far fa-file"></i> {{ file.filename }}
  116.                         </a>
  117.                     </li> 
  118.                     {% endfor %}
  119.                 </ul>
  120.             {% endif %}
  121.         </div>
  122.     </div>
  123.     </section>