diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f6027fe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "css.styleSheets": ["public/assets/sass/main.css"] +} \ No newline at end of file diff --git a/app/assets/sass/components/_day-listing.scss b/app/assets/sass/components/_day-listing.scss index d5f1121..66d8a22 100644 --- a/app/assets/sass/components/_day-listing.scss +++ b/app/assets/sass/components/_day-listing.scss @@ -1,34 +1,34 @@ - .app-slot-listing { - border: 1px solid #aeb7bd; - background-color: #fff; - padding: 10px; - margin-bottom: 10px; - &.--hold { - background-color: #f0f4f5; - border-style: dashed; - } - &.--merged-start { - border-bottom: 1px dashed #aeb7bd; - margin-bottom: 0 !important; - } - &.--merged-mid { - border-top: 0; - border-bottom: 1px dashed #aeb7bd; - margin-bottom: 0 !important; - min-height: 16px; - } - &.--merged-end { - border-top: 0; - min-height: 16px; - } - } +.app-slot-listing { + border: 1px solid #aeb7bd; + background-color: #fff; + padding: 10px; + margin-bottom: 10px; + &.--hold { + background-color: #f0f4f5; + border-style: dashed; + } + &.--merged-start { + border-bottom: 1px dashed #aeb7bd; + margin-bottom: 0 !important; + } + &.--merged-mid { + border-top: 0; + border-bottom: 1px dashed #aeb7bd; + margin-bottom: 0 !important; + min-height: 16px; + } + &.--merged-end { + border-top: 0; + min-height: 16px; + } +} - .app-slot-row { - display: flex; - flex-wrap: nowrap; - gap: 3rem; - align-items: top; - } - .app-slot-row-controls { - margin-left: auto; - } \ No newline at end of file +.app-slot-row { + display: flex; + flex-wrap: nowrap; + gap: 3rem; + align-items: top; +} +.app-slot-row-controls { + margin-left: auto; +} \ No newline at end of file diff --git a/app/assets/sass/components/_inline-detailed-search.scss b/app/assets/sass/components/_inline-detailed-search.scss new file mode 100644 index 0000000..e7d8b16 --- /dev/null +++ b/app/assets/sass/components/_inline-detailed-search.scss @@ -0,0 +1,31 @@ +.app-inline-detailed-search { + display: flex; + gap: 1rem; + + & > .nhsuk-form-group { + margin-bottom: 0; + + &:nth-child(4) { + width: 210px; + flex-shrink: 0; + } + &:last-child { + align-self: flex-end; + } + } + + & .nhsuk-button { + margin-bottom: 4px; + } + + .nhsuk-date-input__item { + margin-right: 8px; + &:last-child { + margin-right: 0; + } + } + + ::placeholder { + color: #aeb7bd; + } +} \ No newline at end of file diff --git a/app/assets/sass/components/_participant-table.scss b/app/assets/sass/components/_participant-table.scss new file mode 100644 index 0000000..1cb1606 --- /dev/null +++ b/app/assets/sass/components/_participant-table.scss @@ -0,0 +1,17 @@ +.app-participant-table { + + tbody tr:nth-child(odd) { + background-color: rgba(255,255,255,0.5); + } + + td:first-child { + padding-left: 12px; + } + + &.nhsuk-checkboxes--small { + .nhsuk-checkboxes__item { + margin-top: -8px; + } + } + +} \ No newline at end of file diff --git a/app/assets/sass/main.scss b/app/assets/sass/main.scss index 8d1a3a8..54712b2 100755 --- a/app/assets/sass/main.scss +++ b/app/assets/sass/main.scss @@ -7,14 +7,16 @@ @forward "components/calendar-table"; @forward "components/day-listing"; +@forward "components/inline-detailed-search"; @forward "components/secondary-navigation"; +@forward "components/participant-table"; //@forward "components/participant-search"; // Add your custom CSS/Sass styles below. .app-card-editable { display: flex; justify-content: space-between; - align-items: last baseline; + align-items: baseline; } // Batch (for now) view bar charts and legends diff --git a/app/views/clinics/day-slot-view.html b/app/views/clinics/day-slot-view.html index bdad299..c607d7a 100644 --- a/app/views/clinics/day-slot-view.html +++ b/app/views/clinics/day-slot-view.html @@ -42,7 +42,7 @@
- Group -
- + {% set html %} + + {% endset %} + {{ notificationBanner({ + html: html, + type: "success" + }) }} + + {% set html %} + + {% endset %} + {{ notificationBanner({ + html: html + }) }} +| + NHS Number + | ++ Name + | ++ Date of birth + | ++ Actions + | +
|---|---|---|---|
| 628 334 7720 | +Christine Thompson | +17 September 1967 | +Remove | +
| 628 334 7720 | +Christine Thompson | +17 September 1967 | +Remove | +
| 628 334 7720 | +Christine Thompson | +17 September 1967 | +Remove | +
| 628 334 7720 | +Christine Thompson | +17 September 1967 | +Remove | +
You’re about to automatically book:
- Search and results -
-- Next: Group -
+| + | + NHS Number + | ++ Name + | ++ Date of birth + | +
|---|---|---|---|
|
+
+
+
+
+ |
+ 628 334 7720 | +Christine Thompson | +17 September 1967 | +
|
+
+
+
+
+ |
+ 628 334 7720 | +Christine Thompson | +17 September 1967 | +
|
+
+
+
+
+ |
+ 628 334 7720 | +Christine Thompson | +17 September 1967 | +
|
+
+
+
+
+ |
+ 628 334 7720 | +Christine Thompson | +17 September 1967 | +
- Search page -
- -