minor on admin/places

This commit is contained in:
lesion
2019-07-27 23:49:23 +02:00
parent 554913f544
commit c8a3eef3db
3 changed files with 9 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ div#list
el-timeline el-timeline
el-timeline-item( el-timeline-item(
v-for='event in events' v-for='event in events'
:key='event.id' :key='event.start_datetime'
:timestamp='event|when' :timestamp='event|when'
placement='top' icon='el-icon-arrow-down' size='large' placement='top' icon='el-icon-arrow-down' size='large'
) )

View File

@@ -1,17 +1,23 @@
<template lang='pug'> <template lang='pug'>
div div
p(v-html="$t('admin.place_description')") p(v-html="$t('admin.place_description')")
el-form.mb-2(:inline='true' label-width='120px') el-form.mb-2(inline label-width='120px')
el-form-item(:label="$t('common.name')") el-form-item(:label="$t('common.name')")
el-input.mr-1(:placeholder='$t("common.name")' v-model='place.name') el-input.mr-1(:placeholder='$t("common.name")' v-model='place.name')
el-form-item(:label="$t('common.address')") el-form-item(:label="$t('common.address')")
el-input.mr-1(:placeholder='$t("common.address")' v-model='place.address') el-input.mr-1(:placeholder='$t("common.address")' v-model='place.address')
el-button(variant='primary' @click='savePlace') {{$t('common.save')}} el-button(variant='primary' @click='savePlace') {{$t('common.save')}}
el-table(:data='paginatedPlaces' small @current-change="val => place=val") el-table(:data='paginatedPlaces' small)
el-table-column(:label="$t('common.name')") el-table-column(:label="$t('common.name')")
template(slot-scope='data') {{data.row.name}} template(slot-scope='data') {{data.row.name}}
el-table-column(:label="$t('common.address')") el-table-column(:label="$t('common.address')")
template(slot-scope='data') {{data.row.address}} template(slot-scope='data') {{data.row.address}}
el-table-column(:label="$t('common.actions')")
template(slot-scope='data')
el-button(size='mini'
type='success'
@click='place = data.row') {{$t('common.edit')}}
no-ssr no-ssr
el-pagination(:page-size='perPage' :currentPage.sync='placePage' :total='places.length') el-pagination(:page-size='perPage' :currentPage.sync='placePage' :total='places.length')
</template> </template>

View File

@@ -1,8 +1,6 @@
{ {
"title": "Gancio", "title": "Gancio",
"description": "A shared agenda for local communities", "description": "A shared agenda for local communities",
"favicon" : "../dist/favicon.ico",
"user_locale": "./user_locale",
"baseurl": "http://localhost:13120", "baseurl": "http://localhost:13120",
"server": { "server": {
"host": "localhost", "host": "localhost",