Commit cba9f6ee authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Amélioration page de connexion.

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