示例#1
0
    ?>
		<?php 
    echo $form->error($model, 'is_free_to');
    ?>
	</div>

	<?php 
}
if (!isset($element)) {
    $element = 0;
}
if (issetModule('bookingcalendar') && $model->active != Apartment::STATUS_DRAFT) {
    $this->renderPartial('//modules/bookingcalendar/views/_form', array('apartment' => $model, 'element' => $element));
}
$rows = HFormEditor::getExtendedFields();
HFormEditor::renderFormRows($rows, $model);
?>

</div>

	<?php 
/*if ($model->isNewRecord) {
		echo '<p>' . tt('After pressing the button "Create", you will be able to load photos for the listing and to mark the property on the map.', 'apartments') . '</p>';
	}*/
if (Yii::app()->user->checkAccess('backend_access')) {
    $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'icon' => 'ok white', 'label' => $model->isNewRecord ? Yii::t('common', 'Create') : Yii::t('common', 'Save'), 'htmlOptions' => array('onclick' => "\$('#Apartment-form').submit(); return false;")));
} else {
    echo '<div class="row buttons save">';
    echo CHtml::button($model->isNewRecord ? Yii::t('common', 'Create') : Yii::t('common', 'Save'), array('onclick' => "\$('#Apartment-form').submit(); return false;", 'class' => 'big_button button-blue'));
    echo '</div>';
}