viewquote.tpl.orig 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. {*
  2. **********************************************************
  3. * Developed by: Team Theme Metro
  4. * Website: http://www.thememetro.com
  5. **********************************************************
  6. *}
  7. {if $themesettings.clientarea.viandq eq "outer-layout"}
  8. <!DOCTYPE html>
  9. <html lang="en">
  10. <head>
  11. <meta charset="{$charset}" />
  12. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13. <meta name="viewport" content="width=device-width, initial-scale=1">
  14. <title>{$companyname} - {$LANG.quotenumber}{$id}</title>
  15. {include file="templates/$template/includes/head.tpl"}
  16. </head>
  17. <body {if $themesettings.customcolors.darkmode == '1'} class="dark-mode{if $themesettings.customcolors.dmimggs != '1'} gray_logos{/if}"{/if} style="margin: 0;">
  18. {else}
  19. {include file="{$template}/header.tpl"}
  20. {/if}
  21. <div {if $themesettings.clientarea.viandq eq "outer-layout"}class="container" style="margin: 15px auto;"{/if}>
  22. {if $invalidQuoteIdRequested}
  23. {include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.invoiceserror bodyTextCenter=true}
  24. {else}
  25. <div class="row">
  26. <div class="col-lg-9">
  27. <div class="TM-card quote{if $themesettings.customcolors.darkmode != '1'}{if $themesettings.clientarea.viandqbg neq ""} {$themesettings.clientarea.viandqbg}{/if}{/if}" style="padding: 45px 30px;">
  28. {if $agreetosrequired}
  29. {include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.ordererroraccepttos bodyTextCenter=true}
  30. {/if}
  31. <div class="company-logo">
  32. {if $themesettings.general.enablelogo}
  33. <img src="{$themesettings.general.logourl}" alt="{$companyname}" class="logo-light img-responsive" />
  34. {if $themesettings.general.darklogo}
  35. <img src="{$themesettings.general.darklogo}" alt="{$companyname}" class="logo-dark img-responsive" />
  36. {else}
  37. <h2 class="logo-dark">{$companyname}</h2>
  38. {/if}
  39. {else}
  40. <h2 class="logo-light">{$companyname}</h2>
  41. {/if}
  42. </div>
  43. <div class="section">
  44. <div class="quote-info">
  45. <div class="quote-title">
  46. <span class="title"> {$LANG.quotenumber}{$id}
  47. {if $stage eq "Delivered"}
  48. <span class="invoice-status label label-lg label-success">{$LANG.quotestagedelivered}</span>
  49. {elseif $stage eq "Accepted"}
  50. <span class="invoice-status label label-lg label-success">{$LANG.quotestageaccepted}</span>
  51. {elseif $stage eq "On Hold"}
  52. <span class="invoice-status label label-lg label-warning">{$LANG.quotestageonhold}</span>
  53. {elseif $stage eq "Lost"}
  54. <span class="invoice-status label label-lg label-danger">{$LANG.quotestagelost}</span>
  55. {elseif $stage eq "Dead"}
  56. <span class="invoice-status label label-lg label-danger">{$LANG.quotestagedead}</span>
  57. {/if}
  58. </span>
  59. </div>
  60. <div class="quote-date">
  61. <div class="pull-right">
  62. <div class="text-right">
  63. <strong>{$LANG.quotedatecreated}</strong><br />
  64. <span class="text-muted">{$datecreated}</span>
  65. </div>
  66. <div class="text-right">
  67. <strong>{$LANG.quotevaliduntil}</strong><br />
  68. <span class="text-muted">{$validuntil}</span>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="section">
  75. <div class="row">
  76. <div class="col-sm-7">
  77. <h4>{$LANG.quoterecipient}</h4>
  78. <address>
  79. {if $clientsdetails.companyname}{$clientsdetails.companyname}<br />{/if}
  80. {$clientsdetails.firstname} {$clientsdetails.lastname}<br />
  81. {$clientsdetails.address1}, {$clientsdetails.address2}<br />
  82. {$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}<br />
  83. {$clientsdetails.country}
  84. {if $customfields}
  85. <br /><br />
  86. {foreach from=$customfields item=customfield}
  87. {$customfield.fieldname}: {$customfield.value}<br />
  88. {/foreach}
  89. {/if}
  90. </address>
  91. </div>
  92. <div class="col-sm-5">
  93. <h4>{$LANG.invoicespayto}</h4>
  94. <address>
  95. {$payto}
  96. </address>
  97. </div>
  98. </div>
  99. </div>
  100. {if $proposal}
  101. <div class="section">
  102. <h4>{$LANG.quoteproposal}</h4>
  103. <div class="well">
  104. {$proposal}
  105. </div>
  106. </div>
  107. {/if}
  108. <div class="section">
  109. <h4>{$LANG.quotelineitems}</h4>
  110. <div class="table-responsive">
  111. <table class="table table-hover">
  112. <thead>
  113. <tr>
  114. <th>{$LANG.invoicesdescription}</th>
  115. <th class="text-right">{$LANG.quotediscountheading}</th>
  116. <th width="20%" class="text-center">{$LANG.invoicesamount}</th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. {foreach from=$quoteitems item=item}
  121. <tr>
  122. <td>{$item.description}{if $item.taxed} *{/if}</td>
  123. <td class="total-row text-right"><strong>{if $item.discountpc > 0}{$item.discount} ({$item.discountpc}%){else} - {/if}</strong></td>
  124. <td class="text-center">{$item.amount}</td>
  125. </tr>
  126. {/foreach}
  127. <tr class="sub-total-row first">
  128. <td></td>
  129. <td class="total-row text-right"><strong>{$LANG.invoicessubtotal}</strong></td>
  130. <td class="text-center">{$subtotal}</td>
  131. </tr>
  132. {if $taxrate}
  133. <tr class="sub-total-row">
  134. <td></td>
  135. <td class="total-row text-right"><strong>{$taxrate}% {$taxname}</strong></td>
  136. <td class="text-center">{$tax}</td>
  137. </tr>
  138. {/if}
  139. {if $taxrate2}
  140. <tr class="sub-total-row">
  141. <td></td>
  142. <td class="total-row text-right"><strong>{$taxrate2}% {$taxname2}</strong></td>
  143. <td class="text-center">{$tax2}</td>
  144. </tr>
  145. {/if}
  146. <tr class="sub-total-row active">
  147. <td></td>
  148. <td class="total-row text-right"><strong>{$LANG.quotelinetotal}</strong></td>
  149. <td class="text-center">{$total}</td>
  150. </tr>
  151. </tbody>
  152. </table>
  153. </div>
  154. {if $taxrate}
  155. <p class="text-muted">* {$LANG.invoicestaxindicator}</p>
  156. {/if}
  157. </div>
  158. {if $notes}
  159. <div class="section">
  160. <h4>{$LANG.invoicesnotes}</h4>
  161. <div class="well">
  162. {$notes}
  163. </div>
  164. </div>
  165. {/if}
  166. </div>
  167. </div>
  168. <div class="col-lg-3 sidebar d-print-none">
  169. {if $stage eq "Delivered" || $stage eq "On Hold"}
  170. <div menuitemname="Client Details" class="panel panel-sidebar panel-invoice-info">
  171. <div class="panel-body">
  172. <div class="total">
  173. <span class="total-text">{$LANG.quotelinetotal}</span>
  174. <span class="total-price">{$total}</span>
  175. </div>
  176. <button type="button" class="btn btn-primary btn-block" {if $stage neq "Delivered" && $stage neq "On Hold"}disabled{/if} data-toggle="modal" data-target="#acceptQuoteModal">
  177. {$LANG.quoteacceptbtn}
  178. </button>
  179. </div>
  180. </div>
  181. {/if}
  182. <div menuitemname="Client Details" class="panel panel-sidebar">
  183. <div class="panel-heading">
  184. <h3 class="panel-title">
  185. <i class="fas fa-location-arrow"></i>&nbsp;{$LANG.actions}<i class="fas fa-chevron-up panel-minimise pull-right"></i>
  186. </h3>
  187. </div>
  188. <div class="list-group">
  189. <a href="javascript:window.print()" class="list-group-item list-group-item-action"><i class="fas fa-print fa-fw"></i>&nbsp;{$LANG.print}</a>
  190. <a href="dl.php?type=q&amp;id={$quoteid}" class="list-group-item list-group-item-action"><i class="fas fa-download fa-fw"></i>&nbsp;{$LANG.invoicesdownload}</a>
  191. <a href="clientarea.php?action=quotes" class="list-group-item list-group-item-action"><i class="fas fa-chevron-double-left fa-fw"></i>&nbsp;{$LANG.goback}</a>
  192. </div>
  193. </div>
  194. </div>
  195. </div>
  196. {/if}
  197. </div>
  198. <form method="post" action="viewquote.php?id={$quoteid}&amp;action=accept">
  199. <div class="modal fade" id="acceptQuoteModal">
  200. <div class="modal-dialog">
  201. <div class="modal-content">
  202. <div class="modal-header">
  203. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="fas fa-times"></i></span></button>
  204. <h4 class="modal-title">{$LANG.quoteacceptbtn}</h4>
  205. </div>
  206. <div class="modal-body">
  207. <p>{$LANG.quoteacceptagreetos}</p>
  208. <p class="text-center">
  209. <label class="checkbox-inline">
  210. <input type="checkbox" name="agreetos" />
  211. {$LANG.ordertosagreement} <a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a>
  212. </label>
  213. </p>
  214. <p>{$LANG.quoteacceptcontractwarning}</p>
  215. </div>
  216. <div class="modal-footer">
  217. <button type="button" class="btn btn-default" data-dismiss="modal">{$LANG.cancel}</button>
  218. <button type="submit" class="btn btn-primary">{$LANG.quoteacceptbtn}</button>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </form>
  224. {if $themesettings.clientarea.viandq eq "outer-layout"}
  225. </body>
  226. </html>
  227. {else}
  228. {include file="{$template}/footer.tpl"}
  229. {/if}