diff --git a/src/lib/elements/forms/inputTags.svelte b/src/lib/elements/forms/inputTags.svelte index bca3b7489..fa2b445fa 100644 --- a/src/lib/elements/forms/inputTags.svelte +++ b/src/lib/elements/forms/inputTags.svelte @@ -7,6 +7,7 @@ export let placeholder = ''; export let disabled = false; export let helper: string | undefined = undefined; + export let pattern: string | undefined = undefined; let value = ''; let error: string; @@ -33,7 +34,8 @@ {id} {placeholder} {disabled} + {pattern} bind:value={tags} helper={error || helper} on:invalid={handleInvalid} - state={error ? 'error' : 'default'} /> + state={error ? 'error' : 'default'}> diff --git a/src/routes/(console)/apply-credit/+page.svelte b/src/routes/(console)/apply-credit/+page.svelte index 7b9b817b1..ee354a553 100644 --- a/src/routes/(console)/apply-credit/+page.svelte +++ b/src/routes/(console)/apply-credit/+page.svelte @@ -25,6 +25,8 @@ import { onMount } from 'svelte'; import { writable } from 'svelte/store'; import { plansInfo } from '$lib/stores/billing'; + import { Fieldset, Icon, Layout, Tooltip } from '@appwrite.io/pink-svelte'; + import { IconInfo } from '@appwrite.io/pink-icons-svelte'; export let data; @@ -71,6 +73,8 @@ let campaign = data?.campaign; let billingPlan = BillingPlan.PRO; + $: onlyNewOrgs = (campaign && campaign.onlyNewOrgs) || (couponData && couponData.onlyNewOrgs); + onMount(async () => { await loadPaymentMethods(); if (!$organizationList?.total || campaign?.onlyNewOrgs) { @@ -205,34 +209,48 @@ Apply credits
- {#if $organizationList?.total && !campaign?.onlyNewOrgs && canSelectOrg} - - {/if} - {#if selectedOrgId && (selectedOrg?.billingPlan !== BillingPlan.PRO || !selectedOrg?.paymentMethodId)} - {#if selectedOrgId === newOrgId} - + +
+ + {#if $organizationList?.total && !onlyNewOrgs && canSelectOrg} + + {/if} + {#if selectedOrgId && (selectedOrg?.billingPlan !== BillingPlan.PRO || !selectedOrg?.paymentMethodId)} + {#if selectedOrgId === newOrgId} + + {/if} + + + + + Invited members will have access to all services and payment + data within your organization + + + + {/if} + +
+ {#if selectedOrgId && (selectedOrg?.billingPlan !== BillingPlan.PRO || !selectedOrg?.paymentMethodId)} + {/if} - - - {/if} +
{#if !data?.couponData?.code && selectedOrgId}