Fixes to event editor

This commit is contained in:
ssmucny 2023-06-04 23:21:34 -04:00
parent 1f5b368f5c
commit fbe451f083
2 changed files with 35 additions and 4 deletions

28
locales/index.d.ts vendored
View File

@ -1023,6 +1023,9 @@ export interface Locale {
"accountMovedShort": string; "accountMovedShort": string;
"operationForbidden": string; "operationForbidden": string;
"forceShowAds": string; "forceShowAds": string;
"event": string;
"events": string;
"reverseChronological": string;
"addMemo": string; "addMemo": string;
"editMemo": string; "editMemo": string;
"reactionsList": string; "reactionsList": string;
@ -1084,6 +1087,31 @@ export interface Locale {
"_serverRules": { "_serverRules": {
"description": string; "description": string;
}; };
"_event": {
"title": string;
"startDateTime": string;
"endDateTime": string;
"startDate": string;
"endDate": string;
"startTime": string;
"endTime": string;
"detailName": string;
"detailValue": string;
"location": string;
"url": string;
"doorTime": string;
"organizer": string;
"organizerLink": string;
"audience": string;
"language": string;
"ageRange": string;
"ticketsUrl": string;
"isFree": string;
"price": string;
"availabilityStart": string;
"availabilityEnd": string;
"keywords": string;
};
"_accountMigration": { "_accountMigration": {
"moveFrom": string; "moveFrom": string;
"moveFromSub": string; "moveFromSub": string;

View File

@ -9,6 +9,8 @@
<MkInput v-model="startDate" small type="date" class="input"> <MkInput v-model="startDate" small type="date" class="input">
<template #label>*{{ i18n.ts._event.startDate }}</template> <template #label>*{{ i18n.ts._event.startDate }}</template>
</MkInput> </MkInput>
</section>
<section>
<MkInput v-model="startTime" small type="time" class="input"> <MkInput v-model="startTime" small type="time" class="input">
<template #label>*{{ i18n.ts._event.startTime }}</template> <template #label>*{{ i18n.ts._event.startTime }}</template>
</MkInput> </MkInput>
@ -17,12 +19,12 @@
<MkInput v-model="endDate" small type="date" class="input"> <MkInput v-model="endDate" small type="date" class="input">
<template #label>{{ i18n.ts._event.endDate }}</template> <template #label>{{ i18n.ts._event.endDate }}</template>
</MkInput> </MkInput>
</section>
<section>
<MkInput v-model="endTime" small type="time" class="input"> <MkInput v-model="endTime" small type="time" class="input">
<template #label>{{ i18n.ts._event.endTime }}</template> <template #label>{{ i18n.ts._event.endTime }}</template>
</MkInput> </MkInput>
</section> </section>
</div>
<div>
<section> <section>
<MkInput v-model="location" small type="text" class="input"> <MkInput v-model="location" small type="text" class="input">
<template #label>{{ i18n.ts._event.location }}</template> <template #label>{{ i18n.ts._event.location }}</template>
@ -34,6 +36,7 @@
</MkInput> </MkInput>
</section> </section>
</div> </div>
<br/>
<div> <div>
<section> <section>
<MkInput v-model="doorTime" small type="time" class="input"> <MkInput v-model="doorTime" small type="time" class="input">
@ -76,8 +79,8 @@
</MkInput> </MkInput>
</section> </section>
<section> <section>
<MkSwitch :model-value="isFree" small type="" class="input"> <MkSwitch v-model="isFree" :disabled="false">
<template #label>{{ i18n.ts._event.isFree }}</template> {{ i18n.ts._event.isFree }}
</MkSwitch> </MkSwitch>
</section> </section>
<section> <section>