invoice.tx 3.6 KB

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