node-edit-form.html.twig

Same filename in this branch
  1. main core/profiles/demo_umami/themes/umami/templates/classy/content-edit/node-edit-form.html.twig
  2. main core/themes/stable9/templates/content-edit/node-edit-form.html.twig
  3. main core/themes/claro/templates/node-edit-form.html.twig
  4. main core/themes/starterkit_theme/templates/content-edit/node-edit-form.html.twig
  5. main core/modules/node/templates/node-edit-form.html.twig
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/node-edit-form.html.twig
  2. 10 core/themes/stable9/templates/content-edit/node-edit-form.html.twig
  3. 10 core/themes/claro/templates/node-edit-form.html.twig
  4. 10 core/themes/starterkit_theme/templates/content-edit/node-edit-form.html.twig
  5. 11.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/node-edit-form.html.twig
  6. 11.x core/themes/stable9/templates/content-edit/node-edit-form.html.twig
  7. 11.x core/themes/claro/templates/node-edit-form.html.twig
  8. 11.x core/themes/starterkit_theme/templates/content-edit/node-edit-form.html.twig
  9. 11.x core/modules/node/templates/node-edit-form.html.twig
  10. 10 core/modules/node/templates/node-edit-form.html.twig
  11. 9 core/profiles/demo_umami/themes/umami/templates/classy/content-edit/node-edit-form.html.twig
  12. 9 core/themes/stable9/templates/content-edit/node-edit-form.html.twig
  13. 9 core/themes/seven/templates/node-edit-form.html.twig
  14. 9 core/themes/claro/templates/node-edit-form.html.twig
  15. 9 core/themes/bartik/templates/classy/content-edit/node-edit-form.html.twig
  16. 9 core/themes/stable/templates/content-edit/node-edit-form.html.twig
  17. 9 core/themes/starterkit_theme/templates/content-edit/node-edit-form.html.twig
  18. 9 core/themes/classy/templates/content-edit/node-edit-form.html.twig
  19. 9 core/modules/node/templates/node-edit-form.html.twig
  20. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/content-edit/node-edit-form.html.twig
  21. 8.9.x core/themes/seven/templates/node-edit-form.html.twig
  22. 8.9.x core/themes/claro/templates/node-edit-form.html.twig
  23. 8.9.x core/themes/bartik/templates/classy/content-edit/node-edit-form.html.twig
  24. 8.9.x core/themes/stable/templates/content-edit/node-edit-form.html.twig
  25. 8.9.x core/themes/classy/templates/content-edit/node-edit-form.html.twig
  26. 8.9.x core/modules/node/templates/node-edit-form.html.twig
  27. 11.x core/themes/admin/templates/node/node-edit-form.html.twig

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.

See also

gin_form_node_form_alter()

File

core/themes/admin/templates/node/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 gin_form_node_form_alter()
  16. */
  17. #}
  18. {% if form.is_ajax_request %}
  19. {% block main %}
  20. {{ form|without('advanced', 'footer', 'actions') }}
  21. {% endblock %}
  22. {% block secondary %}
  23. {{ form.advanced }}
  24. {% endblock %}
  25. {% block footer %}
  26. {{ form.footer }}
  27. {{ form.actions }}
  28. {% endblock %}
  29. {% else %}
  30. <div class="layout-node-form clearfix">
  31. <div class="layout-region layout-region-node-main layout-region--main">
  32. {{ form|without('advanced', 'footer', 'gin_actions', 'gin_sidebar', 'gin_sidebar_toggle') }}
  33. </div>
  34. <div class="layout-region layout-region-node-secondary layout-region--secondary" id="gin_sidebar" tabindex="0">
  35. <span class="gin-sidebar-draggable" id="gin-sidebar-draggable"></span>
  36. <div class="layout-region__content">
  37. {{ form.advanced }}
  38. {{ form.gin_sidebar_toggle }}
  39. </div>
  40. </div>
  41. </div>
  42. {% endif %}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.