View file vkclone-0.0.1/protected/modules/gallery/views/photo/_form.php

File size: 567B
<?php $possibleAlbums = GalleryAlbum::model()->getPossibleAlbums($this->webUser->id); ?>
<div class="text">
	<?php $form = $this->beginWidget('CActiveForm') ?>
		<?= $form->errorSummary($model, null, null, array('class' => 'danger_alert')) ?>
		<?= $form->labelEx($model, 'description') ?>
		<?= $form->textField($model, 'description') ?><br />
		<?= $form->labelEx($model, 'album_id') ?>
		<?= $form->dropDownList($model, 'album_id', $possibleAlbums) ?><br />
		<?= CHtml::submitButton(Yii::t('Gallery', 'Save description')); ?>
	<?php $this->endWidget(); ?>
</div>