From e18aeba7dd2ca2abd9be5bae4ba3ecba1878e767 Mon Sep 17 00:00:00 2001 From: JianWeie Date: Wed, 1 Sep 2021 09:49:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CrudTemplete/View/Create.tpl | 13 ++--- .../CrudTemplete/View/Edit.tpl | 13 ++--- .../CrudTemplete/View/Index.tpl | 49 +++++++++++-------- 3 files changed, 37 insertions(+), 38 deletions(-) diff --git a/CoreCms.Net.CodeGenerator/CrudTemplete/View/Create.tpl b/CoreCms.Net.CodeGenerator/CrudTemplete/View/Create.tpl index f4d2b15..8116477 100644 --- a/CoreCms.Net.CodeGenerator/CrudTemplete/View/Create.tpl +++ b/CoreCms.Net.CodeGenerator/CrudTemplete/View/Create.tpl @@ -3,17 +3,12 @@ {% for field in ModelFields %}{% if field.DbColumnName contains 'Image' or field.DbColumnName contains 'image' or field.DbColumnName contains 'thumbnail' or field.DbColumnName contains 'Thumbnail' %}
-
+
-
-
- -
- -

-
-
+
+ +
{% elsif field.DataType == 'nvarchar' %}
diff --git a/CoreCms.Net.CodeGenerator/CrudTemplete/View/Edit.tpl b/CoreCms.Net.CodeGenerator/CrudTemplete/View/Edit.tpl index f4ff65d..9da24b3 100644 --- a/CoreCms.Net.CodeGenerator/CrudTemplete/View/Edit.tpl +++ b/CoreCms.Net.CodeGenerator/CrudTemplete/View/Edit.tpl @@ -3,17 +3,12 @@ {% for field in ModelFields %}{% if field.IsIdentity == true and field.IsPrimarykey == true %}{% endif %}{% if field.DbColumnName contains 'Image' or field.DbColumnName contains 'image' or field.DbColumnName contains 'thumbnail' or field.DbColumnName contains 'Thumbnail' %}
-
+
-
-
- -
- -

-
-
+
+ +
{% elsif field.DataType == 'nvarchar' %}
diff --git a/CoreCms.Net.CodeGenerator/CrudTemplete/View/Index.tpl b/CoreCms.Net.CodeGenerator/CrudTemplete/View/Index.tpl index cb01c12..1cb01af 100644 --- a/CoreCms.Net.CodeGenerator/CrudTemplete/View/Index.tpl +++ b/CoreCms.Net.CodeGenerator/CrudTemplete/View/Index.tpl @@ -11,7 +11,14 @@ /* 重写样式 */ +
+
+
+ + -
-
-
- +