2021-09-04 15:05:34 +02:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<p>
|
2022-02-08 23:06:22 +01:00
|
|
|
<logo></logo>
|
|
|
|
|
<CTitleBanner :title="$t('pages.SignUp')"></CTitleBanner>
|
2021-09-04 15:05:34 +02:00
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="q-gutter-sm">
|
|
|
|
|
|
2021-12-29 18:26:41 +01:00
|
|
|
<q-input
|
|
|
|
|
v-if="showaportador && signup.aportador_solidario !== tools.APORTADOR_NONE"
|
|
|
|
|
bg-color="lightblue"
|
|
|
|
|
:readonly="true"
|
|
|
|
|
v-model="signup.aportador_solidario"
|
|
|
|
|
rounded outlined
|
|
|
|
|
@blur="v$.aportador_solidario.$touch"
|
|
|
|
|
:error="v$.aportador_solidario.$error"
|
|
|
|
|
:error-message="tools.errorMsg('aportador_solidario', v$.aportador_solidario)"
|
|
|
|
|
maxlength="20"
|
|
|
|
|
debounce="1000"
|
|
|
|
|
|
|
|
|
|
:label="$t('reg.aportador_solidario')">
|
|
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="person"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
2022-01-05 19:11:47 +01:00
|
|
|
<!--<q-input
|
2021-09-04 15:05:34 +02:00
|
|
|
v-model="signup.email"
|
|
|
|
|
rounded outlined
|
2021-09-16 21:08:02 +02:00
|
|
|
@blur="v$.email.$touch"
|
2021-10-04 15:55:43 +02:00
|
|
|
@update:model-value="changeemail()"
|
2022-01-05 19:11:47 +01:00
|
|
|
:error="v$.email.$invalid"
|
2021-09-17 17:30:01 +02:00
|
|
|
:error-message="tools.errorMsg( 'email', v$.email)"
|
2021-09-04 15:05:34 +02:00
|
|
|
maxlength="50"
|
2022-01-05 19:11:47 +01:00
|
|
|
debounce="2000"
|
|
|
|
|
:label="$t('reg.email')">
|
|
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="email"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input> -->
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signup.email"
|
|
|
|
|
rounded outlined
|
|
|
|
|
@update:model-value="changeemail()"
|
|
|
|
|
maxlength="50"
|
2021-09-16 21:08:02 +02:00
|
|
|
debounce="3000"
|
2022-01-05 19:11:47 +01:00
|
|
|
:rules="[ myRuleEmail ]"
|
|
|
|
|
lazy-rules
|
2022-02-08 23:06:22 +01:00
|
|
|
:label="$t('reg.email_reg')">
|
2021-09-04 15:05:34 +02:00
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="email"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signup.username"
|
|
|
|
|
rounded outlined
|
2021-09-16 21:08:02 +02:00
|
|
|
@blur="v$.username.$touch"
|
2021-10-04 15:55:43 +02:00
|
|
|
@update:model-value="changeusername"
|
2021-09-16 21:08:02 +02:00
|
|
|
:error="v$.username.$error"
|
2021-09-04 15:05:34 +02:00
|
|
|
@keydown.space="(event) => event.preventDefault()"
|
|
|
|
|
maxlength="20"
|
2022-02-08 23:06:22 +01:00
|
|
|
:hint="$t('reg.username_hint')"
|
2021-09-04 15:05:34 +02:00
|
|
|
debounce="1000"
|
2021-09-17 17:30:01 +02:00
|
|
|
:error-message="tools.errorMsg( 'username', v$.username)"
|
2022-02-08 23:06:22 +01:00
|
|
|
:label="$t('reg.username_reg')">
|
2021-09-04 15:05:34 +02:00
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="person"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
2022-02-08 23:06:22 +01:00
|
|
|
<div v-if="show_namesurname">
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signup.name"
|
|
|
|
|
rounded outlined
|
|
|
|
|
@blur="v$.name.$touch"
|
|
|
|
|
:error="v$.name.$error"
|
|
|
|
|
maxlength="30"
|
|
|
|
|
debounce="1000"
|
|
|
|
|
:error-message="tools.errorMsg( 'name', v$.name)"
|
|
|
|
|
:label="$t('reg.name')">
|
|
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="person"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signup.surname"
|
|
|
|
|
rounded outlined
|
|
|
|
|
:error="v$.surname.$error"
|
|
|
|
|
@blur="v$.surname.$touch"
|
|
|
|
|
maxlength="30"
|
|
|
|
|
debounce="1000"
|
|
|
|
|
:error-message="tools.errorMsg( 'surname', v$.surname)"
|
|
|
|
|
:label="$t('reg.surname')">
|
|
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="person"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
2021-09-04 15:05:34 +02:00
|
|
|
|
2022-02-08 23:06:22 +01:00
|
|
|
</div>
|
2021-09-04 15:05:34 +02:00
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signup.password"
|
|
|
|
|
type="password"
|
|
|
|
|
rounded outlined
|
2021-09-16 21:08:02 +02:00
|
|
|
@blur="v$.password.$touch"
|
|
|
|
|
:error="v$.password.$error"
|
2021-09-17 17:30:01 +02:00
|
|
|
:error-message="`${tools.errorMsg( 'password', v$.password)}`"
|
2021-09-04 15:05:34 +02:00
|
|
|
maxlength="30"
|
2021-09-16 21:08:02 +02:00
|
|
|
debounce="1000"
|
2022-02-08 23:06:22 +01:00
|
|
|
:label="$t('reg.password_reg')">
|
2021-09-04 15:05:34 +02:00
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="vpn_key"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="signup.repeatPassword"
|
|
|
|
|
type="password"
|
|
|
|
|
maxlength="30"
|
|
|
|
|
rounded outlined
|
2021-09-16 21:08:02 +02:00
|
|
|
@blur="v$.repeatPassword.$touch"
|
|
|
|
|
:error="v$.repeatPassword.$error"
|
2021-09-17 17:30:01 +02:00
|
|
|
:error-message="`${tools.errorMsg( 'repeatpassword', v$.repeatPassword)}`"
|
2021-09-04 15:05:34 +02:00
|
|
|
|
|
|
|
|
:label="$t('reg.repeatPassword')">
|
|
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="vpn_key"/>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<q-input
|
|
|
|
|
v-if="shownationality"
|
|
|
|
|
v-model="countryname"
|
|
|
|
|
:readonly="true"
|
|
|
|
|
rounded outlined
|
|
|
|
|
|
|
|
|
|
debounce="1000"
|
|
|
|
|
:label="$t('reg.nationality')">
|
|
|
|
|
|
|
|
|
|
<template v-slot:prepend>
|
2021-09-16 21:08:02 +02:00
|
|
|
<!--<vue-country-code
|
2021-09-04 15:05:34 +02:00
|
|
|
@onSelect="selectcountry"
|
|
|
|
|
:preferredCountries="tools.getprefCountries"
|
|
|
|
|
:dropdownOptions="{ disabledDialCode: true }"
|
|
|
|
|
>
|
|
|
|
|
|
2021-09-16 21:08:02 +02:00
|
|
|
</vue-country-code>-->
|
2021-09-04 15:05:34 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</q-input>
|
|
|
|
|
|
|
|
|
|
<div v-if="!tools.isMobile()"><br></div>
|
|
|
|
|
|
2021-12-23 14:14:39 +01:00
|
|
|
|
2021-09-16 21:08:02 +02:00
|
|
|
<!--<vue-tel-input
|
2021-09-04 15:05:34 +02:00
|
|
|
v-if="showcell"
|
2021-09-16 21:08:02 +02:00
|
|
|
@country-changed="intcode_change()"
|
|
|
|
|
:value="signup.profile.cell"
|
2021-09-04 15:05:34 +02:00
|
|
|
:placeholder="$t('reg.cell')"
|
|
|
|
|
maxlength="20"
|
|
|
|
|
:enabledCountryCode="true"
|
|
|
|
|
inputClasses="clCell"
|
|
|
|
|
wrapperClasses="clCellCode">
|
2021-09-16 21:08:02 +02:00
|
|
|
</vue-tel-input>-->
|
2021-09-04 15:05:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<q-checkbox
|
|
|
|
|
v-model="signup.terms"
|
|
|
|
|
color="secondary"
|
2021-09-16 21:08:02 +02:00
|
|
|
@blur="v$.terms.$touch"
|
|
|
|
|
:error="v$.terms.$error"
|
2021-09-17 17:30:01 +02:00
|
|
|
:error-message="`${tools.errorMsg( 'terms', v$.terms)}`"
|
2021-09-04 15:05:34 +02:00
|
|
|
:label="$t('reg.terms')">
|
|
|
|
|
|
|
|
|
|
</q-checkbox>
|
|
|
|
|
|
|
|
|
|
<q-checkbox
|
|
|
|
|
v-if="showadultcheck"
|
|
|
|
|
v-model="iamadult"
|
|
|
|
|
color="secondary"
|
|
|
|
|
:label="$t('reg.onlyadult')">
|
|
|
|
|
</q-checkbox>
|
|
|
|
|
|
|
|
|
|
<div v-if="showadultcheck">
|
|
|
|
|
<br>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
2022-02-08 23:06:22 +01:00
|
|
|
<q-btn rounded size="lg" color="positive" @click="submitOk" :disabled='!allowSubmit()'
|
|
|
|
|
:label="$t('reg.submit')">
|
2021-09-04 15:05:34 +02:00
|
|
|
</q-btn>
|
|
|
|
|
</div>
|
2022-02-08 23:06:22 +01:00
|
|
|
<br/><br/><br/>
|
2021-09-04 15:05:34 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./CSignUp.ts">
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
2022-02-08 23:06:22 +01:00
|
|
|
@import './CSignUp.scss';
|
2021-09-04 15:05:34 +02:00
|
|
|
</style>
|