Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xchenhao
blog
提交
2f24423a
B
blog
项目概览
xchenhao
/
blog
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
blog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2f24423a
编写于
10月 03, 2019
作者:
xchenhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change style
上级
8e247ddd
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
16 addition
and
5 deletion
+16
-5
backend/views/article/create.php
backend/views/article/create.php
+8
-2
backend/views/article/update.php
backend/views/article/update.php
+7
-2
dev/bac/PostController.php
dev/bac/PostController.php
+0
-0
dev/bac/post/_form.php
dev/bac/post/_form.php
+0
-0
dev/bac/post/_search.php
dev/bac/post/_search.php
+0
-0
dev/bac/post/create.php
dev/bac/post/create.php
+0
-0
dev/bac/post/index.php
dev/bac/post/index.php
+0
-0
dev/bac/post/update.php
dev/bac/post/update.php
+0
-0
dev/bac/post/view.php
dev/bac/post/view.php
+0
-0
frontend/views/article/index.php
frontend/views/article/index.php
+1
-1
未找到文件。
backend/views/article/create.php
浏览文件 @
2f24423a
...
...
@@ -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
:
64
0
,
height
:
80
0
,
syncScrolling
:
"
single
"
,
path
:
"
/node_modules/editor.md/lib/
"
})
...
...
backend/views/article/update.php
浏览文件 @
2f24423a
...
...
@@ -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
:
64
0
,
height
:
80
0
,
syncScrolling
:
"
single
"
,
path
:
"
/node_modules/editor.md/lib/
"
})
...
...
backend/controllers
/PostController.php
→
dev/bac
/PostController.php
浏览文件 @
2f24423a
文件已移动
backend/views
/post/_form.php
→
dev/bac
/post/_form.php
浏览文件 @
2f24423a
文件已移动
backend/views
/post/_search.php
→
dev/bac
/post/_search.php
浏览文件 @
2f24423a
文件已移动
backend/views
/post/create.php
→
dev/bac
/post/create.php
浏览文件 @
2f24423a
文件已移动
backend/views
/post/index.php
→
dev/bac
/post/index.php
浏览文件 @
2f24423a
文件已移动
backend/views
/post/update.php
→
dev/bac
/post/update.php
浏览文件 @
2f24423a
文件已移动
backend/views
/post/view.php
→
dev/bac
/post/view.php
浏览文件 @
2f24423a
文件已移动
frontend/views/article/index.php
浏览文件 @
2f24423a
...
...
@@ -47,7 +47,7 @@
}
#masonryContent
.news_li
{
position
:
absolute
;
height
:
3
00
px
;
height
:
3
25
px
;
}
#masonryContent
.news_li
:nth-of-type
(
3
n
+
1
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录