-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from PabloRN/master
Formulario de registrarse
- Loading branch information
Showing
10 changed files
with
1,904 additions
and
3,856 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,11 @@ | ||
<?php | ||
|
||
if($sf_user->isAuthenticated()) | ||
/*if($sf_user->isAuthenticated()) | ||
{ | ||
echo _tag('p', __('You are authenticated as %username%', array('%username%' => $sf_user->getUsername()))); | ||
$image = $sf_user->getUser()->get('Image'); | ||
echo _media($image)->size(50,60); | ||
echo _tag('p', __('Usted ya se encuentra registrado como "%username%", si no es "%username%" por favor cierre la sesión e intente registrarse de nuevo.', array('%username%' => $sf_user->getUsername()))); | ||
return; | ||
} | ||
}*/ | ||
|
||
echo $form->open('.dm_register_form'); | ||
|
||
echo _open('ul.dm_form_elements'); | ||
|
||
echo _tag('li.dm_form_element', $form['username']->label()->field()->error()); | ||
|
||
echo _tag('li.dm_form_element', $form['email']->label()->field()->error()); | ||
|
||
echo _tag('li.dm_form_element', $form['password']->label()->field()->error()); | ||
|
||
echo _tag('li.dm_form_element', $form['password_again']->label()->field()->error()); | ||
|
||
// render captcha if enabled | ||
if($form->isCaptchaEnabled()) | ||
{ | ||
echo _tag('li.dm_form_element', $form['captcha']->label(null, 'for=false')->field()->error()); | ||
} | ||
|
||
echo _close('ul'); | ||
|
||
echo $form->renderHiddenFields(); | ||
|
||
echo $form->submit(__('Register')); | ||
|
||
echo $form->close(); | ||
echo $form; |
Oops, something went wrong.