8000 Simplified the form theming docs by javiereguiluz · Pull Request #10926 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Simplified the form theming docs #10926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed more references
  • Loading branch information
javiereguiluz committed Jan 25, 2019
commit 2a2015263ec47985e26ea7e0ba5beafb0c6a1179
4 changes: 2 additions & 2 deletions form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ link for details), create a ``shipping_widget`` block to handle this:
.. note::

Make sure the correct widget prefix is used. In this example the name should
be ``shipping_widget`` (see :ref:`form-customization-form-themes`).
Further, the main config file should point to the custom form template
be ``shipping_widget`` (see :ref:`form fragment naming <form-fragment-naming>`
rules). Further, the main config file should point to the custom form template
so that it's used when rendering all forms.

When using Twig this is:
Expand Down
2 changes: 1 addition & 1 deletion form/create_form_type_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Override the File Widget Template Fragment

Each field type is rendered by a template fragment. Those template fragments
can be overridden in order to customize form rendering. For more information,
you can refer to the :ref:`form-customization-form-themes` article.
you can refer to the :ref:`form fragment naming <form-fragment-naming>` rules.

In your extension class, you added a new variable (``image_url``), but
you still need to take advantage of this new variable in your templates.
Expand Down
0