You are here

node-edit-form.html.twig in Drupal 9

Theme override for a node edit form.

Two column template for the node add/edit form.

This template will be used when a node edit form specifies 'node_edit_form' as its #theme callback. Otherwise, by default, node add/edit forms will be themed by form.html.twig.

Available variables:

  • form: The node add/edit form.

File

core/themes/claro/templates/node-edit-form.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for a node edit form.
  5. *
  6. * Two column template for the node add/edit form.
  7. *
  8. * This template will be used when a node edit form specifies 'node_edit_form'
  9. * as its #theme callback. Otherwise, by default, node add/edit forms will be
  10. * themed by form.html.twig.
  11. *
  12. * Available variables:
  13. * - form: The node add/edit form.
  14. *
  15. * @see claro_form_node_form_alter()
  16. */
  17. #}
  18. <div class="layout-node-form clearfix">
  19. <div class="layout-region layout-region--node-main">
  20. <div class="layout-region__content">
  21. {{ form|without('advanced', 'footer', 'actions') }}
  22. </div>
  23. </div>
  24. <div class="layout-region layout-region--node-secondary">
  25. <div class="layout-region__content">
  26. {{ form.advanced }}
  27. </div>
  28. </div>
  29. <div class="layout-region layout-region--node-footer">
  30. <div class="layout-region__content">
  31. <div class="divider"></div>
  32. {{ form.footer }}
  33. {{ form.actions }}
  34. </div>
  35. </div>
  36. </div>