<form action="<?php echo url_for('user/login') ?>" method="post">
<table>
 <tr>
	<td colspan="2">
	   <?php if ($form->hasGlobalErrors()): ?>
		<?php foreach ($form->getGlobalErrors() as $name => $error): ?>
            <p class="form_error"><?php echo $error ?></p>
          <?php endforeach; ?>
	   <?php endif ?>
	</td>
 </tr>
 <tr>
 	<td><?php echo $form['login']->renderLabel() ?></td>
 	<td><?php echo $form['login'] ?></td>
 </tr>
 <tr>
	<td colspan="2">
	 <?php if($form['login']->hasError()) : ?>
	  <p class="form_error"><?php echo $form['login']->getError() ?></p>
	 <?php endif ?>
	</td>
 </tr>
 <tr>
 	<td width="100px"><?php echo $form['password']->renderLabel() ?></td>
 	<td><?php echo $form['password'] ?></td>
 </tr>
 <tr>
	<td colspan="2">
     <?php if($form['password']->hasError()) : ?>
	  <p class="form_error"><?php echo $form['password']->getError() ?></p>
	 <?php endif ?>
	</td>
 </tr>
</table>

<?php echo end_form('Connexion') ?>