Ver Fonte

Added renderer for PasswordField.

Philip Dahlstrøm há 14 anos atrás
pai
commit
b171ab9b7d

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

@@ -0,0 +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) ?>
+/>