Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formulario de registrarse #9

Merged
merged 3 commits into from
Jun 24, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions apps/front/modules/busqueda/templates/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
{
echo _tag('p.felicitaciones', 'Su solicitud ha sido enviada satisfactoriamente y será respondida con la mayor brevedad posible ');
}
/*else {
echo _tag('p.error', 'A ocurrido un error en el envio, intentelo más tarde o consulte al administrador del sitio. ');
}*/

echo $form;

34 changes: 6 additions & 28 deletions apps/front/modules/dmUser/templates/_form.php
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&oacuten 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;
Loading