From d05ea66f4bbcf0cc5c8908f3435c68de1b070fa1 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sat, 12 Oct 2024 02:52:22 +0300 Subject: Начальная версия MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/tpl/register.templ | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkg/tpl/register.templ (limited to 'pkg/tpl/register.templ') diff --git a/pkg/tpl/register.templ b/pkg/tpl/register.templ new file mode 100644 index 0000000..c7c7210 --- /dev/null +++ b/pkg/tpl/register.templ @@ -0,0 +1,63 @@ +package tpl + +templ Register(form *RegisterForm) { + @Layout() { +
+
+
+

Регистрация

+

Регистрация в системе

+
+
+ if form.Message != "" { +
+
Ошибка
+ { form.Message } +
+ } + + + + +
+
+
+
+ } +} + +type RegisterForm struct { + Message string + Username string `form:"username"` + Email string `form:"email"` + Password string `form:"password"` +} -- cgit v1.2.3