fix: require all study space fields
This commit is contained in:
@@ -67,10 +67,15 @@
|
||||
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>
|
||||
<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>
|
||||
<Textarea
|
||||
@@ -78,6 +83,7 @@
|
||||
bind:value={studySpaceData.description}
|
||||
placeholder="A quiet, but small study space..."
|
||||
rows={5}
|
||||
required
|
||||
/>
|
||||
|
||||
<label for="address">Add an address:</label>
|
||||
@@ -85,6 +91,7 @@
|
||||
name="address"
|
||||
bind:value={studySpaceData.building_address}
|
||||
placeholder="180 Queen's Gate, London, SW7 5HF"
|
||||
required
|
||||
/>
|
||||
|
||||
<div class="submit">
|
||||
|
||||
Reference in New Issue
Block a user