templates/SalesJournal/printAll.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'PotentialCustomerCompany' %}
  3. {% block title %}{{ 'ui.sales_journals' | trans }}{% endblock %}
  4. {% block body %}
  5.     <h1>{{ 'ui.sales_journals' | trans }} <small>{{ 'now' | date('M j Y') }}</small></h1>
  6.     <table id="customer-list" class="table">
  7.         <thead>
  8.         <tr>
  9.             <th>#</th>
  10.             <th>{{ 'property.name' | trans }}</th>
  11.             <th>{{ 'property.contacts' | trans }}</th>
  12.             <th>{{ 'property.notes' | trans }}</th>
  13.         </tr>
  14.         </thead>
  15.         <tbody>
  16.         {% for company in companies %}
  17.             <tr id="company-{{ company.id }}">
  18.                 <td>{{ company.id }}</td>
  19.                 <td>{{ company.name }}</td>
  20.                 <td>
  21.                     {% for contact in company.contacts %}
  22.                         <p>
  23.                             {{ contact.name }}{% if contact.role is not null %}, {{ contact.role }}{% endif %}{% if contact.email is not null %}<br/> {{ contact.email }}{% endif %}{% if contact.phone is not null %}<br/> {{ contact.phone }}{% endif %}
  24.                         </p>
  25.                     {% endfor %}
  26.                 </td>
  27.                 <td>{{ company.notes | nl2br }}</td>
  28.             </tr>
  29.         {% endfor %}
  30.         </tbody>
  31.     </table>
  32. {% endblock %}
  33. {% block stylesheets %}
  34.     <style type="text/css">
  35.         body {
  36.             padding: 0;
  37.         }
  38.     </style>
  39. {% endblock %}
  40. {% block javascripts %}
  41.     <script type="text/javascript">
  42.         $(document).ready(function () {
  43.             print();
  44.         });
  45.     </script>
  46. {% endblock %}