Created
April 13, 2011 05:44
-
-
Save bshaffer/917026 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ($field->isPartial()): ?> | |
<?php include_partial('sf_guard_user_old/'.$name, array('form' => $form, 'attributes' => $attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes)) ?> | |
<?php elseif ($field->isComponent()): ?> | |
<?php include_component('sf_guard_user_old', $name, array('form' => $form, 'attributes' => $attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes)) ?> | |
<?php else: ?> | |
<div class="<?php echo $class ?><?php $form[$name]->hasError() and print ' errors' ?>"> | |
<?php echo $form[$name]->renderError() ?> | |
<div> | |
<?php echo $form[$name]->renderLabel($label) ?> | |
<div class="content"><?php echo $form[$name]->render($attributes instanceof sfOutputEscaper ? $attributes->getRawValue() : $attributes) ?></div> | |
<?php if ($help): ?> | |
<div class="help"><?php echo __($help, array(), 'messages') ?></div> | |
<?php elseif ($help = $form[$name]->renderHelp()): ?> | |
<div class="help"><?php echo $help ?></div> | |
<?php endif; ?> | |
</div> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment