Skip to content
Snippets Groups Projects
Commit cba9f6ee authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Amélioration page de connexion.

parent 8a0759a6
No related branches found
No related tags found
No related merge requests found
<div class="page-header">
<h1><?php echo $this->translate("Sign In"); ?></h1> <h1><?php echo $this->translate("Sign In"); ?></h1>
</div>
<?php <?php
$form = $this->loginForm; $form = $this->loginForm;
...@@ -9,21 +11,27 @@ $form->setAttribute('method', 'post'); ...@@ -9,21 +11,27 @@ $form->setAttribute('method', 'post');
<?php echo $this->form()->openTag($form) ?> <?php echo $this->form()->openTag($form) ?>
<dl class="zend_form"> <?php if (($errors = $this->formErrors($this->loginForm))): ?>
<?php echo $this->formElementErrors($form->get('identity')) ?> <p>
<?php echo $errors ?>
</p>
<?php endif ?>
<dt><?php echo $this->formLabel($form->get('identity')) ?></dt> <p>
<dd><?php echo $this->formInput($form->get('identity')) ?></dd> <?php echo $this->formLabel($form->get($name = 'identity')->setAttribute('id', $name)) ?>
<?php echo $this->formInput($form->get($name)) ?>
<dt><?php echo $this->formLabel($form->get('credential')) ?></dt> <?php echo $this->formLabel($form->get($name = 'credential')->setAttribute('id', $name)) ?>
<dd><?php echo $this->formInput($form->get('credential')) ?></dd> <?php echo $this->formInput($form->get($name)) ?>
<?php if ($this->redirect): ?> <?php if ($this->redirect): ?>
<input type="hidden" name="redirect" value="<?php echo $this->redirect ?>" /> <input type="hidden" name="redirect" value="<?php echo $this->redirect ?>" />
<?php endif ?> <?php endif ?>
</p>
<dd><?php echo $this->formButton($form->get('submit')) ?></dd> <p>
</dl> <?php echo $this->formButton($form->get('submit')->setAttribute('class', 'btn btn-primary')) ?>
</p>
<?php echo $this->form()->closeTag() ?> <?php echo $this->form()->closeTag() ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment