-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[WIP] Add section for rendering a custom prototype for collections #1998
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
Closed
Changes from 1 commit
Commits
Show all changes
106 commits
Select commit
Hold shift + click to select a range
6e3bc9f
Created paragraph for prototype customization.
931715a
Added twig-syntax for data-prototype.
f5c6876
Added reusing of prototype template for displaying items from collect…
83ae106
Formatting.
e42a5a5
Use double ticks for inline code.
e222ee1
Moved hyperlink to the bottom.
a4f53b5
Added PHP examples.
52f17a3
Added missing closing paranthesis
9ddfc58
Fixed code blocks syntax.
3272cfc
Readded missing link targets.
c483a90
Removed outdated translations from the official list
wouterj 9b0cef4
Fix documentation for group_sequence_provider
giosh94mhz 30e993d
document multiple recipients in XML configs
xabbuh 2c69be5
tweaks for the web server configuration chapter
xabbuh cb2ba28
Fixed minor typos.
ahsio 0a4acc3
Removing extra whitespace
weaverryan ca43765
Added the schema_filter option to the reference
peterrehm 8e019f5
Added custom format page to translation component
raulfraile dd161e3
Link from introduction section
raulfraile 20a3385
Small fixes
raulfraile 3b105c7
Cleanups
raulfraile afd0365
Fixed version for composer install
zomberg f560f82
Improvements based on comments
raulfraile 981739a
Extra improvements based on comments
raulfraile d6de597
Fixed wrong indentation
raulfraile fa24ac6
Updated for CMF doc refactoring
wouterj 0a4d5c5
Adding 'attr' option to the Textarea options list
ronanguilloux f93cca0
[Reference] consistent & complete config examples
xabbuh acf5d28
Update voters.rst
cdf2134
fixes environment/application mistake
phpeek 4bb0f65
Improved custom formats article based on comments
raulfraile 93ae940
Added note about exporting SYMFONY_ENV
jasonbouffard f3b942e
New service to simplify password encoding
aferrandini 819c53c
Route description correction.
9f6590b
add link to form testing chapter in test section
xabbuh 1fd5af4
Link to FOSHttpCacheBundle
ddeboer 44e8ae0
Update datetime.rst
althaus d41ed6c
Update datetime.rst
althaus 1a001c7
Update home of DoctrineExtensions.
rubenrua 4ea3f8d
Moved 'contributing' images to their own directory
javiereguiluz 86be71c
fix name of the Yaml component
xabbuh 4238aad
replace "Symfony2" with "Symfony"
xabbuh 3ee5187
Added a note about the lacking features of Yaml Component
javiereguiluz 227d366
Fix method for adding placholders in progressBar
danez f6ff985
The name of the placeholder must not be encapsulated in %
danez f6a3c28
Missing backtick, thanks to @Baptouuuu
wouterj 9372cde
Reverts c723d8dd546412b08ffaf3846b5574f4f4021418
wouterj 727744c
Missing backtick, thanks to @Baptouuuu
wouterj 5bae1e1
Fixed code highlighting
wouterj b9a7381
Caution that roles should start with ROLE_
jrjohnson 3f0e5b6
Added a note about the side effects of enabling both PHP and Twig
javiereguiluz 3689506
Add formatting, links, and clarity
jrjohnson 5aa2ea0
Add label book-security-roles
jrjohnson b78465b
Fix reference label
jrjohnson a0f318e
do not reference services in parameters
xabbuh 4458f7e
Revamped the documentation about "Contributing Docs"
javiereguiluz 5b53d6a
Added missing link
javiereguiluz 9a49cf2
lways use absolute links instead of relative for internal doc links
javiereguiluz 5173705
Switched another relative link into an absolute reference
javiereguiluz f2043eb
Added a note about not using relative internal links in the doc
javiereguiluz 709f82a
Added lots of fixes suggested by reviewers
javiereguiluz 1cbf5fa
Added another bunch of fixes suggested by reviewers
javiereguiluz 82ae880
More and more fixes and improvements
javiereguiluz 216d086
Improved the explanation thanks to @stof comments
javiereguiluz 6ac5c55
Reworded the explanation about the limitation of enablin PHP templates
javiereguiluz 32cc0c7
Update Collection.rst
azarzag cc5ac25
Removed two highlight formats which are "experimental" and not
javiereguiluz 7ed8f00
Fixed all the errors found by Ryan
javiereguiluz 8821052
caution on `null` values in Expression constraint
xabbuh e5ea1b1
Move debug command to the debug namespace
edd2f8d
[#4166] Fixing small typo
weaverryan 28d10e2
Cache needs be cleared
marcel-burkhard 3ad7d3c
Update override_dir_structure.rst
marcel-burkhard e1947af
First draft of the bundle installation instructions
javiereguiluz 8078bbe
Applied all the fixes and suggestions made by reviewers
javiereguiluz 5a95d43
Fixed minor typo
javiereguiluz b285fac
More improvements based on reviewers' comments
javiereguiluz c0d447c
Fixed some code formatting
javiereguiluz 242d410
Removed the first person perspective and other minor fixes
javiereguiluz 376f009
More tweaks and fixes
javiereguiluz aca99bb
Minor fixes and tweaks
javiereguiluz ae1c12d
Removed the sidebar and made some minor tweaks
javiereguiluz 7769b89
Reworded a bit the installation instructions
javiereguiluz 45d0e00
Added the fixes suggested by Ryan
javiereguiluz 3908ed2
Handle "constraints" option in form unit testing
sarcher 69f77cd
Fixed return value
sarcher 396f94f
fix ContainerAwareEventDispatcher definition
xabbuh 511c418
link translation DIC tags to components section
xabbuh ff157a4
provide node path on configuration
desarrolla2 36e9741
Update uglifyjs.rst
desarrolla2 48b3194
Update uglifyjs.rst
desarrolla2 aa4c827
update uglifyjs.rst
desarrolla2 621a6c1
[#4249] Tiny tweak to language
weaverryan a86977c
Removed unnecessary comma
allejo 37f5010
Update remove.rst
Ha99y d6d4bcc
Update remove.rst
Ha99y 39f14b2
Update remove.rst
Ha99y c785b83
Applied comments
wouterj 4f14285
Remove redundant references to trusting HttpCache
thewilkybarkid 61e1245
Clarify that route defaults don't need a placeholder
iamdto 984b46e
[Twig][Form] Moved twig.form.resources to a higher level
2e1488e
Created paragraph for prototype customization.
4590c01
Added twig-syntax for data-prototype.
11e38cc
Added reusing of prototype template for displaying items from collect…
a3147d2
Formatting.
ee3fc29
Capitalize the headline and add punctuation.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added reusing of prototype template for displaying items from collect…
…ion.
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -743,3 +743,13 @@ But if you are in the situation were you need to have a complete custom prototyp | |
|
||
.. code-block:: html+jinja | ||
data-prototype="{% filter escape %}{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.get('prototype') } %}{% endfilter %}" | ||
|
||
The included `AcmeTaskBundle:Task:prototypeTask.html.twig` contains the markup used for the prototype. This way you can not only easily structure your prototype-markup, you can | ||
also use this markup to render the contents of the collection when it already holds items: | ||
|
||
.. code-block:: html+jinja | ||
{% for task in tasks %} | ||
{% include 'AcmeTaskBundle:Task:prototypeTask.html.twig' with { 'form': form.task.vars.form } %} | ||
{% endfor %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
|
||
This makes sure the displayed items are the same as the newly inserted from the prototype. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.