2021-09-04 15:05:34 +02:00
|
|
|
<template>
|
2025-11-15 19:38:39 +01:00
|
|
|
<div class="signup-container">
|
2022-12-08 10:09:33 +01:00
|
|
|
<div
|
2024-09-13 19:42:55 +02:00
|
|
|
v-if="tools.isLogged() && tools.getUsername() && !collettivo"
|
2025-11-15 19:38:39 +01:00
|
|
|
class="already-logged"
|
2022-12-08 10:09:33 +01:00
|
|
|
>
|
2025-11-15 19:38:39 +01:00
|
|
|
<div class="success-card">
|
|
|
|
|
<q-icon
|
|
|
|
|
name="check_circle"
|
|
|
|
|
size="64px"
|
|
|
|
|
color="positive"
|
|
|
|
|
class="q-mb-md"
|
|
|
|
|
/>
|
|
|
|
|
<div class="success-message">{{ tools.getUsername() }}, sei già registrato!</div>
|
|
|
|
|
<div class="action-buttons">
|
|
|
|
|
<q-btn
|
|
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
color="primary"
|
|
|
|
|
icon="fas fa-home"
|
|
|
|
|
label="Vai alla Home"
|
|
|
|
|
to="/"
|
|
|
|
|
class="action-btn"
|
|
|
|
|
/>
|
|
|
|
|
<q-btn
|
|
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
outline
|
|
|
|
|
color="primary"
|
|
|
|
|
label="Vedi Registrazione"
|
|
|
|
|
@click="visureg = true"
|
|
|
|
|
class="action-btn"
|
|
|
|
|
/>
|
2022-05-05 00:38:26 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
</div>
|
2022-05-05 00:38:26 +02:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<div
|
|
|
|
|
v-if="!tools.isLogged() || visureg || collettivo"
|
|
|
|
|
class="signup-content"
|
|
|
|
|
>
|
|
|
|
|
<div class="header-section">
|
|
|
|
|
<logo mystyle="width: 50px !important; height: 50px !important;" />
|
|
|
|
|
<div
|
|
|
|
|
v-if="!isalreadyReg && !(visubuttBOT && needTelegram)"
|
|
|
|
|
class="title-section"
|
|
|
|
|
>
|
|
|
|
|
<h1 class="signup-title">{{ $t('pages.SignUp') }}</h1>
|
|
|
|
|
<p class="signup-subtitle">Entra in RISO in pochi passi</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-01-03 16:51:45 +01:00
|
|
|
<div
|
|
|
|
|
v-if="visubuttBOT && needTelegram && !collettivo"
|
2025-11-15 19:38:39 +01:00
|
|
|
class="telegram-registration"
|
2023-01-03 16:51:45 +01:00
|
|
|
>
|
2025-11-15 19:38:39 +01:00
|
|
|
<CRegistration
|
|
|
|
|
:invited="signup.aportador_solidario"
|
|
|
|
|
:regexpire="regexpire"
|
|
|
|
|
@regEventEmail="regEventEmail"
|
|
|
|
|
:signupform="true"
|
|
|
|
|
/>
|
2022-03-09 14:53:17 +01:00
|
|
|
</div>
|
|
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<div
|
|
|
|
|
v-else-if="!isalreadyReg || collettivo"
|
|
|
|
|
class="form-container"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
v-if="signup.username === 'undefined'"
|
|
|
|
|
class="telegram-setup"
|
|
|
|
|
>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="fab fa-telegram"
|
|
|
|
|
size="80px"
|
|
|
|
|
color="primary"
|
|
|
|
|
class="q-mb-md"
|
|
|
|
|
/>
|
|
|
|
|
<p class="telegram-message">
|
|
|
|
|
Vai su <strong>BOT RISO</strong> Telegram ed imposta l'Username
|
|
|
|
|
</p>
|
2022-12-08 10:09:33 +01:00
|
|
|
<q-btn
|
2025-11-15 19:38:39 +01:00
|
|
|
unelevated
|
2022-12-08 10:09:33 +01:00
|
|
|
rounded
|
|
|
|
|
color="primary"
|
2025-11-15 19:38:39 +01:00
|
|
|
size="lg"
|
2022-12-08 10:09:33 +01:00
|
|
|
icon="fab fa-telegram"
|
|
|
|
|
label="Apri BOT"
|
|
|
|
|
type="a"
|
2025-11-15 19:38:39 +01:00
|
|
|
:href="tools.getLinkBotTelegram(signup.aportador_solidario, regexpire)"
|
2022-12-08 10:09:33 +01:00
|
|
|
target="_blank"
|
2025-11-15 19:38:39 +01:00
|
|
|
class="telegram-btn"
|
|
|
|
|
/>
|
2022-08-15 15:10:00 +02:00
|
|
|
</div>
|
|
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<div
|
|
|
|
|
v-else
|
|
|
|
|
class="registration-form"
|
|
|
|
|
>
|
|
|
|
|
<!-- Progress Indicator -->
|
|
|
|
|
<div class="progress-indicator">
|
|
|
|
|
<div
|
|
|
|
|
v-for="step in 3"
|
|
|
|
|
:key="step"
|
|
|
|
|
class="progress-step"
|
|
|
|
|
:class="{
|
|
|
|
|
active: parseInt(slide) >= step,
|
|
|
|
|
completed: parseInt(slide) > step,
|
|
|
|
|
}"
|
2022-12-22 16:48:57 +01:00
|
|
|
>
|
2025-11-15 19:38:39 +01:00
|
|
|
<div class="step-circle">
|
|
|
|
|
<q-icon
|
|
|
|
|
v-if="parseInt(slide) > step"
|
|
|
|
|
name="check"
|
|
|
|
|
size="20px"
|
|
|
|
|
color="white"
|
|
|
|
|
/>
|
|
|
|
|
<span v-else>{{ step }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="step-label">
|
|
|
|
|
{{ step === 1 ? 'Dati' : step === 2 ? 'Account' : 'Sicurezza' }}
|
|
|
|
|
</div>
|
2022-12-22 16:48:57 +01:00
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
<div
|
|
|
|
|
class="progress-line"
|
|
|
|
|
:style="{ width: `${(parseInt(slide) - 1) * 50}%` }"
|
|
|
|
|
></div>
|
2022-12-22 16:48:57 +01:00
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
|
|
|
|
|
<!-- Carousel -->
|
|
|
|
|
<q-carousel
|
|
|
|
|
ref="carousel"
|
|
|
|
|
v-model="slide"
|
|
|
|
|
animated
|
|
|
|
|
transition-prev="slide-right"
|
|
|
|
|
transition-next="slide-left"
|
|
|
|
|
swipeable
|
|
|
|
|
control-color="primary"
|
|
|
|
|
class="modern-carousel"
|
|
|
|
|
:arrows="false"
|
|
|
|
|
:navigation="false"
|
|
|
|
|
height="auto"
|
|
|
|
|
>
|
|
|
|
|
<!-- SLIDE 1: Email + Aportador -->
|
|
|
|
|
<q-carousel-slide
|
|
|
|
|
name="1"
|
|
|
|
|
class="carousel-slide"
|
2022-12-22 16:48:57 +01:00
|
|
|
>
|
2025-11-15 19:38:39 +01:00
|
|
|
<div class="slide-content">
|
|
|
|
|
<div class="form-fields">
|
2022-12-22 16:48:57 +01:00
|
|
|
<q-input
|
|
|
|
|
v-if="
|
2025-11-15 19:38:39 +01:00
|
|
|
showaportador && signup.aportador_solidario !== tools.APORTADOR_NONE
|
2022-12-17 14:12:04 +01:00
|
|
|
"
|
2022-12-22 16:48:57 +01:00
|
|
|
ref="inputAportador"
|
|
|
|
|
v-model="signup.aportador_solidario"
|
2025-11-15 19:38:39 +01:00
|
|
|
:readonly="!!ap_iniziale"
|
2022-12-22 16:48:57 +01:00
|
|
|
rounded
|
|
|
|
|
outlined
|
2025-11-15 19:38:39 +01:00
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
|
|
|
|
@keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
2022-12-22 16:48:57 +01:00
|
|
|
@blur="v$.aportador_solidario.$touch"
|
|
|
|
|
:error="v$.aportador_solidario.$error"
|
|
|
|
|
:error-message="
|
2025-11-15 19:38:39 +01:00
|
|
|
tools.errorMsg('aportador_solidario', v$.aportador_solidario)
|
2022-12-22 16:48:57 +01:00
|
|
|
"
|
|
|
|
|
maxlength="20"
|
|
|
|
|
debounce="1000"
|
2023-01-03 16:51:45 +01:00
|
|
|
:label="
|
|
|
|
|
collettivo
|
2025-09-02 16:22:13 +02:00
|
|
|
? t('reg.username_admin_collettivo')
|
|
|
|
|
: t('reg.aportador_solidario')
|
2023-01-03 16:51:45 +01:00
|
|
|
"
|
2022-12-17 14:12:04 +01:00
|
|
|
>
|
2022-12-22 16:48:57 +01:00
|
|
|
<template v-slot:prepend>
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-icon
|
|
|
|
|
name="person"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
2022-12-22 16:48:57 +01:00
|
|
|
</template>
|
|
|
|
|
</q-input>
|
2022-03-12 22:21:40 +01:00
|
|
|
|
2022-12-22 16:48:57 +01:00
|
|
|
<q-input
|
|
|
|
|
ref="inputEmail"
|
|
|
|
|
v-model="signup.email"
|
|
|
|
|
rounded
|
|
|
|
|
outlined
|
2025-11-15 19:38:39 +01:00
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
2022-12-22 16:48:57 +01:00
|
|
|
@update:model-value="changeemail()"
|
|
|
|
|
maxlength="50"
|
2025-11-15 19:38:39 +01:00
|
|
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
2022-12-22 16:48:57 +01:00
|
|
|
debounce="2000"
|
|
|
|
|
:rules="[myRuleEmail]"
|
2023-01-03 16:51:45 +01:00
|
|
|
:label="
|
2025-11-15 19:38:39 +01:00
|
|
|
collettivo ? t('reg.email_reg_collettivo') : t('reg.email_reg')
|
2023-01-03 16:51:45 +01:00
|
|
|
"
|
2022-12-22 16:48:57 +01:00
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-icon
|
|
|
|
|
name="email"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
2022-12-22 16:48:57 +01:00
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
</div>
|
|
|
|
|
</q-carousel-slide>
|
|
|
|
|
|
|
|
|
|
<!-- SLIDE 2: Username + Nome/Cognome -->
|
|
|
|
|
<q-carousel-slide
|
|
|
|
|
name="2"
|
|
|
|
|
class="carousel-slide"
|
|
|
|
|
>
|
|
|
|
|
<div class="slide-content">
|
|
|
|
|
<div class="slide-header">
|
|
|
|
|
<q-icon
|
|
|
|
|
name="person"
|
|
|
|
|
size="40px"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
<h2 class="slide-title">Il tuo profilo</h2>
|
|
|
|
|
</div>
|
2022-08-15 15:10:00 +02:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<div class="form-fields">
|
2023-01-03 16:51:45 +01:00
|
|
|
<q-input
|
2025-11-15 19:38:39 +01:00
|
|
|
ref="inputUsername"
|
|
|
|
|
v-model="signup.username"
|
|
|
|
|
:readonly="
|
|
|
|
|
tools.getAskToVerifyReg() && !site.confpages?.enableRegMultiChoice
|
|
|
|
|
"
|
2023-01-03 16:51:45 +01:00
|
|
|
rounded
|
|
|
|
|
outlined
|
2025-11-15 19:38:39 +01:00
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
|
|
|
|
@blur="v$.username.$touch"
|
|
|
|
|
@update:model-value="changeusername"
|
|
|
|
|
:error="v$.username.$error"
|
|
|
|
|
@keydown.space="(event) => event.preventDefault()"
|
|
|
|
|
@keyup.enter="
|
|
|
|
|
!v$.username.$error && show_namesurname
|
|
|
|
|
? $refs.inputName.focus()
|
|
|
|
|
: !checkifDisabled
|
|
|
|
|
? $refs.carousel.next()
|
|
|
|
|
: null
|
|
|
|
|
"
|
|
|
|
|
maxlength="20"
|
|
|
|
|
debounce="500"
|
|
|
|
|
:error-message="
|
|
|
|
|
tools.errorMsg('username', v$.username) ||
|
|
|
|
|
(isalreadyReg ? 'Username già registrato!' : '')
|
|
|
|
|
"
|
|
|
|
|
:label="
|
|
|
|
|
tools.getConfSiteOptionEnabled(
|
|
|
|
|
shared_consts.ConfSite.askUSernameTelegramToTheReg
|
|
|
|
|
)
|
|
|
|
|
? t('reg.username_telegram')
|
|
|
|
|
: t('reg.username_reg')
|
2023-01-03 16:51:45 +01:00
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-icon
|
|
|
|
|
name="person"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
2023-01-03 16:51:45 +01:00
|
|
|
</template>
|
|
|
|
|
</q-input>
|
2025-11-15 19:38:39 +01:00
|
|
|
|
|
|
|
|
<div v-if="collettivo">
|
|
|
|
|
<q-input
|
|
|
|
|
ref="inputName"
|
|
|
|
|
v-model="signup.name"
|
|
|
|
|
rounded
|
|
|
|
|
outlined
|
|
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
|
|
|
|
@blur="v$.name.$touch"
|
|
|
|
|
:error="v$.name.$error"
|
|
|
|
|
maxlength="30"
|
|
|
|
|
debounce="1000"
|
|
|
|
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
|
|
|
|
:error-message="tools.errorMsg('name', v$.name)"
|
|
|
|
|
:label="$t('reg.name_opt_collettivo')"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="badge"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
v-else-if="show_namesurname"
|
|
|
|
|
class="name-fields"
|
|
|
|
|
>
|
|
|
|
|
<q-input
|
|
|
|
|
ref="inputName"
|
|
|
|
|
v-model="signup.name"
|
|
|
|
|
rounded
|
|
|
|
|
outlined
|
|
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
|
|
|
|
@blur="v$.name.$touch"
|
|
|
|
|
:error="v$.name.$error"
|
|
|
|
|
maxlength="30"
|
|
|
|
|
debounce="1000"
|
|
|
|
|
@keyup.enter="$refs.inputSurname.focus()"
|
|
|
|
|
:error-message="tools.errorMsg('name', v$.name)"
|
|
|
|
|
:label="
|
|
|
|
|
tools.getConfSiteOptionEnabled(
|
|
|
|
|
shared_consts.ConfSite.regNameSurnameMandatory
|
|
|
|
|
)
|
|
|
|
|
? t('reg.name')
|
|
|
|
|
: t('reg.name_opt')
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="badge"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
ref="inputSurname"
|
|
|
|
|
v-model="signup.surname"
|
|
|
|
|
rounded
|
|
|
|
|
outlined
|
|
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
|
|
|
|
:error="v$.surname.$error"
|
|
|
|
|
@blur="v$.surname.$touch"
|
|
|
|
|
maxlength="30"
|
|
|
|
|
debounce="1000"
|
|
|
|
|
v-on:keyup.enter="!checkifDisabled ? $refs.carousel.next() : null"
|
|
|
|
|
:error-message="tools.errorMsg('surname', v$.surname)"
|
|
|
|
|
:label="
|
|
|
|
|
tools.getConfSiteOptionEnabled(
|
|
|
|
|
shared_consts.ConfSite.regNameSurnameMandatory
|
|
|
|
|
)
|
|
|
|
|
? t('reg.surname')
|
|
|
|
|
: t('reg.surname_opt')
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="badge"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</div>
|
2023-01-03 16:51:45 +01:00
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
</div>
|
|
|
|
|
</q-carousel-slide>
|
2023-01-03 16:51:45 +01:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<!-- SLIDE 3: Password + Privacy -->
|
|
|
|
|
<q-carousel-slide
|
|
|
|
|
name="3"
|
|
|
|
|
class="carousel-slide"
|
|
|
|
|
>
|
|
|
|
|
<div class="slide-content">
|
|
|
|
|
<div class="slide-header">
|
|
|
|
|
<q-icon
|
|
|
|
|
name="lock"
|
|
|
|
|
size="40px"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
<h2 class="slide-title">Scegli una password sicura</h2>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-fields">
|
2022-12-22 16:48:57 +01:00
|
|
|
<q-input
|
2025-11-15 19:38:39 +01:00
|
|
|
ref="inputPassword"
|
|
|
|
|
v-model="signup.password"
|
|
|
|
|
class="modern-input"
|
|
|
|
|
:type="typePassword"
|
2022-12-22 16:48:57 +01:00
|
|
|
rounded
|
|
|
|
|
outlined
|
2025-11-15 19:38:39 +01:00
|
|
|
filled
|
|
|
|
|
@blur="v$.password.$touch"
|
|
|
|
|
:error="v$.password.$error"
|
|
|
|
|
:error-message="tools.errorMsg('password', v$.password)"
|
|
|
|
|
@keyup.enter="
|
|
|
|
|
!v$.password.$error ? $refs.inputPassword2.focus() : null
|
|
|
|
|
"
|
2022-12-22 16:48:57 +01:00
|
|
|
maxlength="30"
|
|
|
|
|
debounce="1000"
|
2025-11-15 19:38:39 +01:00
|
|
|
:label="$t('reg.password_reg')"
|
2022-12-22 16:48:57 +01:00
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-icon
|
|
|
|
|
name="vpn_key"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-btn
|
|
|
|
|
flat
|
|
|
|
|
dense
|
|
|
|
|
round
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
:icon="
|
|
|
|
|
typePassword === 'password' ? 'visibility_off' : 'visibility'
|
|
|
|
|
"
|
|
|
|
|
@click="showPassword"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
2022-12-22 16:48:57 +01:00
|
|
|
</template>
|
|
|
|
|
</q-input>
|
2022-08-15 15:10:00 +02:00
|
|
|
|
2022-12-22 16:48:57 +01:00
|
|
|
<q-input
|
2025-11-15 19:38:39 +01:00
|
|
|
ref="inputPassword2"
|
|
|
|
|
v-model="signup.repeatPassword"
|
|
|
|
|
:type="typePassword"
|
|
|
|
|
maxlength="30"
|
2022-12-22 16:48:57 +01:00
|
|
|
rounded
|
|
|
|
|
outlined
|
2025-11-15 19:38:39 +01:00
|
|
|
filled
|
|
|
|
|
class="modern-input"
|
|
|
|
|
@blur="v$.repeatPassword.$touch"
|
|
|
|
|
:error="v$.repeatPassword.$error"
|
|
|
|
|
:error-message="tools.errorMsg('repeatpassword', v$.repeatPassword)"
|
|
|
|
|
v-on:keyup.enter="allowSubmit() ? submitOk() : null"
|
|
|
|
|
:label="$t('reg.repeatPassword')"
|
2022-12-22 16:48:57 +01:00
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-icon
|
|
|
|
|
name="vpn_key"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:append>
|
|
|
|
|
<q-btn
|
|
|
|
|
flat
|
|
|
|
|
dense
|
|
|
|
|
round
|
|
|
|
|
tabindex="-1"
|
|
|
|
|
:icon="
|
|
|
|
|
typePassword === 'password' ? 'visibility_off' : 'visibility'
|
|
|
|
|
"
|
|
|
|
|
@click="showPassword"
|
|
|
|
|
color="primary"
|
|
|
|
|
/>
|
2022-12-22 16:48:57 +01:00
|
|
|
</template>
|
|
|
|
|
</q-input>
|
2022-08-15 15:10:00 +02:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<!-- Privacy Section -->
|
|
|
|
|
<div class="privacy-section">
|
|
|
|
|
<q-separator class="q-my-md" />
|
2022-08-15 15:10:00 +02:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<div class="privacy-link">
|
2022-12-22 16:48:57 +01:00
|
|
|
<q-btn
|
|
|
|
|
flat
|
2025-11-15 19:38:39 +01:00
|
|
|
dense
|
|
|
|
|
no-caps
|
|
|
|
|
color="primary"
|
|
|
|
|
icon="policy"
|
|
|
|
|
label="Leggi la Privacy Policy"
|
|
|
|
|
@click="showpolicy = true"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2022-12-22 16:48:57 +01:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-checkbox
|
|
|
|
|
v-model="signup.terms"
|
|
|
|
|
color="primary"
|
|
|
|
|
class="privacy-checkbox"
|
|
|
|
|
:label="$t('reg.terms')"
|
|
|
|
|
/>
|
2022-12-22 16:48:57 +01:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<q-checkbox
|
|
|
|
|
v-if="showadultcheck"
|
|
|
|
|
v-model="iamadult"
|
|
|
|
|
color="primary"
|
|
|
|
|
class="privacy-checkbox"
|
|
|
|
|
:label="$t('reg.onlyadult')"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2022-12-22 16:48:57 +01:00
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
</div>
|
|
|
|
|
</q-carousel-slide>
|
|
|
|
|
</q-carousel>
|
2022-12-22 16:48:57 +01:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<!-- Privacy Dialog -->
|
|
|
|
|
<q-dialog
|
|
|
|
|
v-model="showpolicy"
|
|
|
|
|
maximized
|
|
|
|
|
>
|
|
|
|
|
<q-card>
|
|
|
|
|
<q-toolbar class="bg-primary text-white">
|
|
|
|
|
<q-toolbar-title>Privacy Policy</q-toolbar-title>
|
2022-12-22 16:48:57 +01:00
|
|
|
<q-btn
|
2025-11-15 19:38:39 +01:00
|
|
|
flat
|
|
|
|
|
round
|
|
|
|
|
dense
|
|
|
|
|
icon="close"
|
|
|
|
|
v-close-popup
|
|
|
|
|
/>
|
|
|
|
|
</q-toolbar>
|
|
|
|
|
<q-card-section class="scroll">
|
|
|
|
|
<PagePolicy
|
|
|
|
|
v-if="site.policy"
|
|
|
|
|
:owneremail="site.policy.owneremail"
|
|
|
|
|
:siteName="site.policy.siteName"
|
|
|
|
|
:ownerDataName="site.policy.ownerDataName"
|
|
|
|
|
:managerData="site.policy.managerData"
|
|
|
|
|
:includeData="site.policy.includeData"
|
|
|
|
|
:url="site.policy.url"
|
|
|
|
|
:lastdataupdate="site.policy.lastdataupdate"
|
|
|
|
|
:country="site.policy.country"
|
|
|
|
|
/>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
</q-card>
|
|
|
|
|
</q-dialog>
|
2022-12-17 14:12:04 +01:00
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<!-- Fixed Bottom Buttons -->
|
|
|
|
|
<div class="fixed-bottom-actions">
|
|
|
|
|
<div class="action-row">
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="parseInt(slide) > 1"
|
|
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
outline
|
|
|
|
|
color="primary"
|
|
|
|
|
icon="arrow_back"
|
|
|
|
|
label="Indietro"
|
|
|
|
|
@click="$refs.carousel.previous()"
|
|
|
|
|
class="nav-btn prev-btn"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="parseInt(slide) < 3"
|
|
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
color="primary"
|
|
|
|
|
icon-right="arrow_forward"
|
|
|
|
|
:label="parseInt(slide) === 1 ? 'Inizia' : 'Continua'"
|
|
|
|
|
@click="$refs.carousel.next()"
|
|
|
|
|
:disable="checkifDisabled"
|
|
|
|
|
class="nav-btn next-btn"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-btn
|
|
|
|
|
v-if="parseInt(slide) === 3"
|
|
|
|
|
unelevated
|
|
|
|
|
rounded
|
|
|
|
|
color="positive"
|
|
|
|
|
icon-right="check"
|
|
|
|
|
label="Registrati"
|
|
|
|
|
@click="submitOk"
|
|
|
|
|
:disable="!allowSubmit()"
|
|
|
|
|
class="nav-btn submit-btn"
|
|
|
|
|
size="lg"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2022-08-15 15:10:00 +02:00
|
|
|
</div>
|
2022-03-09 14:53:17 +01:00
|
|
|
</div>
|
2021-09-04 15:05:34 +02:00
|
|
|
</div>
|
2025-11-15 19:38:39 +01:00
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
v-else-if="isalreadyReg && !collettivo"
|
|
|
|
|
class="error-card"
|
|
|
|
|
>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="error"
|
|
|
|
|
size="64px"
|
|
|
|
|
color="negative"
|
|
|
|
|
class="q-mb-md"
|
|
|
|
|
/>
|
|
|
|
|
<div class="error-message">
|
|
|
|
|
Utente già registrato con username <strong>{{ signup.username }}</strong>
|
|
|
|
|
</div>
|
2022-11-02 14:59:32 +01:00
|
|
|
</div>
|
2021-09-04 15:05:34 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
2025-11-15 19:38:39 +01:00
|
|
|
<script lang="ts" src="./CSignUp.ts"></script>
|
2021-09-04 15:05:34 +02:00
|
|
|
<style lang="scss" scoped>
|
2022-02-08 23:06:22 +01:00
|
|
|
@import './CSignUp.scss';
|
2021-09-04 15:05:34 +02:00
|
|
|
</style>
|