Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
c8a3eef3
Commit
c8a3eef3
authored
Jul 27, 2019
by
les
Browse files
minor on admin/places
parent
554913f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
components/List.vue
View file @
c8a3eef3
...
...
@@ -4,7 +4,7 @@ div#list
el-timeline
el-timeline-item(
v-for='event in events'
:key='event.
id
'
:key='event.
start_datetime
'
:timestamp='event|when'
placement='top' icon='el-icon-arrow-down' size='large'
)
...
...
components/admin/Places.vue
View file @
c8a3eef3
<
template
lang=
'pug'
>
div
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-input.mr-1(:placeholder='$t("common.name")' v-model='place.name')
el-form-item(:label="$t('common.address')")
el-input.mr-1(:placeholder='$t("common.address")' v-model='place.address')
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')")
template(slot-scope='data')
{{
data
.
row
.
name
}}
el-table-column(:label="$t('common.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
el-pagination(:page-size='perPage' :currentPage.sync='placePage' :total='places.length')
</
template
>
...
...
config/default.json
View file @
c8a3eef3
{
"title"
:
"Gancio"
,
"description"
:
"A shared agenda for local communities"
,
"favicon"
:
"../dist/favicon.ico"
,
"user_locale"
:
"./user_locale"
,
"baseurl"
:
"http://localhost:13120"
,
"server"
:
{
"host"
:
"localhost"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment