diff --git a/pages/add/_edit.vue b/pages/add/_edit.vue
index 894c8eb8..9cf9e737 100644
--- a/pages/add/_edit.vue
+++ b/pages/add/_edit.vue
@@ -1,6 +1,8 @@
- v-container
- h2.text-center {{edit?$t('common.edit_event'):$t('common.add_event')}}
+ v-container.container
+ v-card
+ v-card-title {{edit?$t('common.edit_event'):$t('common.add_event')}}
+ v-card-text
v-form(v-model='valid')
//- NOT LOGGED EVENT
@@ -12,38 +14,41 @@
v-text-field.mb-3(v-model='event.title'
:rules="[validators.required('title')]"
:label="$t('event.what_description')"
+ autofocus
ref='title')
//- description
//- span {{$t('event.description_description')}}
Editor(
v-model='event.description'
- :label="$t('event.description')"
+ :label="$t('event.description_description')"
style='max-height: 400px;')
//- tags
//- div {{$t('event.tag_description')}}
//- client-only
- v-combobox(v-model='event.tags'
- chips multiple
- :items="tags"
- item-text='tag',
- item-value='tag'
+ v-combobox.mt-3(v-model='event.tags'
+ chips small-chips multiple deletable-chips hide-no-data hide-selected
+ :delimiters="[',', ' ']"
+ :items="tags.map(t => t.tag)"
:hints="$t('event.tag_description')"
:label="$t('common.tags')")
- //- v-option(v-for='tag in filteredTags' :key='tag.tag' :label='tag.tag' :value='tag.tag')
//- WHERE
//- v-divider
//- i.el-icon-location-outline
//- span {{$t('common.where')}}
//- p(v-html="$t('event.where_description')")
- v-autocomplete(v-model='event.place.name'
+ v-combobox(v-model='event.place.name'
:label="$t('common.where')"
:items="places"
- item-text="name"
- item-value="name"
+ item-text='name'
@change='selectPlace')
+ template(v-slot:item="{ item }")
+ v-list
+ v-list-item-content
+ v-list-item-title {{item.name}}
+ v-list-item-subtitle {{item.address}}
//- div {{$t("common.address")}}
v-text-field(ref='address' :label="$t('common.address')" v-model='event.place.address' :disabled='disableAddress')
@@ -149,10 +154,10 @@
persistent-hint
accept='image/*')
- v-card-actions
- v-spacer
- v-btn(@click='done' :loading='loading' :disabled='!valid || loading'
- color='primary') {{edit?$t('common.edit'):$t('common.send')}}
+ v-card-actions
+ v-spacer
+ v-btn(@click='done' :loading='loading' :disabled='!valid || loading'
+ color='primary') {{edit?$t('common.edit'):$t('common.send')}}