You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.5 KiB

  1. ::use 'contractadmin/design.mtt'::
  2. <h3>::_("Summary")::</h3>
  3. <table class="table table-bordered" style="width:400px;">
  4. <tr>
  5. <td>
  6. ::_("Contract type")::
  7. </td>
  8. <td>
  9. ::if contract.type==0::
  10. ::_("CSA Contract")::
  11. ::else::
  12. ::_("Variable order contract")::
  13. ::end::
  14. </td>
  15. </tr>
  16. <tr>
  17. <td>::_("Start date")::</td>
  18. <td>::hDate(contract.startDate)::</td>
  19. </tr>
  20. <tr>
  21. <td>::_("End date")::</td>
  22. <td>::hDate(contract.endDate)::</td>
  23. </tr>
  24. </table>
  25. <div>
  26. $$edit(::_("Edit")::,/contract/edit/::c.id::)
  27. ::if user.isAmapManager()::
  28. $$edit(::_("Duplicate")::,/contractAdmin/duplicate/::c.id::)
  29. ::end::
  30. </div>
  31. <hr/>
  32. <h4>::_("Farmer")::</h4>
  33. <table class="table table-bordered" style="width:400px;">
  34. <tr>
  35. <td>::_("Name")::</td>
  36. <td><b>::contract._vendor.name::</b></td>
  37. </tr>
  38. <tr>
  39. <td>::_("Email")::</td>
  40. <td>$$nullSafe(::contract._vendor.email::)</td>
  41. </tr>
  42. <tr>
  43. <td>::_("Phone")::</td>
  44. <td>$$nullSafe(::contract._vendor.phone::)</td>
  45. </tr>
  46. </table>
  47. <h4><a href="/contractAdmin/products/::c.id::">::_("Products")::</a></h4>
  48. <div style="max-height:400px;overflow:auto;">
  49. <table class="table table-bordered" style="width:400px;">
  50. ::foreach p contract.getProducts(true)::
  51. <tr>
  52. <td><img src="::p.getImage()::" style="width:32px;height:32px;" /> </td>
  53. <td>::p.getName()::</td>
  54. <td>::formatNum(p.price)::&nbsp;::currency()::</td>
  55. </tr>
  56. ::end::
  57. </table>
  58. </div>
  59. ::end::