Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d92e2a8

Browse files
Fixed license Headers
1 parent a3d8a81 commit d92e2a8

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/button_widget.html.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
<?php if (!$label) { $label = isset($label_format)
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
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 (!$label) { $label = isset($label_format)
213
? strtr($label_format, ['%name%' => $name, '%id%' => $id])
314
: $view['form']->humanize($name); } ?>
415
<button type="<?php echo isset($type) ? $view->escape($type) : 'button' ?>" <?php echo $view['form']->block($form, 'button_attributes') ?>>

src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/form_label.html.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
<?php if (false !== $label): ?>
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
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 (false !== $label): ?>
213
<?php if ($required) { $label_attr['class'] = trim((isset($label_attr['class']) ? $label_attr['class'] : '').' required'); } ?>
314
<?php if (!$compound) { $label_attr['for'] = $id; } ?>
415
<?php if (!$label) { $label = isset($label_format)

0 commit comments

Comments
 (0)