invoice.tx 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. : for $post.data -> $poast {
  48. <div class="table-row">
  49. <div class="table-cell">
  50. <: render_it($poast) | mark_raw :>
  51. </div>
  52. <div class="table-cell">
  53. </div>
  54. </div>
  55. : }
  56. <div class="table-row">
  57. <div class="table-cell overline">
  58. Total: <: $post.total :>
  59. </div>
  60. <div class="table-cell overline"></div>
  61. </div>
  62. </div>
  63. </div>
  64. : }
  65. : if ( $can_edit ) {
  66. <div class="postedit">
  67. : include "edit_head.tx";
  68. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  69. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  70. : include "preview.tx";
  71. : include "visibility.tx";
  72. : include "acls.tx";
  73. : include "tags.tx";
  74. : include "aliases.tx";
  75. : include "invoice_tofrom.tx";
  76. <p>
  77. Add one 'line item' per page below.<br />
  78. The price will be tabulated for the total from a line beginning with 'Price:'.<br />
  79. All prices must be in the same denomination.
  80. </p>
  81. : include "form_multi.tx";
  82. </form>
  83. : include "edit_foot.tx";
  84. </div>
  85. : }
  86. </div>