Browse Source

fixed tabs

Fabien Potencier 14 years ago
parent
commit
626af39800

+ 5 - 5
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/checkbox_field.php

@@ -1,7 +1,7 @@
 <input type="checkbox"
-	id="<?php echo $field->getId() ?>"
-	name="<?php echo $field->getName() ?>"
-	<?php if ($field->hasValue()): ?>value="<?php echo $field->getValue() ?>"<?php endif ?>
-	<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
-	<?php if ($field->isChecked()): ?>checked="checked"<?php endif ?>
+    id="<?php echo $field->getId() ?>"
+    name="<?php echo $field->getName() ?>"
+    <?php if ($field->hasValue()): ?>value="<?php echo $field->getValue() ?>"<?php endif ?>
+    <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    <?php if ($field->isChecked()): ?>checked="checked"<?php endif ?>
 />

+ 6 - 6
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/date_field.php

@@ -1,10 +1,10 @@
 <?php if ($field->isField()): ?>
-	<input type="text"
-		id="<?php echo $field->getId() ?>"
-		name="<?php echo $field->getName() ?>"
-		value="<?php echo $field->getDisplayedData() ?>"
-		<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
-	/>
+    <input type="text"
+        id="<?php echo $field->getId() ?>"
+        name="<?php echo $field->getName() ?>"
+        value="<?php echo $field->getDisplayedData() ?>"
+        <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    />
 <?php else: ?>
     <?php echo str_replace(array('{{ year }}', '{{ month }}', '{{ day }}'), array(
         $view['form']->render($field['year']),

+ 3 - 3
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/file_field.php

@@ -1,7 +1,7 @@
 <input type="file"
-	id="<?php echo $field['file']->getId() ?>"
-	name="<?php echo $field['file']->getName() ?>"
-	<?php if ($field['file']->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    id="<?php echo $field['file']->getId() ?>"
+    name="<?php echo $field['file']->getName() ?>"
+    <?php if ($field['file']->isDisabled()): ?>disabled="disabled"<?php endif ?>
 />
 
 <?php echo $view['form']->render($field['token']) ?>

+ 4 - 4
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/hidden_field.php

@@ -1,6 +1,6 @@
 <input type="hidden"
-	id="<?php echo $field->getId() ?>"
-	name="<?php echo $field->getName() ?>"
-	value="<?php echo $field->getDisplayedData() ?>"
-	<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    id="<?php echo $field->getId() ?>"
+    name="<?php echo $field->getName() ?>"
+    value="<?php echo $field->getDisplayedData() ?>"
+    <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
 />

+ 4 - 4
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/number_field.php

@@ -1,6 +1,6 @@
 <input type="text"
-	id="<?php echo $field->getId() ?>"
-	name="<?php echo $field->getName() ?>"
-	value="<?php echo $field->getDisplayedData() ?>"
-	<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    id="<?php echo $field->getId() ?>"
+    name="<?php echo $field->getName() ?>"
+    value="<?php echo $field->getDisplayedData() ?>"
+    <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
 />

+ 6 - 6
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/password_field.php

@@ -1,8 +1,8 @@
 <input type="password"
-	id="<?php echo $field->getId() ?>"
-	name="<?php echo $field->getName() ?>"
-	value="<?php echo $field->getDisplayedData() ?>"
-	<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
-	<?php // FIXME if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
-	<?php echo $view['form']->attributes($attr) ?>
+    id="<?php echo $field->getId() ?>"
+    name="<?php echo $field->getName() ?>"
+    value="<?php echo $field->getDisplayedData() ?>"
+    <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    <?php // FIXME if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
+    <?php echo $view['form']->attributes($attr) ?>
 />

+ 5 - 5
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/radio_field.php

@@ -1,7 +1,7 @@
 <input type="radio"
-	id="<?php echo $field->getId() ?>"
-	name="<?php echo $field->getName() ?>"
-	<?php if ($field->hasValue()): ?>value="<?php echo $field->getValue() ?>"<?php endif ?>
-	<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
-	<?php if ($field->isChecked()): ?>checked="checked"<?php endif ?>
+    id="<?php echo $field->getId() ?>"
+    name="<?php echo $field->getName() ?>"
+    <?php if ($field->hasValue()): ?>value="<?php echo $field->getValue() ?>"<?php endif ?>
+    <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    <?php if ($field->isChecked()): ?>checked="checked"<?php endif ?>
 />

+ 6 - 6
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/text_field.php

@@ -1,8 +1,8 @@
 <input type="text"
-	id="<?php echo $field->getId() ?>"
-	name="<?php echo $field->getName() ?>"
-	value="<?php echo $field->getDisplayedData() ?>"
-	<?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
-	<?php // FIXME if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
-	<?php echo $view['form']->attributes($attr) ?>
+    id="<?php echo $field->getId() ?>"
+    name="<?php echo $field->getName() ?>"
+    value="<?php echo $field->getDisplayedData() ?>"
+    <?php if ($field->isDisabled()): ?>disabled="disabled"<?php endif ?>
+    <?php // FIXME if (!isset($attr['maxlength']) && $field->getMaxLength() > 0) $attr['maxlength'] = $field->getMaxLength() ?>
+    <?php echo $view['form']->attributes($attr) ?>
 />