<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'tippromene-form',
    'enableAjaxValidation' => false,
)); ?>

<p class="help-block">Polja sa <span class="required">*</span> su obavezna.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->dropDownListRow($model, 'ulaz_izlaz', array('1' => 'Ulaz', '2' => 'Izlaz'), array('class' => 'span1')); ?>

<?php echo $form->textFieldRow($model, 'naziv', array('class' => 'span5')); ?>

<?php echo $form->checkBoxRow($model, 'prikazi', array('class' => 'span1')); ?>

<div class="form-actions">
    <?php $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Dodaj' : 'Sačuvaj',
    )); ?>
</div>

<?php $this->endWidget(); ?>
