From 77c4a3dd69d0baca19a25591cc444244cf351891 Mon Sep 17 00:00:00 2001 From: jon ander Date: Tue, 15 Apr 2025 17:37:55 +0200 Subject: [PATCH] Refactor user page layout; enhance departamento selection styling and update security configuration for user management endpoints --- .../GestionInventario/SecurityConfig.java | 2 +- src/main/resources/static/css/style.css | 10 ++++- src/main/resources/templates/register.html | 40 ------------------- src/main/resources/templates/userPage.html | 18 +++++---- 4 files changed, 20 insertions(+), 50 deletions(-) delete mode 100644 src/main/resources/templates/register.html diff --git a/src/main/java/com/ieslamar/GestionInventario/SecurityConfig.java b/src/main/java/com/ieslamar/GestionInventario/SecurityConfig.java index fc5caae..6bec279 100644 --- a/src/main/java/com/ieslamar/GestionInventario/SecurityConfig.java +++ b/src/main/java/com/ieslamar/GestionInventario/SecurityConfig.java @@ -25,7 +25,7 @@ public class SecurityConfig { .requestMatchers("/css/**", "/js/**", "/images/**").permitAll() // Permitir acceso a CSS, JS e imágenes .requestMatchers("/admin/**").hasRole("ADMIN") .requestMatchers("/user/**").hasAnyRole("USER", "ADMIN") - .requestMatchers("/management", "/user_management", "/register","/user_list","/departamento_list","/userPage").hasRole("ADMIN") + .requestMatchers("/management", "/user_management","/user_list","/departamento_list","/userPage").hasRole("ADMIN") .requestMatchers("/", "/login").permitAll() .anyRequest().authenticated() ) diff --git a/src/main/resources/static/css/style.css b/src/main/resources/static/css/style.css index 629a6a5..f216bd0 100644 --- a/src/main/resources/static/css/style.css +++ b/src/main/resources/static/css/style.css @@ -49,7 +49,15 @@ p { border-radius: 4px; box-sizing: border-box; } - +.input-group select { + width: 100%; + padding: 10px; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; + background-color: #fff; + font-size: 14px; +} button { width: 100%; diff --git a/src/main/resources/templates/register.html b/src/main/resources/templates/register.html deleted file mode 100644 index 9bf8e03..0000000 --- a/src/main/resources/templates/register.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - Registro - - - -

Registro

-
-
- - -
- - -
-
- - -
-
- - -
-
- - -
- - -
- - - -
- - diff --git a/src/main/resources/templates/userPage.html b/src/main/resources/templates/userPage.html index f4cd4e1..1d0c224 100644 --- a/src/main/resources/templates/userPage.html +++ b/src/main/resources/templates/userPage.html @@ -29,14 +29,16 @@ - - +
+ + +