From bdd9a7308951b3640e7a7d60297bca92b040d199 Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Wed, 6 Nov 2019 12:20:17 +0800 Subject: [PATCH] Add im channel views --- contact-center/app/.gitignore | 6 +- .../templates/admin/channel/im/add.html | 49 +++++++++ .../templates/admin/channel/im/edit.html | 50 ++++++++++ .../templates/admin/channel/im/index.html | 99 +++++++++++++++++++ 4 files changed, 202 insertions(+), 2 deletions(-) create mode 100644 contact-center/app/src/main/resources/templates/admin/channel/im/add.html create mode 100644 contact-center/app/src/main/resources/templates/admin/channel/im/edit.html create mode 100644 contact-center/app/src/main/resources/templates/admin/channel/im/index.html diff --git a/contact-center/app/.gitignore b/contact-center/app/.gitignore index 0fe12476..c5082ee2 100644 --- a/contact-center/app/.gitignore +++ b/contact-center/app/.gitignore @@ -1,8 +1,10 @@ # ignore plugins source code src/main/java/com/chatopera/cc/plugins/ -# ignore views within plugins -!src/main/resources/templates/admin/channel/im/ +# ignore channel views within plugins src/main/resources/templates/admin/channel/* +!src/main/resources/templates/admin/channel/im + +# ignore app views within plugins src/main/resources/templates/apps/callout src/main/resources/templates/apps/chatbot diff --git a/contact-center/app/src/main/resources/templates/admin/channel/im/add.html b/contact-center/app/src/main/resources/templates/admin/channel/im/add.html new file mode 100644 index 00000000..70e7b8d4 --- /dev/null +++ b/contact-center/app/src/main/resources/templates/admin/channel/im/add.html @@ -0,0 +1,49 @@ +
+
+
+
+ +
+ +
+
+ * + 网站名称 +
+
+
+
+
+ +
+ +
+
+ * +
+
+
+ +
+ 网站信息填写后会根据网站的URL生成网站标识,URL中不包含http或https +
+ +
+
+ + +
+
+
+
+ \ No newline at end of file diff --git a/contact-center/app/src/main/resources/templates/admin/channel/im/edit.html b/contact-center/app/src/main/resources/templates/admin/channel/im/edit.html new file mode 100644 index 00000000..d4a3eaaf --- /dev/null +++ b/contact-center/app/src/main/resources/templates/admin/channel/im/edit.html @@ -0,0 +1,50 @@ +
+
+ +
+
+ +
+ +
+
+ * + 网站名称 +
+
+
+
+
+ +
+ +
+
+ * +
+
+
+ +
+ 网站信息填写后会根据网站的URL生成网站标识,URL中不包含http或https +
+ +
+
+ + +
+
+
+
+ \ No newline at end of file diff --git a/contact-center/app/src/main/resources/templates/admin/channel/im/index.html b/contact-center/app/src/main/resources/templates/admin/channel/im/index.html new file mode 100644 index 00000000..165516bd --- /dev/null +++ b/contact-center/app/src/main/resources/templates/admin/channel/im/index.html @@ -0,0 +1,99 @@ +
+
+

+ 网站列表<#if snsAccountList??>(${snsAccountList.totalElements!''}) + + + +

+
+
+ + + + + + + + + + + + <#if snsAccountList?? && snsAccountList.content??> + <#list snsAccountList.content as snsAccount> + + + + + + + + + + +
名称网站地址网站标识创建时间操作
+ ${snsAccount.name!''} + ${snsAccount.baseURL!''}${snsAccount.snsid!''}${snsAccount.createtime?string("yyyy-MM-dd HH:mm:ss")} + + + 接入 + + + + 编辑 + + <#if !(snsAccount.usertype?? && snsAccount.usertype == "0") && snsAccount.datastatus != true > + data-confirm="请输入二次安全验证密码" title="删除网站需要进行二次密码验证,请确认是否删除?" > + + 删除 + + +
+
+
+
+
+
+
+
+ \ No newline at end of file