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

<?php echo $this->form()->openTag($form); ?>

    <div class="row">
        <div class="span12">
            <legend>Modifica programma modalità</legend>
        </div>
    </div>

    <div class="row">
        <div class="span4">
            <label>Modalità</label>
            <?php echo $this->formRow($form->get('id_modalita')); ?>
        </div>
        <div class="span4">
            <div class="input-append date datetimepicker">
                <label>Data Inizio</label>
                <?php echo $this->formRow($form->get('data_inizio')); ?>

                <span class="add-on">
                    <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                </span>
            </div>
        </div>
        <div class="span4">
            <div class="input-append date datetimepicker">
                <label>Data Fine</label>
                <?php echo $this->formRow($form->get('data_fine')); ?>

                <span class="add-on">
                    <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                </span>
            </div>
        </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(); ?>

<?php $this->inlineScript()->captureStart(); ?>
    $(function() {
    $('.datetimepicker').datetimepicker({
    language: 'pt-BR'
    });
    });
<?php $this->inlineScript()->captureEnd(); ?>