From 7b2eb02cd40706d3bd6fb9c5677589abcf71ae45 Mon Sep 17 00:00:00 2001 From: Francesco Date: Fri, 6 Oct 2023 14:31:55 +0200 Subject: [PATCH] Visual indicator of enabled/disabled operations in the Schema page --- src/main/resources/static/css/dbadmin.css | 17 ++++++++++++- .../resources/templates/model/schema.html | 24 +++++++++++++++---- 2 files changed, 36 insertions(+), 5 deletions(-) diff --git a/src/main/resources/static/css/dbadmin.css b/src/main/resources/static/css/dbadmin.css index ae4d702..ef79218 100644 --- a/src/main/resources/static/css/dbadmin.css +++ b/src/main/resources/static/css/dbadmin.css @@ -39,6 +39,17 @@ form.delete-form button.disable .bi { color: #9298A0 !important; } +.badge.bg-enabled { + background-color: green; + color: white; +} + +.badge.bg-disabled { + background-color: #999; + color: white; +} + + .null-label { background-color: #EEE; border-radius: 5px; @@ -162,7 +173,7 @@ td.table-checkbox, th.table-checkbox { .noselect { - cursor: pointer; -webkit-user-select: none; + -webkit-user-select: none; -ms-user-select: none; user-select: none; } @@ -215,6 +226,10 @@ ul.categorical-select button { width: 50%; } +.operations-badges { + font-size: 1.2rem; +} + /** * Images diff --git a/src/main/resources/templates/model/schema.html b/src/main/resources/templates/model/schema.html index 2578413..7508fb1 100644 --- a/src/main/resources/templates/model/schema.html +++ b/src/main/resources/templates/model/schema.html @@ -33,16 +33,32 @@
-

+

[[ ${schema.getJavaClass().getSimpleName()} ]] [[ ${schema.getTableName()} ]] - +

- +
+ + Create + + + Edit + + + Delete + +
@@ -67,7 +83,7 @@
-
+

Errors