templates/module/module-facture-retard-list.html.twig line 1

Open in your IDE?
  1. {% if facture_list is empty %}
  2.     <a href="javascript:void(0)">
  3.         <div class="media">
  4.             <div class="media-left align-self-center"><i class="feather icon-thumbs-up icon-bg-circle bg-success bg-darken-3"></i></div>
  5.             <div class="media-body">
  6.                 <h6 class="media-heading success darken-3">Tout va bien !</h6>
  7.                 <p class="notification-text font-small-3 text-muted">Aucune facture en retard de paiement</p>
  8.                 <small>
  9.                     <time class="media-meta text-muted" datetime="2015-06-11T18:29:20+08:00"></time>
  10.                 </small>
  11.             </div>
  12.         </div>
  13.     </a>
  14. {% else %}
  15.     {% for facture in facture_list %}
  16.         {% set color = 'yellow' %}
  17.         {% if facture.dateEnvoi|days_between_now > 90 %} {% set color = 'danger' %} {% endif %}
  18.         <a href="{{ path('show_projet', {'id': facture.projet.id}) }}">
  19.             <div class="media">
  20.                 <div class="media-left align-self-center"><i class="feather icon-alert-triangle icon-bg-circle bg-{{ color }} bg-darken-3"></i></div>
  21.                 <div class="media-body">
  22.                     <h6 class="media-heading {{ color }} darken-3">{{ facture.tiers.libSociete }} - {{ facture.numPiece }}</h6>
  23.                     <p class="notification-text font-small-3 text-muted">{{ facture.montantHt|format_euro }} H.T.</p>
  24.                     <small>
  25.                         <time class="media-meta text-light" datetime="{{ facture.dateEnvoi|date('d-m-Y-H-i-s')}}"><i class="fa fa-clock-o"></i>{{ facture.dateEnvoi|days_between_now }} jrs</time>
  26.                     </small>
  27.                 </div>
  28.             </div>
  29.         </a>
  30.     {% endfor %}
  31. {% endif %}