form.html.twig 793 B

1234567891011121314151617181920212223242526272829
  1. {#
  2. DO NOT MODIFY!
  3. Default layout can be found in form plugin or your theme:
  4. templates/forms/layouts/form/default-form.html.twig
  5. templates/forms/layouts/field/default-field.html.twig
  6. templates/forms/layouts/button/default-button.html.twig
  7. If you want to use multiple different layouts in your site, you can do:
  8. ```
  9. form:
  10. name: my-form
  11. layout: tailwind
  12. ```
  13. and copy the above files to:
  14. templates/forms/layouts/form/tailwind-form.html.twig
  15. templates/forms/layouts/field/tailwind-field.html.twig
  16. templates/forms/layouts/button/tailwind-button.html.twig
  17. You can also override individual fields by copying (using text field as an example):
  18. templates/forms/fields/text/text.html.twig -> templates/forms/fields/text/tailwind-text.html.twig
  19. #}
  20. {% extends "forms/default/form.html.twig" %}