Esempio n. 1
0
<?php

use yii\helpers\Html;
use hass\meta\widgets\MetaForm;
use hass\base\misc\adminlte\ActiveForm;
$form = ActiveForm::begin(['enableAjaxValidation' => true]);
?>

<div class="box box-solid">
<?php 
if ($model->isNewRecord) {
    ?>
    <div class="box-header with-border" >
        <h3 class="box-title"> 创建新Tag</h3>
    </div>
<?php 
}
?>

<div class="box-body">
<?php 
echo $form->field($model, 'name');
echo $form->field($model, 'frequency');
?>
</div>
</div>
<?php 
echo $form->boxField($model, 'meta', ["collapsed" => true])->widget(MetaForm::className())->header("SEO");
?>
<div class="form-group">
    <?php 
Esempio n. 2
0
use hass\base\misc\adminlte\ActiveForm;
use hass\tag\behaviors\Taggable;
use hass\taxonomy\widgets\TaxonomySelect;
use hass\taxonomy\behaviors\TaxonomyBehavior;
use hass\attachment\widgets\SingleMediaWidget;
use hass\base\enums\EntityStatusEnum;
use hass\base\misc\editor\EditorWidget;
use hass\comment\enums\CommentEnabledEnum;
use hass\post\Module;
/**
 *
 * @package hass\package_name
 * @author zhepama <*****@*****.**>
 * @since 0.1.0
 */
$form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data', 'class' => 'model-form']]);
?>
<div class="col-md-9">
	<?php 
echo $form->field($model, 'title')->label(false);
?>
	<?php 
echo $form->boxField($model, 'short')->textarea()->header("文章摘要")->hint("摘要是可选的手工创建的内容总结,并可在您的主题中使用。");
?>
	<?php 
echo $form->field($model, 'content')->label(false)->widget(EditorWidget::className(), ["config" => ["class" => '\\vova07\\imperavi\\Widget', 'settings' => ['lang' => 'zh_cn', 'minHeight' => 200, 'imageManagerJson' => Url::to(['/attachment/upload/images-get']), 'imageUpload' => Url::to(['/attachment/upload/create-imperavi']), 'fileUpload' => Url::to(['/attachment/upload/create-imperavi']), 'plugins' => ['clips', 'fullscreen', 'imagemanager', 'filemanager']]]]);
?>
	<?php 
echo $form->boxField($model, 'meta', ["collapsed" => true])->widget(MetaForm::className())->header("SEO");
?>
</div>
Esempio n. 3
0
<?php

use hass\base\misc\adminlte\ActiveForm;
use yii\helpers\Html;
use hass\migration\assets\MigrationAsset;
use hass\migration\models\MigrationUtility;
/** @var $model hass\migration\models\MigrationUtility */
/** @var $output String */
/** @var $output_drop String */
/** @var $tables Array */
/** @var \hass\base\misc\adminlte\ActiveForm $form */
MigrationAsset::register($this);
$array = ['CASCADE' => 'CASCADE', 'NO ACTION' => 'NO ACTION', 'RESTRICT' => 'RESTRICT', 'SET NULL' => 'SET NULL'];
$form = ActiveForm::begin(['id' => 'form-submit']);
?>
<div class="box">
	<div class="box-body">
	  <?php 
echo $form->field($model, 'migrationName')->textInput();
?>
	  <?php 
echo $form->field($model, 'migrationPath')->textInput();
?>
	  
	  		<div class="row">
			<div class="col-md-6">
			  <?php 
echo $form->field($model, 'foreignKeyOnUpdate')->dropDownList($array)->hint('');
?>
			</div>
			<div class="col-md-6">
Esempio n. 4
0
 *
 * @package hass\package_name
 * @author zhepama <*****@*****.**>
 * @since 0.1.0
 *
 */
/* @var $this yii\web\View */
/* @var $theme hass\theme\models\Theme */
$this->title = Yii::t('hass', '添加主题');
$this->params['breadcrumbs'][] = $this->title;
ThemeAsset::register($this);
?>

<div class="upload-theme row">
	<p class="install-help">如果您有.zip格式的主题,可以在这里通过上传的方式安装。</p>

<?php 
$form = ActiveForm::begin(["options" => ["class" => "wp-upload-form clearfix", "enctype" => "multipart/form-data"]]);
?>

<?php 
echo $form->field($model, "themezip", ["options" => ["class" => "pull-left"]])->fileInput()->label(false);
?>

<input type="submit"
		name="install-theme-submit" id="install-theme-submit" class="button"
		value="现在安装" />
	<?php 
ActiveForm::end();
?>
</div>
Esempio n. 5
0
<?php

use yii\helpers\Html;
use hass\base\misc\adminlte\ActiveForm;
/** @var \hass\rbac\models\AuthItem $model */
$form = ActiveForm::begin(['enableAjaxValidation' => true, 'options' => ['enctype' => 'multipart/form-data']]);
?>

<div class="box box-solid">

<?php 
if ($model->isNewRecord) {
    ?>
    <div class="box-header with-border" >
        创建新用户组
    </div>
<?php 
}
?>

	<div class="box-body">
<?php 
echo $form->field($model, 'name');
echo $form->field($model, 'description')->textarea();
echo $form->field($model, 'ruleName')->dropDownList($model->getAuthRuleList(), ["prompt" => "无"]);
echo $form->field($model, 'data')->textarea();
?>
	</div>
</div>

<div class="form-group">
Esempio n. 6
0
<?php

use hass\theme\assets\ThemeAsset;
use hass\base\misc\adminlte\ActiveForm;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $theme hass\theme\models\Theme */
$this->title = Yii::t('hass', '自定义css');
$this->params['breadcrumbs'][] = $this->title;
ThemeAsset::register($this);
?>

<div id="template">

<?php 
$form = ActiveForm::begin();
?>

<?php 
echo $form->field($model, "text")->textarea(['rows' => 30, 'cols' => 70]);
?>

<div class="form-group">
        <?php 
echo Html::submitButton("保存CSS", ['class' => 'btn bg-maroon btn-flat btn-block ']);
?>
</div>

<?php 
ActiveForm::end();
?>