From 39d5e8abff4077a9a34076a7b48108929156f03d Mon Sep 17 00:00:00 2001 From: tianbj <1309855586@qq.com> Date: Fri, 27 Dec 2019 17:15:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../manager/cms/article/article_form.ftl | 231 ----- .../manager/cms/article/article_main.ftl | 163 --- .../WEB-INF/manager/cms/article/index.ftl | 57 - .../WEB-INF/manager/cms/category/index.ftl | 10 +- .../manager/cms/column/shiro-button.ftl | 2 - .../manager/cms/column/shiro-update.ftl | 7 - .../WEB-INF/manager/cms/content/index.ftl | 2 +- .../static/plugins/clipboard/clipboard.js | 978 ++++++++++++++++++ 8 files changed, 988 insertions(+), 462 deletions(-) delete mode 100644 src/main/webapp/WEB-INF/manager/cms/article/article_form.ftl delete mode 100644 src/main/webapp/WEB-INF/manager/cms/article/article_main.ftl delete mode 100644 src/main/webapp/WEB-INF/manager/cms/article/index.ftl delete mode 100644 src/main/webapp/WEB-INF/manager/cms/column/shiro-button.ftl delete mode 100644 src/main/webapp/WEB-INF/manager/cms/column/shiro-update.ftl create mode 100644 src/main/webapp/static/plugins/clipboard/clipboard.js diff --git a/src/main/webapp/WEB-INF/manager/cms/article/article_form.ftl b/src/main/webapp/WEB-INF/manager/cms/article/article_form.ftl deleted file mode 100644 index ff73b365..00000000 --- a/src/main/webapp/WEB-INF/manager/cms/article/article_form.ftl +++ /dev/null @@ -1,231 +0,0 @@ -<@ms.html5> - <@ms.nav title="文章管理" back=true> - <#if article.basicId == 0> - <@ms.saveButton id="saveUpdate" value="保存"/> - <#else> - <@ms.updateButton id="saveUpdate" value="更新"/> - #if> - @ms.nav> - <@ms.panel> - <@ms.form isvalidation=true name="articleForm" action="${managerPath}/cms/article/${action}.do"> - <@ms.text name="basicTitle" colSm="2" width="400" label="文章标题" title="文章标题" size="5" placeholder="请输入文章标题" value="${article.basicTitle?default('')}" validation={"maxlength":"300","required":"true", "data-bv-notempty-message":"文章标题不能为空","data-bv-stringlength-message":"标题在300个字符以内!", "data-bv-notempty-message":"必填项目"}/> - <@ms.text name="basicSort" colSm="2" width="200" label="自定义顺序" title="自定义顺序" size="5" placeholder="请输入文章顺序" value="${article.basicSort?c?default(0)}" validation={"data-bv-between":"true","required":"true", "data-bv-between-message":"自定义顺序必须大于0","data-bv-between-min":"0", "data-bv-between-max":"99999999","data-bv-notempty-message":"自定义顺序不能为空"}/> - <#if articleType?has_content> - <@ms.checkboxlist colSm="2" name="checkbox" label="文章属性" list=articleType listKey="dictValue" listValue="dictLabel" /> - #if> - <@ms.radio name="basicDisplay" - list=[{"id":"0","value":"是"},{"id":"1","value":"否"}] value="${article.basicDisplay?c?default()}" - listKey="id" listValue="value" label="是否显示" help="选择否后前端将不显示,需要重新生成才有效果" - /> - <@ms.formRow colSm="2" label="文章缩略图" width="400" > - <@ms.uploadImg path="${websiteId}/article" inputName="basicThumbnails" size="1" msg="提示:文章缩略图,支持jpg格式" imgs="${article.basicThumbnails?default('')}" /> - @ms.formRow> - <@ms.text name="articleSource" colSm="2" width="200" label="文章来源" title="文章来源" size="5" placeholder="请输入文章来源" value="${article.articleSource?default('')}" validation={"maxlength":"300", "data-bv-stringlength-message":"文章来源在300个字符以内!"} /> - <@ms.text name="articleAuthor" colSm="2" width="200" label="文章作者" title="文章作者" size="5" placeholder="请输入文章作者" value="${article.articleAuthor?default('')}" validation={"maxlength":"12", "data-bv-stringlength-message":"文章作者在12个字符以内!"} /> - <#if !isEditCategory> - <@ms.formRow colSm="2" label="所属栏目" width="300"> - <#if categoryTitle==""> - <@ms.treeInput treeId="inputTree" json="${listColumn?default('')}" jsonId="categoryId" jsonPid="categoryCategoryId" jsonName="categoryTitle" inputName="basicCategoryId" inputValue="${categoryId}" buttonText="选择栏目" clickZtreeId="clickZtreeId(event,treeId,treeNode);" expandAll="true" showIcon="true"/> - <#else> - <@ms.treeInput treeId="inputTree" json="${listColumn?default('')}" jsonId="categoryId" jsonPid="categoryCategoryId" jsonName="categoryTitle" inputName="basicCategoryId" inputValue="${categoryId}" buttonText="${(categoryTitle)!}" clickZtreeId="clickZtreeId(event,treeId,treeNode);" expandAll="true" showIcon="true"/> - #if> - @ms.formRow> - #if> - <@ms.hidden id="basicDateTime" name="basicDateTime" value=""/> - <@ms.date id="articleDateTime" name="articleDateTime" time=true label="发布时间" single=true readonly="readonly" width="300" value="${(article.basicDateTime?default(.now))?string('yyyy-MM-dd HH:mm')}" validation={"required":"true", "data-bv-notempty-message":"必填项目"} placeholder="点击该框选择时间段" /> - <@ms.textarea colSm="2" name="basicDescription" label="描述" wrap="Soft" rows="4" size="" value="${article.basicDescription?default('')}" placeholder="请输入对该文章的简短描述,以便用户查看文章简略" validation={"maxlength":"400","data-bv-stringlength-message":"文章描述在400个字符以内!"}/> - <@ms.textarea colSm="2" name="articleKeyword" label="关键字" wrap="Soft" rows="4" size="" placeholder="请输入文章关键字" value="${article.articleKeyword?default('')}" validation={"maxlength":"155", "data-bv-stringlength-message":"文章作者在155个字符以内!"}/> - -