Commit 2fcb5f5d authored by Tobinsk's avatar Tobinsk
Browse files

Merge branch '15-personlistinfo-edit-form' into 'master'

Resolve "PersonListInfo Edit Form"

Closes #15

See merge request !12
parents 4fd7466d a8195084
......@@ -26,12 +26,8 @@
<b-list-group flush>
<template v-for="(concordance, k1) in list">
<b-list-group-item v-for="(person, key) in concordance.persons" :key="`${k1}${key}`">
<div class="d-flex justify-content-between group-row" :class="person.error ? 'has-error':''">
<div>{{person.first_name}}</div>
<div>{{person.last_name}}</div>
<div>{{person.birth_date}}</div>
<div>{{person.death_date}}</div>
<div class="provider">{{person.provider}}</div>
<div class="d-flex" :class="person.error ? 'has-error':''">
<PersonInfoRow :person="person" class="flex-grow-1"></PersonInfoRow>
<div class="action">
<b-button @click="preRemovePerson(person)" size="sm" v-b-tooltip.hover title="Remove person from concordance">
<b-icon icon="trash"></b-icon>
......@@ -50,8 +46,10 @@
import {mapGetters, mapMutations, mapActions} from 'vuex';
import checks from '../plugins/checks';
import {Getters} from "@/store/concordance/type";
import PersonInfoRow from "@/components/PersonInfoRow";
export default {
name: "EditForm",
components: {PersonInfoRow},
data() {
return {
isOpen: false,
......@@ -278,15 +276,6 @@
.group-row {
flex-wrap: nowrap;
> div {
text-align: left;
width: 20%;
}
.provider {
width: 17%;
}
.action {
width: 3%;
text-align: right;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment