invoice.tx 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <div class="post <: $style :>">
  2. :if ( !$post.addpost ) {
  3. <div class="noprint">
  4. : include "post_title.tx";
  5. : include "post_tags.tx";
  6. </div>
  7. <h3 class="blogtitles printonly"><: $post.title :></h3>
  8. : if ( !$post.video_href && !$post.is_image && !$post.is_video && !$post.is_profile && $post.preview ) {
  9. <img src="<: $post.preview :>" class="responsive-img" loading="lazy" />
  10. : }
  11. : # An edit re-sends the invoice, so it is dated, and falls due, from the newest version.
  12. : my $sent = $post.modified // $post.created;
  13. <div class="postData responsive-text" id="postData-<: $post.id :>">
  14. <div class="table invoice">
  15. <div class="table-row">
  16. <div class="table-cell">
  17. Invoice ID# <: $post.id :><br />
  18. </div>
  19. <div class="table-cell"></div>
  20. </div>
  21. <div class="table-row">
  22. <div class="table-cell underline">
  23. Created: <span class="unixtimestamp"><: $sent :></span><br />
  24. </div>
  25. <div class="table-cell underline">
  26. Due: <span class="unixtimestamp"><: $sent + ($post.due_days * 86400 ) :></span>
  27. </div>
  28. </div>
  29. <div class="table-row">
  30. <div class="table-cell underline">
  31. Payee<br />
  32. <: $post.payee_entity.data | mark_raw :>
  33. </div>
  34. <div class="table-cell underline">
  35. Payor<br />
  36. <: $post.payor_entity.data | mark_raw :>
  37. </div>
  38. </div>
  39. <div class="table-row">
  40. <div class="table-cell underline">
  41. Payment Method:<br />
  42. <: $post.payee_entity.payment_method :>
  43. </div>
  44. <div class="table-cell underline">
  45. Payment Details:<br />
  46. <: $post.payee_entity.payment_details :>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="invoice-items">
  51. : for $post.data -> $poast {
  52. <div>
  53. <: render_it($poast) | mark_raw :>
  54. </div>
  55. : }
  56. <div class="overline">
  57. Total: <: $post.total :>
  58. </div>
  59. </div>
  60. </div>
  61. : }
  62. : if ( $can_edit ) {
  63. <div class="postedit">
  64. : include "edit_head.tx";
  65. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  66. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  67. : include "preview.tx";
  68. : include "visibility.tx";
  69. : include "acls.tx";
  70. : include "tags.tx";
  71. : include "aliases.tx";
  72. : include "invoice_tofrom.tx";
  73. <p>
  74. Add one 'line item' per page below.<br />
  75. The price will be tabulated for the total from a line beginning with 'Price:'.<br />
  76. All prices must be in the same denomination.
  77. </p>
  78. : include "form_multi.tx";
  79. </form>
  80. : include "edit_foot.tx";
  81. </div>
  82. : }
  83. </div>