From cc9a0f6a8418cbf0d64ef7ee1834a80b42a59709 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 6 Sep 2022 15:28:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E6=98=BE=E7=A4=BA=EF=BC=8C=E4=BB=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../elementui/theme-chalk/display.css | 1 + templates/admin/includes/css-part.html | 5 +++ templates/admin/includes/fieldset.html | 31 +++++++++++++++++++ templates/admin/includes/js-part.html | 5 +++ templates/admin/index.html | 3 +- templates/auto_pt/update.html | 9 +++--- 6 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 static/admin/simpleui-x/elementui/theme-chalk/display.css create mode 100644 templates/admin/includes/css-part.html create mode 100644 templates/admin/includes/fieldset.html create mode 100644 templates/admin/includes/js-part.html diff --git a/static/admin/simpleui-x/elementui/theme-chalk/display.css b/static/admin/simpleui-x/elementui/theme-chalk/display.css new file mode 100644 index 0000000..1d8790b --- /dev/null +++ b/static/admin/simpleui-x/elementui/theme-chalk/display.css @@ -0,0 +1 @@ +@media only screen and (max-width:767px){.hidden-xs-only{display:none!important}}@media only screen and (min-width:768px){.hidden-sm-and-up{display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){.hidden-sm-only{display:none!important}}@media only screen and (max-width:991px){.hidden-sm-and-down{display:none!important}}@media only screen and (min-width:992px){.hidden-md-and-up{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.hidden-md-only{display:none!important}}@media only screen and (max-width:1199px){.hidden-md-and-down{display:none!important}}@media only screen and (min-width:1200px){.hidden-lg-and-up{display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){.hidden-lg-only{display:none!important}}@media only screen and (max-width:1919px){.hidden-lg-and-down{display:none!important}}@media only screen and (min-width:1920px){.hidden-xl-only{display:none!important}} \ No newline at end of file diff --git a/templates/admin/includes/css-part.html b/templates/admin/includes/css-part.html new file mode 100644 index 0000000..79c329d --- /dev/null +++ b/templates/admin/includes/css-part.html @@ -0,0 +1,5 @@ +{% load static simpletags %} + + + + \ No newline at end of file diff --git a/templates/admin/includes/fieldset.html b/templates/admin/includes/fieldset.html new file mode 100644 index 0000000..f2123c3 --- /dev/null +++ b/templates/admin/includes/fieldset.html @@ -0,0 +1,31 @@ +{% load simpletags %} +
+ {% if fieldset.name %}

{{ fieldset.name }}

{% endif %} + {% if fieldset.description %} +
{{ fieldset.description|safe }}
+ {% endif %} + {% for line in fieldset %} +
+ {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} + {% for field in line %} + + {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} + {% if field.is_checkbox %} + {{ field.field }}{{ field.label_tag }} + {% else %} + {{ field.label_tag }} + {% if field.is_readonly %} +
{{ field.contents }}
+ {% else %} + {{ field.field|get_value }} + {% endif %} + {% endif %} + {% if field.field.help_text %} +
{{ field.field.help_text|safe }}
+ {% endif %} +
+ {% endfor %} + + {% endfor %} + +
\ No newline at end of file diff --git a/templates/admin/includes/js-part.html b/templates/admin/includes/js-part.html new file mode 100644 index 0000000..7c4e4dc --- /dev/null +++ b/templates/admin/includes/js-part.html @@ -0,0 +1,5 @@ +{% load static simpletags %} + + +{##} + \ No newline at end of file diff --git a/templates/admin/index.html b/templates/admin/index.html index 59535ce..08fbf20 100755 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -24,6 +24,7 @@ {% block css %} {% include 'admin/includes/css-part.html' %} + {% endblock %} {% block head %} @@ -130,7 +131,7 @@ {% block header %} - +
+{##}
- + 更新提示 - +
- +
本地日志 @@ -78,7 +79,7 @@ - +
更新日志