Skip to content

Commit

Permalink
Add values to QR-code for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
Remco van 't Veer committed Jun 20, 2024
1 parent 088ac37 commit 534cf55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/public/assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ legend {

.field :is(input, textarea, select) {
width: 30rem;
max-width: calc(100vw - 5rem);
max-width: calc(100vw - 7rem);
font-family: inherit;
font-size: 1rem;
padding: .5rem;
Expand Down
18 changes: 17 additions & 1 deletion src/dil_demo/tms/web.clj
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,23 @@

(defn chauffeur-trip [trip]
[:div.trip
(qr-code-dil-demo trip)
[:section
(qr-code-dil-demo trip)]

(let [carrier-eori-list (otm/trip-carrier-eori-list trip)
driver-id-digits (otm/trip-driver-id-digits trip)
license-plate (otm/trip-license-plate trip)]
[:fieldset
(w/field {:label "Vervoerder EORI's",
:value (string/join "," carrier-eori-list),
:readonly true})
(w/field {:label "Rijbewijs",
:value driver-id-digits
:readonly true})
(w/field {:label "Kenteken",
:value license-plate
:readonly true})])

[:div.actions
[:a.button {:href "../chauffeur/"} "Terug naar overzicht"]]])

Expand Down

0 comments on commit 534cf55

Please sign in to comment.