From 7be91444a867774362eb5b57bdd246fb50189e7d Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 6 Jan 2026 16:34:12 +0100 Subject: feat: block further initial submissions (#232) --- .../db/migration/mariadb/V0_5_0__SubmissionType.sql | 2 ++ .../db/migration/postgresql/V0_5_0__SubmissionType.sql | 2 ++ src/main/resources/static/style.css | 17 ++++++++++++----- src/main/resources/templates/fragments.html | 14 ++++++++++++++ src/main/resources/templates/index.html | 11 ++++++++++- 5 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 src/main/resources/db/migration/mariadb/V0_5_0__SubmissionType.sql create mode 100644 src/main/resources/db/migration/postgresql/V0_5_0__SubmissionType.sql (limited to 'src/main/resources') diff --git a/src/main/resources/db/migration/mariadb/V0_5_0__SubmissionType.sql b/src/main/resources/db/migration/mariadb/V0_5_0__SubmissionType.sql new file mode 100644 index 0000000..79f89d8 --- /dev/null +++ b/src/main/resources/db/migration/mariadb/V0_5_0__SubmissionType.sql @@ -0,0 +1,2 @@ +ALTER TABLE request ADD COLUMN submission_type varchar(16) not null default 'UNKNOWN'; +ALTER TABLE request ADD COLUMN submission_accepted boolean not null default false; \ No newline at end of file diff --git a/src/main/resources/db/migration/postgresql/V0_5_0__SubmissionType.sql b/src/main/resources/db/migration/postgresql/V0_5_0__SubmissionType.sql new file mode 100644 index 0000000..79f89d8 --- /dev/null +++ b/src/main/resources/db/migration/postgresql/V0_5_0__SubmissionType.sql @@ -0,0 +1,2 @@ +ALTER TABLE request ADD COLUMN submission_type varchar(16) not null default 'UNKNOWN'; +ALTER TABLE request ADD COLUMN submission_accepted boolean not null default false; \ No newline at end of file diff --git a/src/main/resources/static/style.css b/src/main/resources/static/style.css index 83d98c3..33e5d20 100644 --- a/src/main/resources/static/style.css +++ b/src/main/resources/static/style.css @@ -360,7 +360,7 @@ form.samplecode-input input:focus-visible { } .border { - padding: 1.5rem; + padding: 1rem; border: 1px solid var(--table-border); border-radius: .5rem; background: white; @@ -382,7 +382,7 @@ table { } table.config-table td:first-child { - width: 24rem; + width: 26rem; min-width: fit-content; } @@ -451,10 +451,13 @@ th { } td { - font-family: monospace; border-bottom: 1px solid var(--bg-gray-op); } +td, td > a { + font-family: monospace; +} + tr:last-of-type > td { border-bottom: none; } @@ -465,10 +468,9 @@ td > small { } td.patient-id { - width: 32rem; + min-width: 20rem; text-overflow: ellipsis; overflow: hidden; - display: block; } td.bg-blue, th.bg-blue, @@ -571,6 +573,11 @@ td.clipboard.clipped { color: white; } +.btn.btn-green { + background: var(--bg-green); + color: white; +} + .btn.btn-blue { background: var(--bg-blue); color: white; diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html index f3d95c9..8ecd507 100644 --- a/src/main/resources/templates/fragments.html +++ b/src/main/resources/templates/fragments.html @@ -35,6 +35,20 @@ + + + +