提交 2f24423a 编写于 作者: xchenhao's avatar xchenhao

change style

上级 8e247ddd
......@@ -3,6 +3,7 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\Article;
use common\models\Category;
/* @var $this yii\web\View */
/* @var $model common\models\Article */
......@@ -29,7 +30,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?= $form->field($model, 'tags')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'author')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'category_id')->textInput() ?>
<?php
$categorys = Category::getAllTreeList();
$options = array_column($categorys, 'name', 'id');
?>
<?= $form->field($model,'category_id')->dropDownList($options, ['prompt'=>'请选择分类', 'required' => true]); ?>
<?= $form->field($model, 'attr')->hiddenInput() ?>
<?php if ($model->isRichTextEditor): ?>
......@@ -63,7 +69,7 @@ $this->params['breadcrumbs'][] = $this->title;
$(function() {
testEditor = editormd("markdown-box", {
width : "90%",
height : 640,
height : 800,
syncScrolling : "single",
path : "/node_modules/editor.md/lib/"
})
......
......@@ -2,6 +2,7 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use common\models\Category;
/* @var $this yii\web\View */
/* @var $model common\models\Article */
......@@ -26,7 +27,11 @@ $this->params['breadcrumbs'][] = '更新文章';
<?= $form->field($model, 'tags')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'author')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'category_id')->textInput() ?>
<?php
$categorys = Category::getAllTreeList();
$options = array_column($categorys, 'name', 'id');
?>
<?= $form->field($model,'category_id')->dropDownList($options, ['prompt'=>'请选择分类', 'required' => true]); ?>
<?= $form->field($model, 'attr')->hiddenInput() ?>
<?php if ($model->isRichTextEditor): ?>
......@@ -61,7 +66,7 @@ $this->params['breadcrumbs'][] = '更新文章';
$(function() {
testEditor = editormd("markdown-box", {
width : "90%",
height : 640,
height : 800,
syncScrolling : "single",
path : "/node_modules/editor.md/lib/"
})
......
......@@ -47,7 +47,7 @@
}
#masonryContent .news_li {
position: absolute;
height: 300px;
height: 325px;
}
#masonryContent .news_li:nth-of-type(3n+1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册