Skip to content

Commit

Permalink
Merge pull request #9 from PabloRN/master
Browse files Browse the repository at this point in the history
Formulario de registrarse
  • Loading branch information
rafix committed Jun 24, 2011
2 parents a700342 + 30dbf95 commit 1b3573c
Show file tree
Hide file tree
Showing 10 changed files with 1,904 additions and 3,856 deletions.
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

0 comments on commit 1b3573c

Please sign in to comment.