mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
WITH CHECKBOXES
This commit is contained in:
parent
855caf78e9
commit
461defd460
@ -30,15 +30,24 @@
|
|||||||
name="email"
|
name="email"
|
||||||
icon="envelope"
|
icon="envelope"
|
||||||
/>
|
/>
|
||||||
<ds-list size="base">
|
<p>
|
||||||
<ds-list-item>
|
<label class="add-checkbox">
|
||||||
<ds-text v-html="$t('components.registration.signup.form.terms-and-condition')"></ds-text>
|
<input @change="handleInputValid" type="checkbox" v-model="checkbox1" />
|
||||||
</ds-list-item>
|
<span v-html="$t('components.registration.signup.form.terms-and-condition')"></span>
|
||||||
<ds-list-item>
|
</label>
|
||||||
<ds-text v-html="$t('components.registration.signup.form.data-privacy')"></ds-text>
|
</p>
|
||||||
</ds-list-item>
|
<p>
|
||||||
<ds-list-item>{{ $t('components.registration.signup.form.minimum-age') }}</ds-list-item>
|
<label class="add-checkbox">
|
||||||
</ds-list>
|
<input@change="handleInputValid" type="checkbox" v-model="checkbox2"/>
|
||||||
|
<span v-html="$t('components.registration.signup.form.data-privacy')"></span>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<label class="add-checkbox">
|
||||||
|
<input @change="handleInputValid" type="checkbox" v-model="checkbox3" />
|
||||||
|
<span v-html="$t('components.registration.signup.form.minimum-age')"></span>
|
||||||
|
</label>
|
||||||
|
</p>
|
||||||
|
|
||||||
<ds-button
|
<ds-button
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
@ -112,6 +121,9 @@ export default {
|
|||||||
disabled: true,
|
disabled: true,
|
||||||
success: false,
|
success: false,
|
||||||
error: null,
|
error: null,
|
||||||
|
checkbox1: false,
|
||||||
|
checkbox2: false,
|
||||||
|
checkbox3: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -125,7 +137,11 @@ export default {
|
|||||||
this.disabled = true
|
this.disabled = true
|
||||||
},
|
},
|
||||||
handleInputValid() {
|
handleInputValid() {
|
||||||
this.disabled = false
|
if (this.checkbox1 && this.checkbox2 && this.checkbox3) {
|
||||||
|
this.disabled = false
|
||||||
|
} else {
|
||||||
|
this.disabled = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async handleSubmit() {
|
async handleSubmit() {
|
||||||
const mutation = this.token ? SignupByInvitationMutation : SignupMutation
|
const mutation = this.token ? SignupByInvitationMutation : SignupMutation
|
||||||
|
|||||||
@ -30,9 +30,9 @@
|
|||||||
"title": "Mach mit bei Human Connection!",
|
"title": "Mach mit bei Human Connection!",
|
||||||
"form": {
|
"form": {
|
||||||
"description": "Um loszulegen, gib deine E-Mail Adresse ein:",
|
"description": "Um loszulegen, gib deine E-Mail Adresse ein:",
|
||||||
"terms-and-condition": "Es gelten unsere <a href=\"/terms-and-conditions\"><ds-text bold color=\"primary\" > Nutzungsbedingungen!</ds-text></a>",
|
"terms-and-condition": "Ich stimme den <a href=\"/terms-and-conditions\"><ds-text bold color=\"primary\" > Nutzungsbedingungen!</ds-text></a>zu.",
|
||||||
"data-privacy": "Es gelten unsere <a href=\"https://human-connection.org/datenschutz/\" target=\"_blank\"><ds-text bold color=\"primary\" >Datenschutzerklärungen!",
|
"data-privacy": "Ich habe die <a href=\"https://human-connection.org/datenschutz/\" target=\"_blank\"><ds-text bold color=\"primary\" >Datenschutzerklärungen!</ds-text></a> gelesen und verstanden",
|
||||||
"minimum-age": "Du musst das 18 Lebensjahr abgeschlossen haben!",
|
"minimum-age": "Ich bin 18 Jahre oder älter.",
|
||||||
"invitation-code": "Dein Einladungscode lautet: <b>{code}</b>",
|
"invitation-code": "Dein Einladungscode lautet: <b>{code}</b>",
|
||||||
"errors": {
|
"errors": {
|
||||||
"email-exists": "Es gibt schon ein Benutzerkonto mit dieser E-Mail Adresse!",
|
"email-exists": "Es gibt schon ein Benutzerkonto mit dieser E-Mail Adresse!",
|
||||||
|
|||||||
@ -31,9 +31,9 @@
|
|||||||
"title": "Join Human Connection!",
|
"title": "Join Human Connection!",
|
||||||
"form": {
|
"form": {
|
||||||
"description": "To get started, enter your email address:",
|
"description": "To get started, enter your email address:",
|
||||||
"terms-and-condition": "Our <a href=\"/terms-and-conditions\"><ds-text bold color=\"primary\" > terms of conditions!</ds-text></a> apply!",
|
"terms-and-condition": "I confirm to the <a href=\"/terms-and-conditions\"><ds-text bold color=\"primary\" > Terms and conditions</ds-text></a>.",
|
||||||
"data-privacy": "Our <a href=\"https://human-connection.org/datenschutz/\" target=\"_blank\"><ds-text bold color=\"primary\" > Data privacy </ds-text></a> apply!",
|
"data-privacy": " I have read and understood the <a href=\"https://human-connection.org/datenschutz/\" target=\"_blank\"><ds-text bold color=\"primary\" >Privacy Statement</ds-text></a> ",
|
||||||
"minimum-age": "You must be at least 18 years old!",
|
"minimum-age": "I'm 18 years or older.",
|
||||||
"invitation-code": "Your invitation code is: <b>{code}</b>",
|
"invitation-code": "Your invitation code is: <b>{code}</b>",
|
||||||
"errors": {
|
"errors": {
|
||||||
"email-exists": "There is already a user account with this email address!",
|
"email-exists": "There is already a user account with this email address!",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user