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

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

<?php echo $form->errorSummary($model); ?>
<div class="" >
    <?php echo $form->labelEx($model, 'username'); ?>
    <?php echo $form->textField($model, 'username', array('size' => 45, 'maxlength' => 45)); ?>
    <?php echo $form->error($model, 'username'); ?>
</div>

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

<div class="" style="">
    <?php echo $form->labelEx($model,'title'); ?>
    <?php echo $form->dropDownList($model,'title',
        array(
            'administrator'=>'administrator',
            'korisnik'=>'korisnik',

        )); ?>

    <?php echo $form->error($model,'title'); ?>
</div>

<div class="" >
    <?php echo $form->labelEx($model,'ime'); ?>
    <?php echo $form->textField($model,'ime',array('size'=>45,'maxlength'=>60)); ?>
    <?php echo $form->error($model,'ime'); ?>
</div>

<div class="" style="">
    <?php echo $form->labelEx($model,'prezime'); ?>
    <?php echo $form->textField($model,'prezime',array('size'=>45,'maxlength'=>60)); ?>
    <?php echo $form->error($model,'prezime'); ?>
</div>

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

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