You are here

node-edit-form--gutenberg.html.twig in Gutenberg 8

Same filename and directory in other branches
  1. 8.2 templates/node-edit-form--gutenberg.html.twig

Default theme implementation 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.

<div class="layout-region layout-region-node-footer"> <div class="layout-region-node-footer__content"> {{ form.footer }} {{ form.actions }} </div> </div>

File

templates/node-edit-form--gutenberg.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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 seven_form_node_form_alter()
  16. *
  17. * @ingroup themeable
  18. <div class="layout-region layout-region-node-footer">
  19. <div class="layout-region-node-footer__content">
  20. {{ form.footer }}
  21. {{ form.actions }}
  22. </div>
  23. </div>
  24. */
  25. #}
  26. <div class="clearfix">
  27. <div class="gutenberg-sidebar">
  28. <div class="tab document" data-tab="document">
  29. {{ form.title }}
  30. {{ form.additional_fields }}
  31. {{ form.advanced }}
  32. </div>
  33. {#
  34. <div class="tab additional-fields" data-tab="additional-fields">
  35. {{ form.additional_fields }}
  36. </div>
  37. #}
  38. <div class="tab metabox-fields" data-tab="metabox-fields">
  39. {{ form.metabox_fields }}
  40. </div>
  41. </div>
  42. <div class="gutenberg-header-settings">
  43. {{ form.actions}}
  44. </div>
  45. <div class="gutenberg">
  46. {{ form|without('advanced', 'metabox_fields', 'footer', 'actions', 'title', 'additional_fields') }}
  47. </div>
  48. </div>