<?php use_helper('I18N') ?>
<?php $LDAP_config = bhLDAP::getConfig(); ?>
<div id="sf_admin_container">


<?php if($sf_user->getFlash('message')):?>
	<p class='warning'><?php echo $sf_user->getFlash('message')?></p>
<?php endif;?>

<div id="sf_guard_auth_form">
<?php echo form_tag('@bh_ldap_signin') ?>

    <h1>Autenticación  WebSafi-ERP</h1>
	<br><br><br>
  <fieldset style='width:450px'>
	<legend >Datos:</legend>
	<table style='width:auto'>
	<tr><td colspan='2' align='center'><?php echo $form['username']->renderError()  ?><td></tr>
	  <tr>
	    <th >
		<label for="signin_username">Usuario del Directorio Activo</label>
	    </th>
       	    <td>
		<?php echo $form['username']->render() ?>
	        <?php echo $LDAP_config['adLDAP']['account_suffix'] ;  ?>
	    </td>
	  </tr>
	    	<?php echo $form['password']->renderRow() ?>
	     	<?php echo $form['remember']->renderRow() ?>
	</table>
  </fieldset>
      <ul class="sf_admin_actions">
	<li class="float-right">
	  <input type="submit" value="<?php echo __('Acceder') ?>" class="sf_admin_action_save" />
	</li>
      </ul>

    </form>
    </div>
  </div>
