description.html.twig

Same filename in this branch
  1. 4.0.x modules/menu_example/templates/description.html.twig
  2. 4.0.x modules/js_example/templates/description.html.twig
  3. 4.0.x modules/page_example/templates/description.html.twig
  4. 4.0.x modules/node_type_example/templates/description.html.twig
  5. 4.0.x modules/pager_example/templates/description.html.twig
  6. 4.0.x modules/block_example/templates/description.html.twig
  7. 4.0.x modules/tabledrag_example/templates/description.html.twig
  8. 4.0.x modules/rest_example/templates/description.html.twig
  9. 4.0.x modules/testing_example/templates/description.html.twig
  10. 4.0.x modules/tour_example/templates/description.html.twig
  11. 4.0.x modules/config_entity_example/templates/description.html.twig
  12. 4.0.x modules/phpunit_example/templates/description.html.twig
  13. 4.0.x modules/render_example/templates/description.html.twig
  14. 4.0.x modules/field_permission_example/templates/description.html.twig
  15. 4.0.x modules/stream_wrapper_example/templates/description.html.twig
  16. 4.0.x modules/ajax_example/templates/description.html.twig
  17. 4.0.x modules/hooks_example/templates/description.html.twig
  18. 4.0.x modules/field_example/templates/description.html.twig
  19. 4.0.x tests/modules/examples_description_test/templates/description.html.twig
  20. 4.0.x modules/config_simple_example/templates/description.html.twig
