Skip to content

Commit

Permalink
Update - Mise à jour de check "legals" pour MangoPay
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreymugnier committed Nov 7, 2020
1 parent 5bbb03e commit 4545395
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
18 changes: 16 additions & 2 deletions src/routes/register/RegisterConsumer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
let isRegistering = false;
let acceptCgv = false;
let acceptMangoCgv = false;
let sponsorShow = false;
let selectedDepartment = null;
let sub = null;
Expand Down Expand Up @@ -213,6 +214,19 @@
et je les accepte
</label>
</div>
<div class="mt-2">
<label class="cursor-pointer">
<InputCheckbox
checked={acceptMangoCgv}
onClick={() => (acceptMangoCgv = !acceptMangoCgv)} />
Je reconnais avoir lu et compris
<a href="https://www.mangopay.com/terms/end-user-terms-and-conditions/Mangopay_Terms-FR.pdf" target="_blank">
les conditions générales d'utilisation de MangoPay,
</a>
notre tiers de paiement, et je les accepte
</label>
</div>

<!-- <div class="flex flex-wrap justify-center">
<div>
<label
Expand Down Expand Up @@ -244,8 +258,8 @@
</div>
<div>
<button
class:disabled={!$consumerForm.valid || !acceptCgv}
disabled={!acceptCgv}
class:disabled={!$consumerForm.valid || !acceptCgv || !acceptMangoCgv}
disabled={!acceptCgv || !acceptMangoCgv}
on:click={handleSubmit}
aria-label="Valider"
class="form-button uppercase text-sm cursor-pointer text-white
Expand Down
17 changes: 15 additions & 2 deletions src/routes/register/owner/FormProductionSite.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
let isSearchingAddress = false;
let valid = false;
let acceptCgv = false;
let acceptMangoCgv = false;
const resetAddress = () => {
company.address = {
Expand All @@ -28,7 +29,7 @@
}
}
$: valid = company.address && company.address.line1 && company.address.city && company.address.zipcode && acceptCgv;
$: valid = company.address && company.address.line1 && company.address.city && company.address.zipcode && acceptCgv && acceptMangoCgv;
</script>

<svelte:window on:keydown={handleKeydown}/>
Expand Down Expand Up @@ -98,12 +99,24 @@
checked={acceptCgv}
onClick={() => (acceptCgv = !acceptCgv)} />
Je reconnais avoir lu et compris
<a href="https://www.sheaft.com/legals" target="_blank">
<a href="https://www.sheaft.com/legals-pro" target="_blank">
les conditions générales de vente et d'utilisation
</a>
et je les accepte
</label>
</div>
<div class="mt-2">
<label class="cursor-pointer">
<InputCheckbox
checked={acceptMangoCgv}
onClick={() => (acceptMangoCgv = !acceptMangoCgv)} />
Je reconnais avoir lu et compris
<a href="https://www.mangopay.com/terms/end-user-terms-and-conditions/Mangopay_Terms-FR.pdf" target="_blank">
les conditions générales d'utilisation de services de paiement de MangoPay,
</a>
notre tiers de paiement, et je les accepte
</label>
</div>
</fieldset>
</form>
{:else}
Expand Down

0 comments on commit 4545395

Please sign in to comment.