diff --git a/module/block/ui/create.html.php b/module/block/ui/create.html.php
index 537fd90b24..dd8d125c79 100644
--- a/module/block/ui/create.html.php
+++ b/module/block/ui/create.html.php
@@ -152,7 +152,15 @@ div
set::required(true),
),
)
- )
+ ),
+ $module == 'html' ? formRow
+ (
+ formGroup
+ (
+ set::label($lang->block->lblHtml),
+ editor(set::name('params[html]')),
+ )
+ ) : null
)
)
)
diff --git a/module/block/ui/qaoverviewblock.html.php b/module/block/ui/htmlblock.html.php
similarity index 73%
rename from module/block/ui/qaoverviewblock.html.php
rename to module/block/ui/htmlblock.html.php
index 4ca389903f..e1da2cb1d6 100644
--- a/module/block/ui/qaoverviewblock.html.php
+++ b/module/block/ui/htmlblock.html.php
@@ -1,7 +1,7 @@
@@ -13,12 +13,10 @@ namespace zin;
panel
(
- set('headingClass', 'border-b'),
set::title($block->title),
- div
- (
- '正在开发中...'
- )
+ set('class', 'html-block list-block ' . ($longBlock ? 'block-long' : 'block-sm')),
+ set('headingClass', 'border-b'),
+ html($block->params->html)
);
render();
diff --git a/module/block/ui/todolistblock.html.php b/module/block/ui/todolistblock.html.php
deleted file mode 100644
index 12bb226427..0000000000
--- a/module/block/ui/todolistblock.html.php
+++ /dev/null
@@ -1,24 +0,0 @@
-
-* @package block
-* @link https://www.zentao.net
-*/
-
-namespace zin;
-
-panel
-(
- set('headingClass', 'border-b'),
- set::title($block->title),
- div
- (
- '正在开发中...'
- )
-);
-
-render();