Same filename in other branches
  1. 3.x modules/menu_example/templates/description.html.twig
  2. 3.x modules/form_api_example/templates/description.html.twig
  3. 3.x modules/js_example/templates/description.html.twig
  4. 3.x modules/page_example/templates/description.html.twig
  5. 3.x modules/node_type_example/templates/description.html.twig
  6. 3.x modules/pager_example/templates/description.html.twig
  7. 3.x modules/block_example/templates/description.html.twig
  8. 3.x modules/tabledrag_example/templates/description.html.twig
  9. 3.x modules/rest_example/templates/description.html.twig
  10. 3.x modules/testing_example/templates/description.html.twig
  11. 3.x modules/tour_example/templates/description.html.twig
  12. 3.x modules/config_entity_example/templates/description.html.twig
  13. 3.x modules/phpunit_example/templates/description.html.twig
  14. 3.x modules/render_example/templates/description.html.twig
  15. 3.x modules/field_permission_example/templates/description.html.twig
  16. 3.x modules/stream_wrapper_example/templates/description.html.twig
  17. 3.x modules/ajax_example/templates/description.html.twig
  18. 3.x modules/hooks_example/templates/description.html.twig
  19. 3.x modules/field_example/templates/description.html.twig
  20. 3.x tests/modules/examples_description_test/templates/description.html.twig
  21. 8.x-1.x menu_example/templates/description.html.twig
  22. 8.x-1.x form_api_example/templates/description.html.twig
  23. 8.x-1.x js_example/templates/description.html.twig
  24. 8.x-1.x page_example/templates/description.html.twig
  25. 8.x-1.x node_type_example/templates/description.html.twig
  26. 8.x-1.x pager_example/templates/description.html.twig
  27. 8.x-1.x block_example/templates/description.html.twig
  28. 8.x-1.x tabledrag_example/templates/description.html.twig
  29. 8.x-1.x testing_example/templates/description.html.twig
  30. 8.x-1.x tour_example/templates/description.html.twig
  31. 8.x-1.x config_entity_example/templates/description.html.twig
  32. 8.x-1.x tests/modules/examples_description_test/templates/description.html.twig
  33. 8.x-1.x phpunit_example/templates/description.html.twig
  34. 8.x-1.x render_example/templates/description.html.twig
  35. 8.x-1.x field_permission_example/templates/description.html.twig
  36. 8.x-1.x stream_wrapper_example/templates/description.html.twig
  37. 8.x-1.x ajax_example/templates/description.html.twig
  38. 8.x-1.x hooks_example/templates/description.html.twig
  39. 8.x-1.x field_example/templates/description.html.twig
{#

Description text for the Form API Example.

#}

{{ attach_library('core/drupal.dialog.ajax') }}
{% set simple_form = path('form_api_example.simple_form') %}
{% set multistep_form = path('form_api_example.multistep_form') %}
{% set input_demo = path('form_api_example.input_demo') %}
{% set build_demo = path('form_api_example.build_demo') %}
{% set container_demo = path('form_api_example.container_demo') %}
{% set state_demo = path('form_api_example.state_demo') %}
{% set vertical_tabs_demo = path('form_api_example.vertical_tabs_demo') %}
{% set ajax_demo = path('form_api_example.ajax_color_demo') %}
{% set ajax_add_more = path('form_api_example.ajax_add_more') %}
{% set modal_form = path('form_api_example.modal_form', {'nojs': 'nojs'}) %}
{% set block_admin = path('block.admin_display') %}

{% trans %}
<p>Form examples to demonstrate common UI solutions using the Drupal Form API</p>
<p><a href={{ simple_form }}>Simple form</a></p>
<p><a href={{ multistep_form }}>Multistep form</a></p>
<p><a href={{ input_demo }}>Common input elements</a></p>
<p><a href={{ build_demo }}>Build form demo</a></p>
<p><a href={{ container_demo }}>Container elements</a></p>
<p><a href={{ state_demo }}>Form state binding</a></p>
<p><a href={{ vertical_tabs_demo }}>Vertical tab elements</a></p>
<p><a href={{ ajax_demo }}>Ajax form</a></p>
<p><a href={{ ajax_add_more }}>Add more button</a></p>
<p><a href={{ modal_form }}>Modal form</a></p>

<p>This module also provides a block, "Example: Display a form" that
    demonstrates how to display a form in a block. This same technique can be
    used whenever you need to display a form that is not the primary content of
    a page. You can enable it on your site <a href={{ block_admin }}>using the
    block admin page</a>.</p>
{% endtrans %}

File

modules/form_api_example/templates/description.html.twig

View source
  1. {#
  2. Description text for the Form API Example.
  3. #}
  4. {{ attach_library('core/drupal.dialog.ajax') }}
  5. {% set simple_form = path('form_api_example.simple_form') %}
  6. {% set multistep_form = path('form_api_example.multistep_form') %}
  7. {% set input_demo = path('form_api_example.input_demo') %}
  8. {% set build_demo = path('form_api_example.build_demo') %}
  9. {% set container_demo = path('form_api_example.container_demo') %}
  10. {% set state_demo = path('form_api_example.state_demo') %}
  11. {% set vertical_tabs_demo = path('form_api_example.vertical_tabs_demo') %}
  12. {% set ajax_demo = path('form_api_example.ajax_color_demo') %}
  13. {% set ajax_add_more = path('form_api_example.ajax_add_more') %}
  14. {% set modal_form = path('form_api_example.modal_form', {'nojs': 'nojs'}) %}
  15. {% set block_admin = path('block.admin_display') %}
  16. {% trans %}
  17. <p>Form examples to demonstrate common UI solutions using the Drupal Form API</p>
  18. <p><a href={{ simple_form }}>Simple form</a></p>
  19. <p><a href={{ multistep_form }}>Multistep form</a></p>
  20. <p><a href={{ input_demo }}>Common input elements</a></p>
  21. <p><a href={{ build_demo }}>Build form demo</a></p>
  22. <p><a href={{ container_demo }}>Container elements</a></p>
  23. <p><a href={{ state_demo }}>Form state binding</a></p>
  24. <p><a href={{ vertical_tabs_demo }}>Vertical tab elements</a></p>
  25. <p><a href={{ ajax_demo }}>Ajax form</a></p>
  26. <p><a href={{ ajax_add_more }}>Add more button</a></p>
  27. <p><a href={{ modal_form }}>Modal form</a></p>
  28. <p>This module also provides a block, "Example: Display a form" that
  29. demonstrates how to display a form in a block. This same technique can be
  30. used whenever you need to display a form that is not the primary content of
  31. a page. You can enable it on your site <a href={{ block_admin }}>using the
  32. block admin page</a>.</p>
  33. {% endtrans %}