Skip to content

Commit

Permalink
Merge pull request #38 from mad-lab-fau/dev
Browse files Browse the repository at this point in the history
added required tag to columns and rows input and added both inputs to…
  • Loading branch information
roschro-fau authored May 1, 2024
2 parents 8a2b47f + f76809d commit 884c7fc
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/lib/components/preparation/QrCodeForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}
function isValid() {
let idList = ["mail"];
let idList = ["mail", "columns", "rows"];
if (uniformSalivaDistances) {
idList = [...idList, "distances"];
} else {
Expand Down Expand Up @@ -248,11 +248,26 @@
<div class="flex">
<label class="label w-1/6">
<span>Number of columns</span>
<input class="input" type="number" min="1" max="5" bind:value={$qrCodeProps.numColumns} />
<input
bind:value={$qrCodeProps.numColumns}
id="columns"
class="input"
type="number"
min="1" max="5"
required
/>
</label>
<label class="label w-1/6 mx-6">
<span>Number of rows</span>
<input class="input" type="number" min="1" max="{$qrCodeProps.includeParticipantId ? 5 : $qrCodeProps.useLetterFormat ? 6 : 7}" bind:value={$qrCodeProps.numRows} />
<input
bind:value={$qrCodeProps.numRows}
id="rows"
class="input"
type="number"
min="1"
max="{$qrCodeProps.includeParticipantId ? 5 : $qrCodeProps.useLetterFormat ? 6 : 7}"
required
/>
</label>
</div>
{/if}
Expand Down

0 comments on commit 884c7fc

Please sign in to comment.