소스 검색

Added renderer for PasswordField.

Philip Dahlstrøm 14 년 전
부모
커밋
b171ab9b7d
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/password_field.php

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