templates/eshopHomeContact.html.twig line 1

Open in your IDE?
  1. {% if wireFrame.wireFrameFile is defined and wireFrame.wireFrameFile != null %}
  2.     {% set wireFrameFile = wireFrame.wireFrameFile  %}
  3. {% else %}
  4.     {% set wireFrameFile = 'eshopLayoutBasic.html.twig' %}
  5. {% endif %}
  6. {% extends wireFrameFile %}
  7. {% block title %}{{ 'eshop.customer'|trans|raw }}{% endblock %}
  8. {% block page_contents %}
  9. <h1>{{ 'eshop.customer'|trans }}</h1>
  10. <div class="customerMenuItem">
  11. {% if contact is defined %} 
  12.     {% set firstName = contact.firstName %}
  13.     {% set lastName = contact.lastName %}
  14. {% else %}
  15.     {% set firstName = '' %}
  16.     {% set lastName = '' %}
  17. {% endif %}
  18.   <span>{{ firstName }} {{ lastName }}</span>
  19.   <span><a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/editContact" class="greenButtonLink">{{'eshop.customer_edit'|trans }}</a></span>
  20.   <span><a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/logout" class="greenButtonLink">{{'eshop.logout'|trans }}</a></span>
  21.   <span><a href="{{ path('root') }}eshop/{{ eshop.eshopId }}" class="greenButtonLink">{{'PAGETYPE_HOMEPAGE'|trans }}</a></span>
  22. </div>
  23. <h2>{{'eshop.orders_history'|trans }}</h2>
  24. <table class="itemList" cellspacing="0" cellpadding="0">
  25.     <tr>
  26.         <th class="itemListTitle">id</th>
  27.         <th class="itemListTitle">{{'system.date'|trans }}</th>
  28.         <th class="itemListTitle">{{'eshop.customer'|trans }}</th>
  29.         <th class="itemListTitle">{{'eshop.price'|trans }}</th>
  30.         <th class="itemListTitle">{{'system.items_upper'|trans }}</th>
  31.         <th class="itemListTitle">{{'eshop.order_status'|trans }}</th>
  32.         <th class="itemListTitle">{{'eshop.delivery'|trans }}</th>
  33.         <th class="itemListTitle">{{'eshop.payment'|trans }}</th>
  34.         <th class="itemListTitle">{{'eshop.payment_status'|trans }}</th>
  35.         <th class="itemListTitle">{{'system.ip'|trans }}</th>
  36.         <th class="itemListTitle"></th>
  37.     </tr>  
  38.     {% for order in orderList %} 
  39.         {% if order.eshopPayment is defined %} 
  40.             {% set paymentName = order.eshopPayment.eshopPaymentName %}
  41.         {% else %}
  42.             {% set paymentName = '' %}
  43.         {% endif %}
  44.         <tr class="itemListRow">
  45.           <td class="itemListCell">{{ order.orderId }}</td>
  46.           <td class="itemListCell">
  47.               {% if order.dateCreated is defined %} 
  48.                   {{ order.dateCreated|date("Y-m-d h:i:s") }}
  49.               {% endif %}    
  50.           </td>
  51.           <td class="itemListCell">
  52.               <strong>
  53.               {% set customerName = order.eshopContact.firstName ~ " " ~ order.eshopContact.lastName %}    
  54.               {% set companyName = order.eshopContact.companyName %}
  55.                {{ customerName }} {{ companyName }}
  56.             </strong>
  57.           </td>
  58.           <td class="itemListCell">{{ orderPrices[order.orderId] }} {{ order.currencyKey }}</td>
  59.           <td class="itemListCell">{{ order.orderItems|length }}</td>
  60.           <td class="itemListCell">{{ order.status }}</td>
  61.           <td class="itemListCell">{{ order.eshopDelivery.eshopDeliveryName }}</td>
  62.           <td class="itemListCell">{{ paymentName }}</td>
  63.           <td class="itemListCell">{{ order.paymentStatus }}</td>
  64.           <td class="itemListCell">{{ order.ip }}</td>
  65.           <td class="itemListCell"><a href="{{ path('root') }}eshop/{{ eshop.eshopId }}/eshopOrderContact/{{ order.orderId }}" class="greenButtonLink">{{'system.view'|trans }}</a></td>
  66.         </tr>
  67.     {% endfor %}
  68. </table>
  69. <br><br>
  70. {% if topProductContent is defined and topProductContent != '' %} 
  71.     {{ topProductContent|raw }}
  72. {% endif %}    
  73. {% endblock %}