node-edit-form.html.twig

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 theme_form().

Available variables:

  • form: The node add/edit form.

See also

seven_form_node_form_alter()

File

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

Related topics