fix: require all study space fields
This commit is contained in:
@@ -67,10 +67,15 @@
|
|||||||
await uploadStudySpace();
|
await uploadStudySpace();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Image name="study-space-image" minHeight="16rem" bind:files={spaceImg} />
|
<Image name="study-space-image" minHeight="16rem" bind:files={spaceImg} required />
|
||||||
|
|
||||||
<label for="location">Enter the name:</label>
|
<label for="location">Enter the name:</label>
|
||||||
<Text name="location" bind:value={studySpaceData.location} placeholder="Room 123, Floor 1" />
|
<Text
|
||||||
|
name="location"
|
||||||
|
bind:value={studySpaceData.location}
|
||||||
|
placeholder="Room 123, Floor 1"
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
|
||||||
<label for="description">Add a description:</label>
|
<label for="description">Add a description:</label>
|
||||||
<Textarea
|
<Textarea
|
||||||
@@ -78,6 +83,7 @@
|
|||||||
bind:value={studySpaceData.description}
|
bind:value={studySpaceData.description}
|
||||||
placeholder="A quiet, but small study space..."
|
placeholder="A quiet, but small study space..."
|
||||||
rows={5}
|
rows={5}
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<label for="address">Add an address:</label>
|
<label for="address">Add an address:</label>
|
||||||
@@ -85,6 +91,7 @@
|
|||||||
name="address"
|
name="address"
|
||||||
bind:value={studySpaceData.building_address}
|
bind:value={studySpaceData.building_address}
|
||||||
placeholder="180 Queen's Gate, London, SW7 5HF"
|
placeholder="180 Queen's Gate, London, SW7 5HF"
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="submit">
|
<div class="submit">
|
||||||
|
|||||||
Reference in New Issue
Block a user