File tree 3 files changed +22
-11
lines changed
Filter options
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form
3 files changed +22
-11
lines changed
Original file line number Diff line number Diff line change 1
- <?php if (!empty ($ help )): ?>
2
- <p id="<?php echo $ view ->escape ($ id ) ?> _help" class="help-text"><?php echo $ view ->escape (false !== $ translation_domain ? $ view ['translator ' ]->trans ($ help , array (), $ translation_domain ) : $ help ) ?> </p>
3
- <?php endif ?>
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ if (!empty ($ help )): ?>
13
+ <p id="<?php echo $ view ->escape ($ id ); ?> _help" class="help-text"><?php echo $ view ->escape (false !== $ translation_domain ? $ view ['translator ' ]->trans ($ help , array (), $ translation_domain ) : $ help ); ?> </p>
14
+ <?php endif ; ?>
Original file line number Diff line number Diff line change 1
1
<div>
2
- <?php echo $ view ['form ' ]->label ($ form ) ?>
3
- <?php echo $ view ['form ' ]->errors ($ form ) ?>
4
- <?php echo $ view ['form ' ]->widget ($ form , array ('helpBlockDisplayed ' => true )) ?>
5
- <?php echo $ view ['form ' ]->help ($ form ) ?>
2
+ <?php echo $ view ['form ' ]->label ($ form ); ?>
3
+ <?php echo $ view ['form ' ]->errors ($ form ); ?>
4
+ <?php echo $ view ['form ' ]->widget ($ form , array ('helpBlockDisplayed ' => true )); ?>
5
+ <?php echo $ view ['form ' ]->help ($ form ); ?>
6
6
</div>
Original file line number Diff line number Diff line change 1
- id="<?php echo $ view ->escape ($ id ) ?> " name="<?php echo $ view ->escape ($ full_name ) ?> "<?php if ($ disabled ): ?> disabled="disabled"<?php endif ?>
2
- <?php if ($ required ): ?> required="required"<?php endif ?>
3
- <?php if (isset ($ helpBlockDisplayed ) && true === $ helpBlockDisplayed && !empty ($ help )): ?> aria-describedby="<?php echo $ view ->escape ($ id ) ?> _help"<?php endif ?>
4
- <?php echo $ attr ? ' ' .$ view ['form ' ]->block ($ form , 'attributes ' ) : '' ?>
1
+ id="<?php echo $ view ->escape ($ id ); ?> " name="<?php echo $ view ->escape ($ full_name ); ?> "<?php if ($ disabled ): ?> disabled="disabled"<?php endif ; ?>
2
+ <?php if ($ required ): ?> required="required"<?php endif ; ?>
3
+ <?php if (isset ($ helpBlockDisplayed ) && true === $ helpBlockDisplayed && !empty ($ help )): ?> aria-describedby="<?php echo $ view ->escape ($ id ); ?> _help"<?php endif ; ?>
4
+ <?php echo $ attr ? ' ' .$ view ['form ' ]->block ($ form , 'attributes ' ) : '' ; ?>
You can’t perform that action at this time.
0 commit comments