...and Places
This commit is contained in:
parent
56ccbb5973
commit
e0d2f6c231
1 changed files with 40 additions and 40 deletions
|
@ -1,48 +1,48 @@
|
||||||
<template lang='pug'>
|
<template lang='pug'>
|
||||||
v-container
|
v-container
|
||||||
v-card-title {{$t('common.places')}}
|
v-card-title {{$t('common.places')}}
|
||||||
v-spacer
|
v-spacer
|
||||||
v-text-field(v-model='search'
|
v-text-field(v-model='search'
|
||||||
:append-icon='mdiMagnify' outlined rounded
|
:append-icon='mdiMagnify' outlined rounded
|
||||||
label='Search'
|
label='Search'
|
||||||
single-line hide-details)
|
single-line hide-details)
|
||||||
v-card-subtitle(v-html="$t('admin.place_description')")
|
v-card-subtitle(v-html="$t('admin.place_description')")
|
||||||
|
|
||||||
v-dialog(v-model='dialog' width='600' :fullscreen='$vuetify.breakpoint.xsOnly')
|
v-dialog(v-model='dialog' width='600' :fullscreen='$vuetify.breakpoint.xsOnly')
|
||||||
v-card(color='secondary')
|
v-card(color='secondary')
|
||||||
v-card-title {{$t('admin.edit_place')}}
|
v-card-title {{$t('admin.edit_place')}}
|
||||||
v-card-text
|
v-card-text
|
||||||
v-form(v-model='valid' ref='form' lazy-validation)
|
v-form(v-model='valid' ref='form' lazy-validation)
|
||||||
v-text-field(
|
v-text-field(
|
||||||
:rules="[$validators.required('common.name')]"
|
:rules="[$validators.required('common.name')]"
|
||||||
:label="$t('common.name')"
|
:label="$t('common.name')"
|
||||||
v-model='place.name'
|
v-model='place.name'
|
||||||
:placeholder='$t("common.name")')
|
:placeholder='$t("common.name")')
|
||||||
|
|
||||||
v-text-field(
|
v-text-field(
|
||||||
:rules="[$validators.required('common.address')]"
|
:rules="[$validators.required('common.address')]"
|
||||||
:label="$t('common.address')"
|
:label="$t('common.address')"
|
||||||
v-model='place.address'
|
v-model='place.address'
|
||||||
:placeholder='$t("common.address")')
|
:placeholder='$t("common.address")')
|
||||||
|
|
||||||
v-card-actions
|
v-card-actions
|
||||||
v-spacer
|
v-spacer
|
||||||
v-btn(@click='dialog=false' color='warning') {{$t('common.cancel')}}
|
v-btn(@click='dialog=false' color='warning') {{$t('common.cancel')}}
|
||||||
v-btn(@click='savePlace' color='primary' :loading='loading'
|
v-btn(@click='savePlace' color='primary' :loading='loading'
|
||||||
:disable='!valid || loading') {{$t('common.save')}}
|
:disable='!valid || loading') {{$t('common.save')}}
|
||||||
|
|
||||||
v-card-text
|
v-card-text
|
||||||
v-data-table(
|
v-data-table(
|
||||||
:headers='headers'
|
:headers='headers'
|
||||||
:items='places'
|
:items='places'
|
||||||
:hide-default-footer='places.length<5'
|
:hide-default-footer='places.length<5'
|
||||||
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
:footer-props='{ prevIcon: mdiChevronLeft, nextIcon: mdiChevronRight }'
|
||||||
:search='search')
|
:search='search')
|
||||||
template(v-slot:item.actions='{item}')
|
template(v-slot:item.actions='{item}')
|
||||||
v-btn(@click='editPlace(item)' color='primary' icon)
|
v-btn(@click='editPlace(item)' color='primary' icon)
|
||||||
v-icon(v-text='mdiPencil')
|
v-icon(v-text='mdiPencil')
|
||||||
nuxt-link(:to='`/p/${item.name}`')
|
nuxt-link(:to='`/p/${item.name}`')
|
||||||
v-icon(v-text='mdiEye')
|
v-icon(v-text='mdiEye')
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in a new issue