Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add location address optional #188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions src/routes/add-location/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@
disabled={!captchaSecret || !mapLoaded}
type="text"
name="name"
id="name"
placeholder="Satoshi's Comics"
required
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
Expand All @@ -407,18 +408,13 @@
</div>

<div>
<label for="address" class="mb-2 block font-semibold"
>Address <InfoTooltip
tooltip="All locations are required to have a physical
address. You must be able to visit the location in person and pay with bitcoin. Service industries are not map-able."
/></label
>
<label for="address" class="mb-2 block font-semibold">Address</label>
<input
disabled={!captchaSecret || !mapLoaded}
type="text"
name="address"
id="address"
placeholder="2100 Freedom Drive..."
required
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={address}
/>
Expand Down Expand Up @@ -474,6 +470,7 @@
required
type="text"
name="category"
id="category"
placeholder="Restaurant etc."
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={category}
Expand Down Expand Up @@ -566,6 +563,7 @@
disabled={!captchaSecret || !mapLoaded}
type="url"
name="website"
id="website"
placeholder="https://bitcoin.org"
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={website}
Expand All @@ -580,6 +578,7 @@
disabled={!captchaSecret || !mapLoaded}
type="tel"
name="phone"
id="phone"
placeholder="Number"
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={phone}
Expand All @@ -594,6 +593,7 @@
disabled={!captchaSecret || !mapLoaded}
type="text"
name="hours"
id="hours"
placeholder="Mo-Fr 08:30-20:00"
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={hours}
Expand All @@ -609,6 +609,7 @@
disabled={!captchaSecret || !mapLoaded}
type="text"
name="twitter"
id="twitter"
placeholder="Merchant"
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={twitterMerchant}
Expand All @@ -631,6 +632,7 @@
<textarea
disabled={!captchaSecret || !mapLoaded}
name="notes"
id="notes"
placeholder="Any other relevant details?"
rows="3"
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
Expand All @@ -643,6 +645,7 @@
<select
disabled={!captchaSecret || !mapLoaded}
name="source"
id="source"
required
class="w-full rounded-2xl border-2 border-input bg-white px-2 py-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:value={source}
Expand Down Expand Up @@ -686,6 +689,7 @@
required
type="email"
name="contact"
id="contact"
placeholder="[email protected]"
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={contact}
Expand Down Expand Up @@ -715,6 +719,7 @@
required
type="text"
name="captcha"
id="captcha"
placeholder="Please enter the captcha text."
class="w-full rounded-2xl border-2 border-input p-3 transition-all focus:outline-link dark:bg-white/[0.15]"
bind:this={captchaInput}
Expand Down