<?php
echo $this->partial('template/menu.phtml', array('menu' => 'utenti'));
$form = $this->form;
$form->prepare();
?>

<?php echo $this->form()->openTag($form); ?>
<div class="row">
    <div class="span12">
        <legend>Aggiungi nuovo Utente</legend>
    </div>
</div>

<div class="row">
    <div class="span4">
        <label>Ruolo</label>
        <?php echo $this->formRow($form->get('id_ruolo')); ?>
        <label>Account</label>
        <?php echo $this->formRow($form->get('status')); ?>
        <label>Username</label>
        <?php echo $this->formRow($form->get('username')); ?>
        <label>Password</label>
        <?php echo $this->formRow($form->get('password')); ?>
        <label>Indirizzo</label>
        <?php echo $this->formRow($form->get('indirizzo')); ?>
    </div>

    <div class="span4">
        <label>Nome</label>
        <?php echo $this->formRow($form->get('nome')); ?>
        <label>Cognome</label>
        <?php echo $this->formRow($form->get('cognome')); ?>
        <label>Codice Fiscale</label>
        <?php echo $this->formRow($form->get('codice_fiscale')); ?>
        <label>Telefono</label>
        <?php echo $this->formRow($form->get('telefono')); ?>
    </div>

    <div class="span4">
        <label>Indirizzo Email</label>
        <?php echo $this->formRow($form->get('email')); ?>
        <label>CAP</label>
        <?php echo $this->formRow($form->get('cap')); ?>
        <label>Città</label>
        <?php echo $this->formRow($form->get('citta')); ?>
        <label>Cellulare</label>
        <?php echo $this->formRow($form->get('cellulare')); ?>
    </div>
</div>

<div class="row">
    <div class="span12">
        <hr/>
    </div>
</div>

<div class="row">
    <div class="span12">
        <input type="submit" class="btn btn-success btn-large" value="Salva">
    </div>
</div>
<?php echo $this->form()->closeTag(); ?>
