From a28e35797bf9f6d1c46c578b449dfded1e3aee6c Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Thu, 20 Jun 2024 11:09:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/nekontakte/users/api/AdminUserController.java | 6 +++--- .../templates/{user-edit.html => admin/user.html} | 4 ++-- .../resources/templates/{user.html => admin/users.html} | 8 ++++---- nekontakte/src/main/resources/templates/index.html | 5 ++--- 4 files changed, 11 insertions(+), 12 deletions(-) rename nekontakte/src/main/resources/templates/{user-edit.html => admin/user.html} (90%) rename nekontakte/src/main/resources/templates/{user.html => admin/users.html} (86%) diff --git a/nekontakte/src/main/java/com/example/nekontakte/users/api/AdminUserController.java b/nekontakte/src/main/java/com/example/nekontakte/users/api/AdminUserController.java index d67622a..f088490 100644 --- a/nekontakte/src/main/java/com/example/nekontakte/users/api/AdminUserController.java +++ b/nekontakte/src/main/java/com/example/nekontakte/users/api/AdminUserController.java @@ -26,9 +26,9 @@ import java.util.Objects; @RequestMapping(AdminUserController.URL) public class AdminUserController { - public static final String URL = Constants.ADMIN_PREFIX + "/user"; - private static final String USER_VIEW = "user"; - private static final String USER_EDIT_VIEW = "user-edit"; + public static final String URL = Constants.ADMIN_PREFIX + "/users"; + private static final String USER_VIEW = "admin/users"; + private static final String USER_EDIT_VIEW = "admin/user"; private static final String PAGE_ATTRIBUTE = "page"; private static final String USER_ATTRIBUTE = "user"; diff --git a/nekontakte/src/main/resources/templates/user-edit.html b/nekontakte/src/main/resources/templates/admin/user.html similarity index 90% rename from nekontakte/src/main/resources/templates/user-edit.html rename to nekontakte/src/main/resources/templates/admin/user.html index 28b8ebe..71532c4 100644 --- a/nekontakte/src/main/resources/templates/user-edit.html +++ b/nekontakte/src/main/resources/templates/admin/user.html @@ -7,7 +7,7 @@
-
+
@@ -35,7 +35,7 @@
- Отмена + Отмена
diff --git a/nekontakte/src/main/resources/templates/user.html b/nekontakte/src/main/resources/templates/admin/users.html similarity index 86% rename from nekontakte/src/main/resources/templates/user.html rename to nekontakte/src/main/resources/templates/admin/users.html index d381168..ba33476 100644 --- a/nekontakte/src/main/resources/templates/user.html +++ b/nekontakte/src/main/resources/templates/admin/users.html @@ -12,7 +12,7 @@

Пользователи

- Добавить пользователя + Добавить пользователя
@@ -29,7 +29,7 @@
-
+
-
+
diff --git a/nekontakte/src/main/resources/templates/index.html b/nekontakte/src/main/resources/templates/index.html index 122ed26..c428d91 100644 --- a/nekontakte/src/main/resources/templates/index.html +++ b/nekontakte/src/main/resources/templates/index.html @@ -32,8 +32,7 @@