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

Structure pour Bootstrap 3.

parent afa643c4
Branches
Tags
No related merge requests found
...@@ -12,8 +12,6 @@ $form->setAttributes(array( ...@@ -12,8 +12,6 @@ $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))): ?>
...@@ -22,6 +20,8 @@ $form->setAttributes(array( ...@@ -22,6 +20,8 @@ $form->setAttributes(array(
</p> </p>
<?php endif ?> <?php endif ?>
<div class="container col-sm-3">
<div class="form-group"> <div class="form-group">
<?php <?php
$identity = $form->get($name = 'identity') $identity = $form->get($name = 'identity')
...@@ -47,14 +47,14 @@ $form->setAttributes(array( ...@@ -47,14 +47,14 @@ $form->setAttributes(array(
<?php echo $this->formButton($form->get('submit')->setAttribute('class', 'btn btn-primary')) ?> <?php echo $this->formButton($form->get('submit')->setAttribute('class', 'btn btn-primary')) ?>
</div>
<?php echo $this->form()->closeTag() ?> <?php echo $this->form()->closeTag() ?>
<?php if ($this->enableRegistration) : ?> <?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 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; ?> <?php endif; ?>
</div>
<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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment