<!--投稿-->
{% extends themePublicPath %} {% block content %}
{% plugin name="webuploader" %}
{% endplugin %}
<style>
.edui-default .edui-editor-breadcrumb span {
display: inline-block;
}
</style>
<article>
<div class="page whitebg container">
{% include "./public/userNav.html" %}
<div class="page-box">
<div class="row user-contents-post" ms-controller="user-post">
<div class="pannel-container clearfix">
<form name="postForm" ms-validate="@validate">
<div class="col-md-12">
<div class="col-md-8 left-frame">
<div class="main-form">
<div class="form-group">
<label for="">{{__('lc_documentCate')}}</label>
<div class="select-group">
<select id="selectCategory" class="form-control"
onchange="selectCateOnChange(this)">
<option value="0" selected>{{__('lc_please_select_documentCate')}}
</option>
{% if navigation.length > 0 %} {% for item in navigation %}
{% if item.parentId == '0' %} {%if item.type == '1'%}
<option value="{{item._id}}">{{item.name}}</option>
{% endif %} {% endif %} {% endfor %} {% endif %}
</select>
<select class="form-control" id="selectChildCates"
onchange="childCateOnChange(this)">
<option value="0" selected>{{__('lc_please_select_childCate')}}</option>
</select>
</div>
</div>
<div class="form-group">
<label for="">{{__('lc_documentTitle')}}</label>
<input type="text" class="form-control" name="title" ms-duplex="@title"
placeholder="{{__('lc_please_documentTitle')}}"
ms-rules="{required:true, minlength:5,maxlength:50 }"
data-required-message="{{__('lc_please_documentTitle_null_tips')}}"
data-message="{{__('validate_ranglengthandnormal',[__('lc_please_documentTitle'),5,50])}}">
</div>
</div>
</div>
<div class="col-md-4 right-frame">
<div class="right-form">
<button type="submit" class="btn btn-primary sub-content"
id="saveContent">{{__('lc_commitUserConent')}}</button>
<a href="javascript:void(0)" ms-on-click="saveDraft"
class="btn btn-default sub-content">{{__('label_content_save_draft')}}</a>
<div class="form-group thumbImg">
<label for="">{{__('lc_small_images')}}</label>
<div class="uploader-demo">
<!--用来存放item-->
<div id="fileList" class="uploader-list"></div>
<div id="filePicker">选择图片</div>
<i class="fa fa-trash-o trashIco" aria-hidden="true"></i>
</div>
</div>
<div class="form-group tag-list">
<label for="">{{__('lc_content_tag')}}</label>
<select id="selectTags" class="form-control" onchange="selectTagOnChange(this)">
<option value="0" selected>{{__('lc_select_documentTag')}}</option>
{% hottags pageSize=50 %}
{% for item in hottags %}
<option value="{{item._id}}">{{item.name}}</option>
{% endfor %}
</select>
</div>
<div class="form-group wordFile">
<label for="">{{__('lc_upload_word')}}</label>
<input type="file" id="wordFileList" name="wordFileList"
onchange="handleWordFile()"></input>
</div>
</div>
</div>
<div class="clear blank"></div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="">{{__('lc_documentDis')}}</label>
<input type="text" class="form-control" name="discription" ms-duplex="@discription"
placeholder="{{__('lc_pleace_documentDis')}}"
ms-rules="{required:true, minlength:5,maxlength:300 }"
data-required-message="{{__('lc_pleace_documentDis_null_tips')}}"
data-message="{{__('validate_ranglengthandnormal',[__('lc_documentDis'),5,300])}}">
</div>
<div class="form-group">
<label for="">{{__('lc_contentDetails')}}</label>
<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain"></script>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</article>
{% plugin name="ueditor" %}
{% endplugin %}
<script>
var currentCate = [];
var selectTips = "{{__('lc_please_select_childCate')}}";
function fillChildCateOptions(typeId, cb) {
getAjaxData('/api/contentCategory/getCurrentCategoriesById?typeId=' + typeId + '&userId=' + $(
'#userId')
.val(),
function (
result) {
if (result.status == 200 && result.data) {
var childCates = result.data.cates;
var childHtml = '<option value="0" selected>' + selectTips + '</option>';
for (const cateItem of childCates) {
if (cateItem._id != typeId) {
childHtml += '<option value="' + cateItem._id + '">' + cateItem.name + '</option>';
}
}
$('#selectChildCates').html(childHtml);
}
cb && cb();
})
}
function selectTagOnChange(obj) {
postArticelVM.tags = obj.value;
}
function childCateOnChange(obj) {
currentCate.push(obj.value);
if (currentCate.length == 2) {
postArticelVM.categories = currentCate;
}
}
function selectCateOnChange(obj)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
DoraCMS-2.1.8.zip (2000个子文件)
.babelrc 1KB
.babelrc 1KB
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
.browserslistrc 21B
contents.bson 2.75MB
users.bson 245KB
messages.bson 183KB
adminresources.bson 32KB
plugins.bson 25KB
adsitems.bson 12KB
contentcategories.bson 7KB
mailtemplates.bson 5KB
maildeliverys.bson 5KB
contenttags.bson 4KB
admingroups.bson 3KB
ads.bson 2KB
templateitems.bson 2KB
adminusers.bson 1KB
systemconfigs.bson 1KB
contenttemplates.bson 376B
valines.bson 228B
hooks.bson 135B
systemoptionlogs.bson 103B
emailtemps.bson 0B
sessions.bson 0B
sitemessages.bson 0B
systemnotifies.bson 0B
index.css 227KB
bootstrap.css 144KB
swagger-ui.css 139KB
bootstrap.min.css 120KB
ueditor.css 43KB
font-awesome.css 37KB
public.css 36KB
ueditor.min.css 34KB
font-awesome.min.css 30KB
white.css 28KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
video-js.css 21KB
image.css 18KB
video.css 15KB
attachment.css 14KB
layer.css 14KB
video-js.min.css 11KB
shCoreDefault.css 7KB
layer.css 6KB
white.css 5KB
layer.css 5KB
scrawl.css 4KB
codemirror.css 3KB
charts.css 3KB
background.css 2KB
emotion.css 2KB
dialogbase.css 2KB
music.css 2KB
edittable.css 1KB
template.css 1KB
default.min.css 775B
webuploader.css 515B
webuploader.css 515B
help.css 389B
iframe.css 41B
Dockerfile 289B
fontawesome-webfont.eot 162KB
glyphicons-halflings-regular.eot 20KB
iconfont.eot 4KB
vjs.eot 3KB
.eslintignore 72B
.eslintrc 976B
UEditorSnapscreen.exe 508KB
wface.gif 49KB
jxface2.gif 40KB
yface.gif 28KB
bface.gif 27KB
icons.gif 20KB
file-icons.gif 20KB
file-icons.gif 20KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功