From 512d047271ce382f182b728cea6a132749fe34bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E8=89=B2=E6=9C=A8=E5=8F=B6=E6=9E=AB?= <753517165@qq.com> Date: Tue, 19 Jan 2021 20:56:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20templates/admins/change=5Fpwd.html?= =?UTF-8?q?.=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E7=89=88=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E9=97=AE=E9=A2=98"Macro=20namespace=20`form`?= =?UTF-8?q?=20was=20not=20found=20in=20template=E9=A1=B5=E9=9D=A2=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98=20```=20Error=20{=20kind:=20Msg("Fa?= =?UTF-8?q?iled=20to=20render=20\'admins/change=5Fpwd.html\'"),=20source:?= =?UTF-8?q?=20Some(Error=20{=20kind:=20Msg("Macro=20namespace=20`form`=20w?= =?UTF-8?q?as=20not=20found=20in=20template=20`admins/change=5Fpwd.html`.?= =?UTF-8?q?=20Have=20you=20maybe=20forgotten=20to=20import=20it,=20or=20mi?= =?UTF-8?q?sspelled=20it=3F"),=20source:=20None=20})=20}=20```?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/admins/change_pwd.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/admins/change_pwd.html b/templates/admins/change_pwd.html index 1d9014e..010ce63 100644 --- a/templates/admins/change_pwd.html +++ b/templates/admins/change_pwd.html @@ -1,4 +1,5 @@ {% extends "_layouts/default.html" -%} +{% import "_macros/form.html" as form -%} {% block body %}
-- Gitee From 7c78da02c1c4528a394a4251bd13f68f1a9c9ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E8=89=B2=E6=9C=A8=E5=8F=B6=E6=9E=AB?= <753517165@qq.com> Date: Tue, 19 Jan 2021 20:57:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=20templates/admins/change=5Fpwd.html?= =?UTF-8?q?.=20=E5=9C=A8templates/admins/change=5Fpwd.html=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0{%=20import=20"=5Fmacros/form.html"=20as=20form=20-%}?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8Dform=E6=B2=A1=E6=9C=89=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=88=96=E5=AE=9A=E4=B9=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/admins/change_pwd.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/admins/change_pwd.html b/templates/admins/change_pwd.html index 010ce63..eed66fe 100644 --- a/templates/admins/change_pwd.html +++ b/templates/admins/change_pwd.html @@ -1,4 +1,5 @@ {% extends "_layouts/default.html" -%} + {% import "_macros/form.html" as form -%} {% block body %}
-- Gitee