templates.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. - name: Standard Page
  2. description: A page with an image header and optional navigation bar.
  3. img: img/form-templates/hello-sf/std-page.png
  4. form:
  5. class_name: Form
  6. is_package: true
  7. container:
  8. type: HtmlTemplate
  9. properties: {html: '@theme:standard-page.html'}
  10. components:
  11. - type: ColumnPanel
  12. properties: {}
  13. name: content_panel
  14. layout_properties: {slot: default}
  15. code: "from ._anvil_designer import $NAME$Template\nfrom anvil import *\n\nclass\
  16. \ $NAME$($NAME$Template):\n\n def __init__(self, **properties):\n # Set\
  17. \ Form properties and Data Bindings.\n self.init_components(**properties)\n\
  18. \n # Any code you write here will run when the form opens.\n \n"
  19. - name: Splash
  20. description: A page with a dark background, and a narrow white content area.
  21. img: img/form-templates/hello-sf/splash.png
  22. form:
  23. class_name: Form
  24. is_package: true
  25. container:
  26. type: HtmlTemplate
  27. properties: {html: '@theme:splash.html'}
  28. components:
  29. - type: ColumnPanel
  30. properties: {}
  31. name: content_panel
  32. layout_properties: {slot: default}
  33. code: "from ._anvil_designer import $NAME$Template\nfrom anvil import *\n\nclass\
  34. \ $NAME$($NAME$Template):\n\n def __init__(self, **properties):\n # Set\
  35. \ Form properties and Data Bindings.\n self.init_components(**properties)\n\
  36. \n # Any code you write here will run when the form opens.\n"