Advertisement
Guest User

Manager New Invoice Template

a guest
Jun 28th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.63 KB | None | 0 0
  1. <table style="width:100%; padding:50px; font-size: 1em; color: #444444; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin-bottom: 16px;">
  2. <!-- HEADER -->
  3.     <tr style="vertical-align:top;">
  4.         <td style="width:80%">
  5.             {% if business.logo != null %}
  6.                 <img src="{{ business.logo }}" style="max-height: auto; max-width: 200px">
  7.             {% endif %}
  8.                 <br>
  9.             <p style="padding-top:20px; font-weight: bold">
  10.                 {{ title | upcase }}
  11.                 {% for field in fields %}
  12.                     // {{ field.text }}
  13.                 {% endfor %}
  14.             </p>
  15.         </td>
  16.         <td style="width:20%; text-align:left;">
  17.             domain.com
  18.         </td>
  19.     </tr>
  20. </table>
  21.  
  22. <table style="width:100%; padding:0 50px 50px 50px; font-size: 10px; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin-bottom: 16px;">
  23.     <!-- CUSTOMER & TOTAL DETAILS-->
  24.     <tr>
  25.         <td style="width:65%; border-width: 0px 0 0px 2px; border-style:solid; border-color: #888888; padding: 0 10px">
  26.             <!-- CUSTOMER DETAILS -->
  27.              <div>
  28.                 <p>To</p>
  29.                 {{ recipient.name }} {{ recipient.code }}</div>
  30.                 <div>{{ recipient.address | newline_to_br }}</div>
  31.                 {% if recipient.telephone != empty %}
  32.                     <div>t: {{ recipient.telephone }}</div>
  33.                 {% endif %}
  34.                 <div>
  35.                     {% for field in custom_fields %}
  36.                         {% if field.label != 'Contact Person' %}{% continue %}{% endif %}
  37.                             <div>Att: {{ field.text }}</div>
  38.                     {% endfor %}
  39.                         </div>
  40.                     {% if recipient.email != empty %}
  41.                         <div>e: {{ recipient.email }}</div>
  42.                     {% endif %}
  43.         </td>
  44.         <td style="background: #f1f1f1; width: 35%; padding:0 10px 30px 10px; border-width: 0px 0 0px 0; border-style:solid; border-color: #888888;">
  45.             <!-- TOTAL DETAILS -->
  46.             {% for total in table.totals %}
  47.                 {% if field.label !='Discount' %}
  48.                     <p>&nbsp;</p>
  49.                 {% endif %}
  50.                 <p style="padding:0 0 5px 0; margin: 0 0 -10px 0; width:100%; border-width: 0 0 2px 0; border-style:solid; border-color: #888888; box-sizing: border-box; float:left;">{{ total.label }} <span style="font-weight:bold; text-align:right; float:right; clear:both;">{{ total.text }}</span></p>
  51.             {% endfor %}
  52.         </td>
  53.     </tr>
  54. </table>
  55.  
  56. <table style="width:100%; padding:0 50px 50px 50px; font-size: 10px; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin-bottom: 16px;">
  57.     <!-- DESCRIPTION & ITEMS -->
  58.     <tr>
  59.                 {% for column in table.columns %}            
  60.             <td style="font-weight: bold; padding: 32px 5px 10px 5px; text-align: {{ column.align }}; border-width: 0 0 1px 0; border-style: solid; border-color: #888888; {% if forloop.last == true %} border-width: 0 0 1px 0; border-style: solid; border-color: #888888 {% endif %}{% if column.nowrap %}; white-space: nowrap; width: 80px {% endif %}">{{ column.label | upcase }}</td>
  61.             {% endfor %}
  62.             </tr>
  63.     <tr>
  64. {% for row in table.rows %}
  65.         <tr>
  66.             {% for cell in row.cells %}
  67.             <td style="padding: 10px 10px; text-align: {{ table.columns[forloop.index0].align }}; border-width: 1px 0 0 0; border-style: solid; border-color: #888888; {% if forloop.last == true %}; border-width: 1px 0 0 0; border-style: solid; border-color: #888888 {% endif %}{% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px {% endif %}">{{ cell.text | newline_to_br }}</td>
  68.             {% endfor %}
  69.         </tr>
  70.         {% endfor %}
  71.         {% for column in table.columns %}
  72.        
  73.             <td style="font-weight:bold; border-width: 0 0 2px 0; border-style: solid; border-color: #888888; {% if forloop.last == true %}; border-width: 0 0 2px 0; border-style: solid; border-color: #888888; {% endif %}">&nbsp;</td>
  74.  
  75.         {% endfor %}
  76.     </tr>
  77. </table>
  78.  
  79. <table style="width:100%; padding:0 50px 50px 50px; font-size: 10px; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin-bottom: 16px;">
  80.     <!-- TERMS, NOTES, BACS DETAILS -->
  81.     <tr>
  82.         <td>TERMS, NOTES, BACS DETAILS</td>
  83.     </tr>
  84. </table>
  85.  
  86. <table style="width:100%; padding:0 50px 50px 50px; font-size: 10px; font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin-bottom: 16px;">
  87.     <!--FOOTER -->
  88.     <tr>
  89.         <td>FOOTER</td>
  90.     </tr>
  91. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement