From c555914c546f962c4f18f4d636bc1a16ee4078da Mon Sep 17 00:00:00 2001 From: SvyatoslavZL Date: Fri, 23 Feb 2024 13:24:06 +0300 Subject: [PATCH 1/2] The project is completed --- src/main/webapp/css/my.css | 4 + src/main/webapp/html/my.html | 320 ++++++++++++++++++++++++++++++++++- 2 files changed, 322 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/css/my.css b/src/main/webapp/css/my.css index e69de29b..30bb76bf 100644 --- a/src/main/webapp/css/my.css +++ b/src/main/webapp/css/my.css @@ -0,0 +1,4 @@ +th, td { + border: 1px solid black; + padding: 3px; +} \ No newline at end of file diff --git a/src/main/webapp/html/my.html b/src/main/webapp/html/my.html index eb66ac55..003b68cd 100644 --- a/src/main/webapp/html/my.html +++ b/src/main/webapp/html/my.html @@ -1,11 +1,327 @@ - + RPG - +

RPG admin panel

+

Accounts list:

+ + + + + + + + + + + + + + + + +
#NameTitleRaceProfessionLevelBirthdayBannedEditDelete
+ +
Pages:
+ +
+

Create new account:

+ + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + + + + \ No newline at end of file From 57d4b0f881c114695041d5dd91c5ef7a36749163 Mon Sep 17 00:00:00 2001 From: SvyatoslavZL Date: Sat, 24 Feb 2024 10:12:41 +0300 Subject: [PATCH 2/2] Added required fields checking when creating a new account --- src/main/webapp/html/my.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/html/my.html b/src/main/webapp/html/my.html index 003b68cd..e2534fbb 100644 --- a/src/main/webapp/html/my.html +++ b/src/main/webapp/html/my.html @@ -36,7 +36,7 @@

Accounts list:


Create new account:

- +
@@ -67,12 +67,12 @@

Create new account:


- - + +
- +
@@ -247,6 +247,10 @@

Create new account:

showAccountsList(getCurrentPage("")); } }); + + if (!nameValue || !titleValue || !raceValue || !professionValue || !levelValue || !birthdayValue) { + alert('All fields are required'); + } } function saveAcc(id) {