invoice.tx 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <div class="postData responsive-text" id="postData-<: $post.id :>">
  12. <div class="table invoice">
  13. <div class="table-row">
  14. <div class="table-cell">
  15. Invoice ID# <: $post.id :><br />
  16. </div>
  17. <div class="table-cell"></div>
  18. </div>
  19. <div class="table-row">
  20. <div class="table-cell underline">
  21. Created: <span class="unixtimestamp"><: $post.created :></span><br />
  22. </div>
  23. <div class="table-cell underline">
  24. Due: <span class="unixtimestamp"><: $post.created + ($post.due_days * 86400 ) :></span>
  25. </div>
  26. </div>
  27. <div class="table-row">
  28. <div class="table-cell underline">
  29. Payee<br />
  30. <: $post.payee_entity.data | mark_raw :>
  31. </div>
  32. <div class="table-cell underline">
  33. Payor<br />
  34. <: $post.payor_entity.data | mark_raw :>
  35. </div>
  36. </div>
  37. <div class="table-row">
  38. <div class="table-cell underline">
  39. Payment Method:<br />
  40. <: $post.payee_entity.payment_method :>
  41. </div>
  42. <div class="table-cell underline">
  43. Payment Details:<br />
  44. <: $post.payee_entity.payment_details :>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="invoice-items">
  49. : for $post.data -> $poast {
  50. <div>
  51. <: render_it($poast) | mark_raw :>
  52. </div>
  53. : }
  54. <div class="overline">
  55. Total: <: $post.total :>
  56. </div>
  57. </div>
  58. </div>
  59. : }
  60. : if ( $can_edit ) {
  61. <div class="postedit">
  62. : include "edit_head.tx";
  63. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  64. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  65. : include "preview.tx";
  66. : include "visibility.tx";
  67. : include "acls.tx";
  68. : include "tags.tx";
  69. : include "aliases.tx";
  70. : include "invoice_tofrom.tx";
  71. <p>
  72. Add one 'line item' per page below.<br />
  73. The price will be tabulated for the total from a line beginning with 'Price:'.<br />
  74. All prices must be in the same denomination.
  75. </p>
  76. : include "form_multi.tx";
  77. </form>
  78. : include "edit_foot.tx";
  79. </div>
  80. : }
  81. </div>