invoice.tx 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. <div class="postData responsive-text" id="postData-<: $post.id :>">
  9. <div class="table">
  10. <div class="table-row">
  11. <div class="table-cell">
  12. Invoice ID# <: $post.id :><br />
  13. </div>
  14. <div class="table-cell"></div>
  15. </div>
  16. <div class="table-row">
  17. <div class="table-cell underline">
  18. Created: <span class="unixtimestamp"><: $post.created :></span><br />
  19. </div>
  20. <div class="table-cell underline">
  21. Due: <span class="unixtimestamp"><: $post.created + ($post.due_days * 86400 ) :></span>
  22. </div>
  23. </div>
  24. <div class="table-row">
  25. <div class="table-cell underline">
  26. Payee<br />
  27. <: $post.payee_entity.data | mark_raw :>
  28. </div>
  29. <div class="table-cell underline">
  30. Payor<br />
  31. <: $post.payor_entity.data | mark_raw :>
  32. </div>
  33. </div>
  34. <div class="table-row">
  35. <div class="table-cell underline">
  36. Payment Method:<br />
  37. <: $post.payee_entity.payment_method :>
  38. </div>
  39. <div class="table-cell underline">
  40. Payment Details:<br />
  41. <: $post.payee_entity.payment_details :>
  42. </div>
  43. </div>
  44. : for $post.data -> $poast {
  45. <div class="table-row">
  46. <div class="table-cell">
  47. <: render_it($poast) | mark_raw :>
  48. </div>
  49. <div class="table-cell">
  50. </div>
  51. </div>
  52. : }
  53. <div class="table-row">
  54. <div class="table-cell overline">
  55. Total: <: $post.total :>
  56. </div>
  57. <div class="table-cell overline"></div>
  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>