From fad1ab212e9525662cb8a22a85ef78c10e7969fa Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 25 Apr 2023 22:03:05 +0200 Subject: [PATCH] locales, style, events --- .../ContributionForm/ContributionForm.vue | 45 ++++++++++--------- webapp/locales/de.json | 7 ++- webapp/locales/en.json | 7 ++- 3 files changed, 37 insertions(+), 22 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 0a598f99f..94166306a 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -52,12 +52,14 @@ {{ contentLength }} + -
- {{ formData.eventStart }} +
+
+ - +
@@ -76,7 +79,7 @@
- +
- - {{ formData.eventLocationName.length }}/{{ formSchema.eventLocationName.max }} - + + {{ formData.eventVenue.length }}/{{ formSchema.eventVenue.max }} +
- +
- {{ errors }} - - {{ formData.eventVenue.length }}/{{ formSchema.eventVenue.max }} - + + {{ formData.eventLocationName.length }}/{{ formSchema.eventLocationName.max }} +
@@ -121,10 +124,12 @@ name="eventIsOnline" style="font-size: larger" /> - Online Event + {{ $t('post.viewEvent.eventIsOnline') }}
+ +
- + category.id) : [], eventStart: eventStart || null, eventEnd: eventEnd || null, - eventLocation: eventLocation || 'Dresden, Saxony, Germany', + eventLocation: eventLocation || '', eventLocationName: eventLocationName || '', eventVenue: eventVenue || '', eventIsOnline: eventIsOnline || true, @@ -272,7 +277,6 @@ export default { }), eventInput() { if (this.creatEvent) { - alert(typeof this.formData.eventStart) return { eventStart: this.formData.eventStart, eventLocation: this.formData.eventLocation, @@ -501,11 +505,12 @@ export default { width: 100%; } .mx-datepicker input { - font-size: 1.25rem; + font-size: 1rem; height: calc(1.625rem + 18px); padding: 8px 8px; background-color: #faf9fa; border-color: #c8c8c8; + color: #4b4554; } .mx-datepicker input:hover { border-color: #c8c8c8; diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 7ef2f0fcd..347e4130f 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -728,7 +728,12 @@ "forGroup": { "title": "In der Gruppe „{name}“" }, - "title": "Event" + "title": "Veranstaltung", + "eventStart":"Beginn", + "eventEnd":"Ende", + "eventVenue":"Veranstaltungsort", + "eventLocationName":"Stadt", + "eventIsOnline":"Online Veranstaltung" } }, "profile": { diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 1fdb5c7ac..1b6711887 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -725,7 +725,12 @@ "title": "Post" }, "viewEvent": { - "title": "Event" + "title": "Event", + "eventStart":"Start", + "eventEnd":"End", + "eventVenue":"Venue", + "eventLocationName":"City", + "eventIsOnline":"Online Event" } }, "profile": {