Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Form] Changed collection prototype rendering.
Based on PR 1500. It is now rendered inside an attribute of collection tag.
- Loading branch information
marc.weistroff
committed
Jul 22, 2011
1 parent
49dda53
commit 2b4cc9b
Showing
8 changed files
with
22 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
4 changes: 4 additions & 0 deletions
4
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/collection_widget.html.php
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php if (isset($prototype)): ?> | ||
<?php $attr['data-prototype'] = $view->escape($view['form']->row($prototype)) ?> | ||
<?php endif ?> | ||
<?php echo $view['form']->widget($form, array('attr' => $attr)) ?> |
3 changes: 0 additions & 3 deletions
3
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/prototype_row.html.php
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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