Skip to content

Commit

Permalink
Merge pull request #1553 from ItzNotABug/fix-terms-checkbox
Browse files Browse the repository at this point in the history
Fix terms checkbox and gap
  • Loading branch information
ernstmul authored Jan 2, 2025
2 parents cc89194 + 1168c49 commit 97da239
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 30 deletions.
4 changes: 2 additions & 2 deletions src/lib/elements/forms/inputChoice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
</script>

<label class="choice-item" for={id}>
<div class="choice-item">
<Layout.Stack direction="row" alignItems="flex-start">
{#if type === 'switchbox'}
<Selector.Switch
Expand Down Expand Up @@ -80,7 +80,7 @@
{/if}
</div>
</Layout.Stack>
</label>
</div>
{#if error}
<Helper type="warning">{error}</Helper>
{/if}
58 changes: 30 additions & 28 deletions src/routes/(public)/invite/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,35 +61,37 @@
<Button href={`${base}/register`}>Sign up to Appwrite</Button>
</div>
{:else}
<p class="text">You have been invited to join an organization on Appwrite</p>
<Form onSubmit={acceptInvite}>
<FormList>
<InputChoice
required
bind:value={terms}
id="terms"
label="terms"
showLabel={false}>
By accepting the invitation, you agree to the <a
class="link"
href="https://appwrite.io/terms"
target="_blank"
rel="noopener noreferrer">Terms and Conditions</a>
and
<a
class="link"
href="https://appwrite.io/privacy"
target="_blank"
rel="noopener noreferrer">
Privacy Policy</a
>.</InputChoice>
<div class="u-flex-vertical u-gap-16">
<p class="text">You have been invited to join an organization on Appwrite</p>
<Form onSubmit={acceptInvite}>
<FormList>
<InputChoice
required
bind:value={terms}
id="terms"
label="terms"
showLabel={false}>
By accepting the invitation, you agree to the <a
class="link"
href="https://appwrite.io/terms"
target="_blank"
rel="noopener noreferrer">Terms and Conditions</a>
and
<a
class="link"
href="https://appwrite.io/privacy"
target="_blank"
rel="noopener noreferrer">
Privacy Policy</a
>.</InputChoice>

<div class="u-flex u-main-end u-gap-12">
<Button secondary href={`${base}/login`}>Cancel</Button>
<Button submit>Accept</Button>
</div>
</FormList>
</Form>
<div class="u-flex u-main-end u-gap-12">
<Button secondary href={`${base}/login`}>Cancel</Button>
<Button submit disabled={!terms}>Accept</Button>
</div>
</FormList>
</Form>
</div>
{/if}
</svelte:fragment>
</Unauthenticated>

0 comments on commit 97da239

Please sign in to comment.