mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
create style for badge 3party and introduce in ThirdPartyRenderBox.vue
This commit is contained in:
parent
88d073b9a9
commit
b84d0100e0
@ -19,13 +19,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right_actions">
|
<div class="right_actions">
|
||||||
|
|
||||||
<span class="badge bg-chill-blue" v-if="item.result.kind == 'child'">
|
<span class="badge bg-thirdparty-child" v-if="item.result.kind == 'child'">
|
||||||
{{ $t('thirdparty.child')}}
|
{{ $t('thirdparty.child')}}
|
||||||
</span>
|
</span>
|
||||||
<span class="badge bg-info" v-else-if="item.result.kind == 'company'">
|
<span class="badge bg-thirdparty-company" v-else-if="item.result.kind == 'company'">
|
||||||
{{ $t('thirdparty.company')}}
|
{{ $t('thirdparty.company')}}
|
||||||
</span>
|
</span>
|
||||||
<span class="badge bg-secondary" v-else="item.result.kind == 'contact'">
|
<span class="badge bg-thirdparty-contact" v-else="item.result.kind == 'contact'">
|
||||||
{{ $t('thirdparty.contact')}}
|
{{ $t('thirdparty.contact')}}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
@import 'ChillMainAssets/module/bootstrap/shared';
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
&.bg-thirdparty-company {
|
||||||
|
//@extend .bg-info;
|
||||||
|
background-color: $yellow;
|
||||||
|
}
|
||||||
|
&.bg-thirdparty-child {
|
||||||
|
//@extend .bg-chill-blue;
|
||||||
|
background-color: $chill-blue;
|
||||||
|
}
|
||||||
|
&.bg-thirdparty-contact {
|
||||||
|
//@extedn .bg-secondary;
|
||||||
|
background-color: $secondary;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
require('./chillthirdparty.scss');
|
@ -1,2 +1,2 @@
|
|||||||
require('./chillthirdparty.scss');
|
require('./index_3party.scss');
|
||||||
|
|
||||||
|
@ -13,6 +13,16 @@
|
|||||||
</a>
|
</a>
|
||||||
<span class="name">{{ thirdparty.text }}</span>
|
<span class="name">{{ thirdparty.text }}</span>
|
||||||
|
|
||||||
|
<span class="badge bg-thirdparty-child" v-if="thirdparty.kind == 'child'">
|
||||||
|
{{ $t('thirdparty.child')}}
|
||||||
|
</span>
|
||||||
|
<span class="badge bg-thirdparty-company" v-else-if="thirdparty.kind == 'company'">
|
||||||
|
{{ $t('thirdparty.company')}}
|
||||||
|
</span>
|
||||||
|
<span class="badge bg-thirdparty-contact" v-else="thirdparty.kind == 'contact'">
|
||||||
|
{{ $t('thirdparty.contact')}}
|
||||||
|
</span>
|
||||||
|
|
||||||
<span v-if="options.addId == true" class="id-number" :title="'n° ' + thirdparty.id">{{ thirdparty.id }}</span>
|
<span v-if="options.addId == true" class="id-number" :title="'n° ' + thirdparty.id">{{ thirdparty.id }}</span>
|
||||||
<span v-if="options.addEntity == true && thirdparty.type === 'thirdparty'" class="badge rounded-pill bg-secondary">{{ $t('renderbox.type.thirdparty') }}</span>
|
<span v-if="options.addEntity == true && thirdparty.type === 'thirdparty'" class="badge rounded-pill bg-secondary">{{ $t('renderbox.type.thirdparty') }}</span>
|
||||||
|
|
||||||
@ -57,11 +67,23 @@
|
|||||||
import AddressRenderBox from 'ChillMainAssets/vuejs/_components/Entity/AddressRenderBox.vue';
|
import AddressRenderBox from 'ChillMainAssets/vuejs/_components/Entity/AddressRenderBox.vue';
|
||||||
import {dateToISO} from 'ChillMainAssets/chill/js/date.js';
|
import {dateToISO} from 'ChillMainAssets/chill/js/date.js';
|
||||||
|
|
||||||
|
const i18n = {
|
||||||
|
messages: {
|
||||||
|
fr: {
|
||||||
|
tparty: {
|
||||||
|
contact: "Personne physique",
|
||||||
|
company: "Personne morale"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ThirdPartyRenderBox",
|
name: "ThirdPartyRenderBox",
|
||||||
components: {
|
components: {
|
||||||
AddressRenderBox
|
AddressRenderBox
|
||||||
},
|
},
|
||||||
|
i18n,
|
||||||
props: ['thirdparty', 'options'],
|
props: ['thirdparty', 'options'],
|
||||||
computed: {
|
computed: {
|
||||||
isMultiline: function() {
|
isMultiline: function() {
|
||||||
|
@ -24,13 +24,17 @@
|
|||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input mt-0" type="radio" v-model="kind" value="company" id="tpartyKindInstitution">
|
<input class="form-check-input mt-0" type="radio" v-model="kind" value="company" id="tpartyKindInstitution">
|
||||||
<label for="tpartyKindInstitution" class="required">
|
<label for="tpartyKindInstitution" class="required">
|
||||||
{{ $t('tparty.company')}}
|
<span class="badge bg-thirdparty-company">
|
||||||
|
{{ $t('tparty.company')}}
|
||||||
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input mt-0" type="radio" v-model="kind" value="contact" id="tpartyKindContact">
|
<input class="form-check-input mt-0" type="radio" v-model="kind" value="contact" id="tpartyKindContact">
|
||||||
<label for="tpartyKindContact" class="required">
|
<label for="tpartyKindContact" class="required">
|
||||||
{{ $t('tparty.contact')}}
|
<span class="badge bg-thirdparty-contact">
|
||||||
|
{{ $t('tparty.contact')}}
|
||||||
|
</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -81,13 +81,7 @@
|
|||||||
<div class="item-row entity-bloc">
|
<div class="item-row entity-bloc">
|
||||||
<div class="item-col">
|
<div class="item-col">
|
||||||
{{ _self.label(thirdparty, options) }}
|
{{ _self.label(thirdparty, options) }}
|
||||||
{% if thirdparty.kind == 'company' %}
|
<span class="badge bg-thirdparty-{{ thirdparty.kind }}">{{ ('thirdparty.' ~ thirdparty.kind)|trans }}</span>
|
||||||
<span class="badge bg-info">{{ 'thirdparty.company'|trans }}</span>
|
|
||||||
{% elseif thirdparty.kind == 'child' %}
|
|
||||||
<span class="badge bg-chill-blue">{{ 'thirdparty.Child'|trans }}</span>
|
|
||||||
{% elseif thirdparty.kind == 'contact' %}
|
|
||||||
<span class="badge bg-secondary">{{ 'thirdparty.contact'|trans }}</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="item-col">
|
<div class="item-col">
|
||||||
<ul class="list-content fa-ul">
|
<ul class="list-content fa-ul">
|
||||||
|
@ -5,6 +5,8 @@ module.exports = function(encore, entries)
|
|||||||
ChillThirdPartyAssets: __dirname + '/Resources/public'
|
ChillThirdPartyAssets: __dirname + '/Resources/public'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
entries.push(__dirname + '/Resources/public/chill/index.js');
|
||||||
|
|
||||||
encore.addEntry(
|
encore.addEntry(
|
||||||
'page_3party_3party_index',
|
'page_3party_3party_index',
|
||||||
__dirname + '/Resources/public/page/index/index.js'
|
__dirname + '/Resources/public/page/index/index.js'
|
||||||
|
@ -16,7 +16,9 @@ thirdparty.NameCompany: Service/Département
|
|||||||
thirdparty.Acronym: Sigle
|
thirdparty.Acronym: Sigle
|
||||||
thirdparty.Categories: Catégories
|
thirdparty.Categories: Catégories
|
||||||
thirdparty.Child: Personne de contact
|
thirdparty.Child: Personne de contact
|
||||||
|
thirdparty.child: Personne de contact
|
||||||
thirdparty.Children: Personnes de contact
|
thirdparty.Children: Personnes de contact
|
||||||
|
thirdparty.children: Personnes de contact
|
||||||
thirdparty.Parent: Tiers institutionnel
|
thirdparty.Parent: Tiers institutionnel
|
||||||
thirdparty.Parents: Tiers institutionnels
|
thirdparty.Parents: Tiers institutionnels
|
||||||
thirdparty.Civility: Civilité
|
thirdparty.Civility: Civilité
|
||||||
|
Loading…
x
Reference in New Issue
Block a user