From 750ef9fad315e8f24c065f2a4c690e83d78acb0b Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 23 Jul 2021 14:48:30 +0800 Subject: [PATCH] * finish task #40469. --- module/doc/view/edit.html.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index e9ce3e1968..533e712fdf 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -24,17 +24,17 @@
save, '', 'id="top-submit" class="btn btn-primary"');?>
- +
- + - + @@ -45,16 +45,22 @@ - - + + type == 'url') echo "class='hidden'"?>> - + type != 'url') echo "class='hidden'"?>> - +
doc->lib;?> lib, "class='form-control chosen' onchange=loadDocModule(this.value)");?>
doc->module;?> module, "class='form-control chosen'");?>
doc->title;?> title, "class='form-control' required");?>
doc->type;?>doc->types, $doc->type);?>
+ doc->types; + if(!isset($lang->doc->types[$doc->type])) $typeList = $lang->doc->typeList; + echo html::radio('type', array($doc->type => zget($typeList, $doc->type)), $doc->type); + ?> +
doc->content;?> type == 'url' ? '' : htmlspecialchars($doc->content), "style='width:100%; height:200px'") . html::hidden('contentType', $doc->contentType);?>
doc->url;?> type == 'url' ? $doc->content : '', "class='form-control'");?>
doc->files;?> fetch('file', 'buildform');?>