odoo_dev 开发培训作业:图书管理系统
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.

31 line
1.2KB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <template id="index" name="Checkout List">
  4. <t t-call="website.layout">
  5. <div id="wrap" class="container">
  6. <h1>Checkouts</h1>
  7. <!-- List of Checkouts -->
  8. <t t-foreach="docs" t-as="doc">
  9. <div class="row">
  10. <input type="checkbox" disabled="True"
  11. t-att-checked="'checked' if doc.stage_id.fold else None" />
  12. <a t-attf-href="/checkout/{{slug(doc)}}">
  13. <h3 t-field="doc.request_date"
  14. t-att-class="'text-strikeout' if doc.stage_id.fold else ''" />
  15. </a>
  16. </div>
  17. </t>
  18. </div>
  19. </t>
  20. </template>
  21. <template id="checkout" name="Checkout Form">
  22. <t t-call="website.layout">
  23. <div id="wrap" class="container">
  24. <h1 t-field="doc.request_date" />
  25. <h5>Member: <span t-field="doc.member_id" /></h5>
  26. <h5>Stage: <span t-field="doc.stage_id" /></h5>
  27. </div>
  28. </t>
  29. </template>
  30. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1