add asteriks to mandatory field

This commit is contained in:
ogerly 2022-08-05 17:56:54 +02:00
parent 9b97608a24
commit fd2875b201
3 changed files with 14 additions and 5 deletions

View File

@ -13,7 +13,7 @@
</div>
</div>
<b-form ref="form" @submit.prevent="submit" class="border p-3">
<label>{{ $t('contribution.selectDate') }}</label>
<label>{{ $t('contribution.selectDate') }} {{ $t('math.asterisk') }}</label>
<b-form-datepicker
id="contribution-date"
v-model="form.date"
@ -37,18 +37,20 @@
:name="$t('form.message')"
v-slot="{ errors }"
>
<label class="mt-3">{{ $t('contribution.activity') }}</label>
<label class="mt-3">{{ $t('contribution.activity') }} {{ $t('math.asterisk') }}</label>
<b-form-textarea
id="contribution-memo"
v-model="form.memo"
rows="3"
max-rows="6"
:placeholder="$t('contribution.yourActivity')"
required
></b-form-textarea>
<b-col v-if="errors">
<span v-for="error in errors" class="errors" :key="error">{{ error }}</span>
</b-col>
</validation-provider>
<label class="mt-3">{{ $t('form.amount') }}</label>
<label class="mt-3">{{ $t('form.amount') }} {{ $t('math.asterisk') }}</label>
<b-input-group size="lg" prepend="GDD" append=".00">
<b-form-input
id="contribution-amount"
@ -83,6 +85,7 @@
</b-col>
</b-row>
</b-form>
<p class="p-2">{{ $t('math.asterisk') }} {{ $t('form.mandatoryField') }}</p>
</div>
</template>
<script>

View File

@ -33,6 +33,7 @@
},
"contribution": {
"activity": "Tätigkeit",
"yourActivity":"Bitte trage eine Tätigkeit ein!",
"alert": {
"communityNoteList": "Hier findest du alle eingereichten und bestätigten Beiträge von allen Mitgliedern aus dieser Gemeinschaft.",
"confirm": "bestätigt",
@ -117,6 +118,7 @@
"from": "Von",
"generate_now": "Jetzt generieren",
"lastname": "Nachname",
"mandatoryField":"Pflichtfeld",
"memo": "Nachricht",
"message": "Nachricht",
"new_balance": "Neuer Kontostand nach Bestätigung",
@ -206,7 +208,8 @@
"aprox": "~",
"equal": "=",
"minus": "",
"pipe": "|"
"pipe": "|",
"asterisk":"*"
},
"message": {
"activateEmail": "Dein Konto wurde noch nicht aktiviert. Bitte überprüfe deine E-Mail und klicke den Aktivierungslink oder fordere einen neuen Aktivierungslink über die Password Reset Seite an.",

View File

@ -33,6 +33,7 @@
},
"contribution": {
"activity": "Activity",
"yourActivity":"Please enter an activity!",
"alert": {
"communityNoteList": "Here you will find all submitted and confirmed contributions from all members of this community.",
"confirm": "confirmed",
@ -117,6 +118,7 @@
"from": "from",
"generate_now": "Generate now",
"lastname": "Lastname",
"mandatoryField":"mandatory field",
"memo": "Message",
"message": "Message",
"new_balance": "Account balance after confirmation",
@ -206,7 +208,8 @@
"aprox": "~",
"equal": "=",
"minus": "",
"pipe": "|"
"pipe": "|",
"asterisk":"*"
},
"message": {
"activateEmail": "Your account has not been activated yet. Please check your emails and click the activation link or order a new activation link over the password reset page.",