<?php if ($model->canShowInForm('berths')) { ?>
    <div class="form-group">
        <?php echo CHtml::activeLabelEx($model, 'berths'); ?>
        <?php echo HApartment::getTip('berths'); ?>
        <?php echo CHtml::activeTextField($model, 'berths', array('class' => 'width150 form-control', 'maxlength' => 100)); ?>
        <?php echo CHtml::error($model, 'berths'); ?>
    </div>
<?php } ?>