8000 fabpot.io fix · symfony/symfony@98065d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 98065d3

Browse files
Mathieu Piotmpiot
Mathieu Piot
authored andcommitted
fabpot.io fix
1 parent edb95f8 commit 98065d3

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
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; ?>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<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); ?>
66
</div>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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') : ''; ?>

0 commit comments

Comments
 (0)
0