Graphical changes

This commit is contained in:
ogerly 2019-08-22 16:23:13 +02:00
parent 54750e39b8
commit f34cef22f2
3 changed files with 12 additions and 54 deletions

View File

@ -571,7 +571,7 @@
"termsAndConditions": { "termsAndConditions": {
"termsAndConditionsConfirmed": "Ich habe die <a href=\"/terms-and-conditions\" target=\"_blank\">Nutzungsbedingungen</a> durchgelesen und stimme ihnen zu.", "termsAndConditionsConfirmed": "Ich habe die <a href=\"/terms-and-conditions\" target=\"_blank\">Nutzungsbedingungen</a> durchgelesen und stimme ihnen zu.",
"newTermsAndConditions": "Neue Nutzungsbedingungen", "newTermsAndConditions": "Neue Nutzungsbedingungen",
"termsAndConditionsNewConfirmText": "Neue Nutzungsbedingungen jetzt lesen!", "termsAndConditionsNewConfirmText": "Bitte lies dir die neue Nutzungsbedingungen jetzt durch!",
"termsAndConditionsNewConfirm": "Ich habe die neuen Nutzungsbedingungen durchgelesen und stimme zu.", "termsAndConditionsNewConfirm": "Ich habe die neuen Nutzungsbedingungen durchgelesen und stimme zu.",
"agree": "Ich stimme zu!", "agree": "Ich stimme zu!",
"risk": { "risk": {

View File

@ -571,7 +571,7 @@
"termsAndConditions": { "termsAndConditions": {
"newTermsAndConditions": "New Terms and Conditions", "newTermsAndConditions": "New Terms and Conditions",
"termsAndConditionsConfirmed": "I have read and confirmed the <a href=\"/terms-and-conditions\" target=\"_blank\">Terms and Conditions</a>.", "termsAndConditionsConfirmed": "I have read and confirmed the <a href=\"/terms-and-conditions\" target=\"_blank\">Terms and Conditions</a>.",
"termsAndConditionsNewConfirmText": "Read new terms of conditions now!", "termsAndConditionsNewConfirmText": "Please read the new terms of use now!",
"termsAndConditionsNewConfirm": "I have read and agree to the new terms of conditions.", "termsAndConditionsNewConfirm": "I have read and agree to the new terms of conditions.",
"agree": "I agree!", "agree": "I agree!",
"risk": { "risk": {

View File

@ -1,59 +1,25 @@
<template> <template>
<ds-container width="medium"> <ds-container width="medium">
<ds-card icon="balance-scale" header=" " primary centered> <ds-card icon="balance-scale" :header="$t(`termsAndConditions.newTermsAndConditions`)" centered>
<p>
<ds-button>
<nuxt-link class="post-link" :to="{ name: 'terms-and-conditions' }" target="_blank">
{{ $t(`termsAndConditions.termsAndConditionsNewConfirmText`) }}
</nuxt-link>
</ds-button>
</p>
<ds-text> <ds-text>
<input <input id="checkbox" type="checkbox" v-model="checked" :checked="checked" />
id="checkbox"
type="checkbox"
v-model="termsAndConditionsConfirmed"
:checked="checked"
/>
<label <label
for="checkbox" for="checkbox"
v-html="$t('termsAndConditions.termsAndConditionsNewConfirm')" v-html="$t('termsAndConditions.termsAndConditionsNewConfirm')"
></label> ></label>
<ds-button ghost @click="isOpen = true">
{{ $t(`termsAndConditions.termsAndConditionsNewConfirmText`) }}
</ds-button>
</ds-text> </ds-text>
<template slot="footer"> <template slot="footer">
<ds-button <ds-button primary @click="submit" :disabled="!checked">{{ $t(`actions.save`) }}</ds-button>
secondary
@click="submit"
:disabled="disabledSubmitButton && !termsAndConditionsConfirmed"
>
{{ $t(`actions.save`) }}
</ds-button>
</template> </template>
</ds-card> </ds-card>
<ds-modal
v-if="isOpen"
v-model="isOpen"
:title="$t('termsAndConditions.newTermsAndConditions')"
force
extended
:confirm-label="$t('termsAndConditions.agree')"
:cancel-label="$t('actions.cancel')"
v-on:confirm=";(disabledSubmitButton = false), (termsAndConditionsConfirmed = true)"
v-on:cancel="disabledSubmitButton = true"
>
<div>
<ol>
<li v-for="section in sections" :key="section">
<strong>{{ $t(`termsAndConditions.${section}.title`) }}:</strong>
<p v-html="$t(`termsAndConditions.${section}.description`)" />
</li>
</ol>
<p>{{ $t(`termsAndConditions.have-fun`) }}</p>
<br />
<p>
<strong v-html="$t(`termsAndConditions.closing`)" />
</p>
</div>
</ds-modal>
</ds-container> </ds-container>
</template> </template>
@ -80,17 +46,9 @@ export default {
...mapGetters({ ...mapGetters({
currentUser: 'auth/user', currentUser: 'auth/user',
}), }),
compiledData() {
return {
template: `<p>${this.data}</p>`,
}
},
}, },
data() { data() {
return { return {
disabledSubmitButton: false,
isOpen: true,
termsAndConditionsConfirmed: false,
checked: false, checked: false,
sections: [ sections: [
'risk', 'risk',