Skip to content

Commit

Permalink
removed the older addForm divs that lack styling - #15
Browse files Browse the repository at this point in the history
  • Loading branch information
SomewhatMay committed Mar 14, 2024
1 parent 23c13c3 commit 630bf1b
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions src/lib/components/AddForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -248,63 +248,4 @@
on:click={onFormSubmit}
>Create</button>
</div>

<!-- The following divs have all been replaced by a newer design -->
<div class="hidden">
<div class='flex-col hidden'>
<span class='text-text'>Form Type</span>
<select bind:value={formType} class="rounded-md bg-background text-text border-2">
{#each formTypes as formType}
<option value={formType}>{formType.name}</option>
{/each}
</select>
{#if formType == null}
<div class="text-error">Need to choose a form type</div>
{/if}
</div>

<div class="hidden">
{#if formType.name != "Pit Scouting"}
<span class="text-text">Match</span>
{#if $manualSubmission}
<input type="number" bind:value={match} class="rounded-md bg-background text-text border-2">
{:else}
<!--Non-manual stuff below-->
<select bind:value={match} class="rounded-md bg-background text-text border-2">
{#each Object.values($matches) as match}
<option value={match.number}>{match.number}</option>
{/each}
</select>
{/if}
{#if match == "" || match == null}
<div class="text-error">Need to choose a match</div>
{/if}
{/if}
</div>

<div class="hidden">
<span class="text-text">Team</span>
{#if $manualSubmission}
<input type="number" bind:value={team} class="rounded-md bg-background text-text border-2">
{:else}
<!--Non-manual stuff below-->
<select bind:value={team} class="rounded-md bg-background text-text border-2">
{#each matchTeams as team}
<option value={team.number}>{team.number}</option>
{/each}
</select>
{/if}
{#if team == "" || team == null}
<div class="text-error">Need to choose a team</div>
{/if}
</div>

<div class="hidden">
<span class="text-text">Scout name</span>
<input type="text" bind:value={$scout} class="rounded-md bg-background text-text border-2">
{#if $scout == ""}
<div class="text-error">Scout needs a name</div>
{/if}
</div>
</div>
</div>

0 comments on commit 630bf1b

Please sign in to comment.