suggestions, flex position for little screens + thirdparty links

This commit is contained in:
2021-05-10 16:33:41 +02:00
parent 3447117742
commit 109bf5ec5d
4 changed files with 21 additions and 22 deletions

View File

@@ -1,24 +1,21 @@
<template>
<div class="list-item" :class="{ checked: isChecked }">
<!--a class="discret" target="_blank" :href="url.show">{{ item.id }}</a-->
<input class=""
type="checkbox"
v-model="selected"
:value="item" />
<div class="container">
<input type="checkbox"
v-model="selected"
:value="item" />
</div>
<suggestion-person
v-if="item.result.type === 'person'"
v-bind:item="item"
>
v-bind:item="item">
</suggestion-person>
<suggestion-third-party
v-if="item.result.type === 'thirdparty'"
v-bind:item="item"
>
v-bind:item="item">
</suggestion-third-party>
</div>
</template>

View File

@@ -11,10 +11,10 @@
</div>
<div class="right_actions">
<span class="badge badge-pill badge-secondary" :title="item.result.person_id">
<span class="badge badge-pill badge-secondary" :title="item.key">
{{ $t('item.type_person') }}
</span>
<a class="sc-button bt-show" target="_blank" :title="item.result.person_id" :href="url.show"></a>
<a class="sc-button bt-show" target="_blank" :title="item.key" :href="url.show"></a>
</div>
</template>

View File

@@ -12,10 +12,10 @@
</div>
<div class="right_actions">
<span class="badge badge-pill badge-secondary" :title="item.result.thirdparty_id">
<span class="badge badge-pill badge-secondary" :title="item.key">
{{ $t('item.type_thirdparty') }}
</span>
<a class="sc-button bt-show" target="_blank" :title="item.result.thirdparty_id" :href="url.show"></a>
<a class="sc-button bt-show" target="_blank" :title="item.key" :href="url.show"></a>
</div>
</template>
@@ -27,8 +27,8 @@ export default {
data() {
return {
url: {
show: '/fr/person/' + this.item.result.thirdparty_id + '/general',
edit: '/fr/person/' + this.item.result.thirdparty_id + '/general/edit'
show: '/fr/thirdparty/thirdparty/' + this.item.result.thirdparty_id + '/show',
edit: '/fr/thirdparty/thirdparty/' + this.item.result.thirdparty_id + '/edit'
},
}
},