Ejemplo n.º 1
0
?>

			 <?php 
echo $form->field($model, 'commentEnabled')->dropDownList(CommentEnabledEnum::listdata());
?>

			<?php 
if (!$model->isNewRecord) {
    ?>
			<?php 
    echo $form->field($model, 'author_id')->dropDownList(Module::getUserList());
    ?>
			<?php 
}
?>

		</div>
	</div>
	<?php 
echo $form->boxField($model, TaxonomyBehavior::$formName)->widget(TaxonomySelect::className())->header("选择分类");
?>
	<?php 
echo $form->boxField($model, Taggable::$formName)->widget(TagsInput::className())->header("TAG");
?>
	<?php 
echo $form->boxField($model, 'thumbnail')->widget(SingleMediaWidget::className())->header("特色图片");
?>
</div>

<?php 
ActiveForm::end();
Ejemplo n.º 2
0
<h4>Application Settings</h4>


<?php 
echo $form->field($model, 'appName')->textInput(['autofocus' => TRUE, 'autocomplete' => 'off']);
?>

<?php 
echo $form->field($model, 'appDescription')->textInput(['autocomplete' => 'off']);
echo $form->field($model, 'adminMail')->textInput(['autocomplete' => 'off']);
echo $form->field($model, 'appTimezone')->dropDownList(TimeZoneEnum::$timezoneList, ['autocomplete' => 'off']);
echo $form->field($model, 'appLanguage')->dropDownList(I18nEnum::$i18nList, ['autocomplete' => 'off']);
?>

	<?php 
echo $form->field($model, 'appLogo')->widget(SingleMediaWidget::className(), ["multiple" => false]);
?>
<hr />

<h4>Theme Settings</h4>


<?php 
echo $form->field($model, 'appBackendTheme')->dropDownList(BackendThemesEnum::listData(), ['class' => 'form-control']);
?>

					<?php 
echo $form->field($model, 'appFrontendThemePath')->textInput();
?>