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

Structure pour Bootstrap 3.

parent afa643c4
...@@ -12,15 +12,15 @@ $form->setAttributes(array( ...@@ -12,15 +12,15 @@ $form->setAttributes(array(
'role' => 'form')); 'role' => 'form'));
?> ?>
<div class="container col-sm-2"> <?php echo $this->form()->openTag($form) ?>
<?php echo $this->form()->openTag($form) ?>
<?php if (($errors = $this->formErrors($this->loginForm))): ?> <?php if (($errors = $this->formErrors($this->loginForm))): ?>
<p> <p>
<?php echo $errors ?> <?php echo $errors ?>
</p> </p>
<?php endif ?> <?php endif ?>
<div class="container col-sm-3">
<div class="form-group"> <div class="form-group">
<?php <?php
...@@ -46,15 +46,15 @@ $form->setAttributes(array( ...@@ -46,15 +46,15 @@ $form->setAttributes(array(
</div> </div>
<?php echo $this->formButton($form->get('submit')->setAttribute('class', 'btn btn-primary')) ?> <?php echo $this->formButton($form->get('submit')->setAttribute('class', 'btn btn-primary')) ?>
<?php echo $this->form()->closeTag() ?>
<?php if ($this->enableRegistration) : ?>
<?php echo $this->translate("Not registered?"); ?> <a href="<?php echo $this->url('zfcuser/register') . ($this->redirect ? '?redirect='.$this->redirect : '') ?>"><?php echo $this->translate("Sign up!"); ?></a>
<?php endif; ?>
</div> </div>
<?php echo $this->form()->closeTag() ?>
<?php if ($this->enableRegistration) : ?>
<?php echo $this->translate("Not registered?"); ?> <a href="<?php echo $this->url('zfcuser/register') . ($this->redirect ? '?redirect='.$this->redirect : '') ?>"><?php echo $this->translate("Sign up!"); ?></a>
<?php endif; ?>
<script type="text/javascript"> <script type="text/javascript">
// focus sur le 1er champ vide // focus sur le 1er champ vide
$("input").filter(function() { return this.value === ""; }).get(0).focus(); $("input").filter(function() { return this.value === ""; }).get(0).focus();
......
Supports Markdown
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