Skip to content

Commit 34b17b5

Browse files
committed
fixed typo
1 parent 2b3ac35 commit 34b17b5

20 files changed

+39
-25
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'widget_attributes') ?>
1+
<?php echo $view['form']->block($form, 'widget_attributes');
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php if (!$label) { $label = isset($label_format)
1+
<?php if (!$label) {
2+
$label = isset($label_format)
23
? strtr($label_format, array('%name%' => $name, '%id%' => $id))
3-
: $view['form']->humanize($name); } ?>
4+
: $view['form']->humanize($name);
5+
} ?>
46
<button type="<?php echo isset($type) ? $view->escape($type) : 'button' ?>" <?php echo $view['form']->block($form, 'button_attributes') ?>><?php echo $view->escape($view['translator']->trans($label, array(), $translation_domain)) ?></button>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'choice_widget_options') ?>
1+
<?php echo $view['form']->block($form, 'choice_widget_options');

Resources/views/Form/choice_widget_options.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php use Symfony\Component\Form\ChoiceList\View\ChoiceGroupView;
22

3-
$translatorHelper = $view['translator']; // outside of the loop for performance reasons! ?>
3+
$translatorHelper = $view['translator']; // outside of the loop for performance reasons!?>
44
<?php $formHelper = $view['form']; ?>
55
<?php foreach ($choices as $group_label => $choice): ?>
66
<?php if (is_array($choice) || $choice instanceof ChoiceGroupView): ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'widget_container_attributes') ?>
1+
<?php echo $view['form']->block($form, 'widget_container_attributes');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'email')) ?>
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'email'));
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
<?php if (false !== $label): ?>
2-
<?php if ($required) { $label_attr['class'] = trim((isset($label_attr['class']) ? $label_attr['class'] : '').' required'); } ?>
3-
<?php if (!$compound) { $label_attr['for'] = $id; } ?>
4-
<?php if (!$label) { $label = isset($label_format)
2+
<?php if ($required) {
3+
$label_attr['class'] = trim((isset($label_attr['class']) ? $label_attr['class'] : '').' required');
4+
} ?>
5+
<?php if (!$compound) {
6+
$label_attr['for'] = $id;
7+
} ?>
8+
<?php if (!$label) {
9+
$label = isset($label_format)
510
? strtr($label_format, array('%name%' => $name, '%id%' => $id))
6-
: $view['form']->humanize($name); } ?>
7-
<label <?php foreach ($label_attr as $k => $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>><?php echo $view->escape(false !== $translation_domain ? $view['translator']->trans($label, array(), $translation_domain) : $label) ?></label>
11+
: $view['form']->humanize($name);
12+
} ?>
13+
<label <?php foreach ($label_attr as $k => $v) {
14+
printf('%s="%s" ', $view->escape($k), $view->escape($v));
15+
} ?>><?php echo $view->escape(false !== $translation_domain ? $view['translator']->trans($label, array(), $translation_domain) : $label) ?></label>
816
<?php endif ?>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php $method = strtoupper($method) ?>
22
<?php $form_method = $method === 'GET' || $method === 'POST' ? $method : 'POST' ?>
3-
<form name="<?php echo $name ?>" method="<?php echo strtolower($form_method) ?>" action="<?php echo $action ?>"<?php foreach ($attr as $k => $v) { printf(' %s="%s"', $view->escape($k), $view->escape($v)); } ?><?php if ($multipart): ?> enctype="multipart/form-data"<?php endif ?>>
3+
<form name="<?php echo $name ?>" method="<?php echo strtolower($form_method) ?>" action="<?php echo $action ?>"<?php foreach ($attr as $k => $v) {
4+
printf(' %s="%s"', $view->escape($k), $view->escape($v));
5+
} ?><?php if ($multipart): ?> enctype="multipart/form-data"<?php endif ?>>
46
<?php if ($form_method !== $method): ?>
57
<input type="hidden" name="_method" value="<?php echo $method ?>" />
68
<?php endif ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->widget($form) ?>
1+
<?php echo $view['form']->widget($form);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'hidden')) ?>
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'hidden'));

0 commit comments

Comments
 (0)