src/ApplicationBundle/Resources/views/voucherTemplate/sales_order.html.twig line 1

Open in your IDE?
  1. {% verbatim %}
  2. <script id="tpl-drawer-sales-order" type="text/template">
  3.     <div class="hb-doc-card hb-doc-card-summary">
  4.         <div class="hb-doc-card-label">Order Total</div>
  5.         <div class="hb-doc-card-value hb-doc-card-value-positive">{{amount}}</div>
  6.     </div>
  7.     <div class="hb-doc-card hb-doc-card-table">
  8.         <div class="hb-doc-card-header">
  9.             <span class="hb-doc-card-title">Line Items</span>
  10.             <span class="hb-doc-card-meta">{{lineCountLabel}}</span>
  11.         </div>
  12.         <div class="hb-doc-table-wrap">
  13.             <table class="hb-doc-table">
  14.                 <thead>
  15.                     <tr>
  16.                         <th>Item</th>
  17.                         <th class="text-right">Qty</th>
  18.                         <th class="text-right">Rate</th>
  19.                         <th class="text-right">Amount</th>
  20.                     </tr>
  21.                 </thead>
  22.                 <tbody>{{linesHtml}}</tbody>
  23.             </table>
  24.         </div>
  25.     </div>
  26. </script>
  27. <script id="tpl-drawer-sales-order-row" type="text/template">
  28.     <tr>
  29.         <td>{{itemName}}</td>
  30.         <td class="text-right">{{quantity}}</td>
  31.         <td class="text-right">{{rate}}</td>
  32.         <td class="text-right">{{amount}}</td>
  33.     </tr>
  34. </script>
  35. <style>
  36.     .hb-doc-card {
  37.         background: #fff;
  38.         border: 1px solid #e5e5e5;
  39.         border-radius: 12px;
  40.         overflow: hidden;
  41.         margin-bottom: 16px;
  42.     }
  43.     .hb-doc-card-summary {
  44.         padding: 14px 16px;
  45.     }
  46.     .hb-doc-card-label {
  47.         font-size: 10px;
  48.         font-weight: 700;
  49.         letter-spacing: 0.08em;
  50.         text-transform: uppercase;
  51.         color: #9a9a9a;
  52.         margin-bottom: 4px;
  53.     }
  54.     .hb-doc-card-value {
  55.         font-size: 22px;
  56.         font-weight: 700;
  57.         line-height: 1.1;
  58.         color: #1a1a1a;
  59.     }
  60.     .hb-doc-card-value-positive {
  61.         color: #4baa6b;
  62.     }
  63.     .hb-doc-card-table {
  64.         padding: 0;
  65.     }
  66.     .hb-doc-card-header {
  67.         display: flex;
  68.         align-items: center;
  69.         justify-content: space-between;
  70.         gap: 12px;
  71.         padding: 12px 16px 10px;
  72.         border-bottom: 1px solid #f0f0ee;
  73.     }
  74.     .hb-doc-card-title {
  75.         font-size: 10px;
  76.         font-weight: 700;
  77.         letter-spacing: 0.09em;
  78.         text-transform: uppercase;
  79.         color: #6a6a6a;
  80.     }
  81.     .hb-doc-card-meta {
  82.         font-size: 10px;
  83.         color: #9a9a9a;
  84.         text-align: right;
  85.     }
  86.     .hb-doc-table-wrap {
  87.         overflow: auto;
  88.     }
  89.     .hb-doc-table {
  90.         width: 100%;
  91.         border-collapse: collapse;
  92.     }
  93.     .hb-doc-table thead th {
  94.         padding: 10px 16px;
  95.         font-size: 10px;
  96.         font-weight: 700;
  97.         letter-spacing: 0.08em;
  98.         text-transform: uppercase;
  99.         color: #9a9a9a;
  100.         background: #fafaf8;
  101.         border-bottom: 1px solid #f0f0ee;
  102.         white-space: nowrap;
  103.     }
  104.     .hb-doc-table tbody td {
  105.         padding: 10px 16px;
  106.         border-bottom: 1px solid #f5f5f5;
  107.         font-size: 12px;
  108.         color: #3a3a3a;
  109.         vertical-align: middle;
  110.     }
  111.     .hb-doc-table tbody tr:last-child td {
  112.         border-bottom: none;
  113.     }
  114.     .hb-doc-table .text-right {
  115.         text-align: right;
  116.         white-space: nowrap;
  117.     }
  118. </style>
  119. {% endverbatim %}