diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js index 4b998f98a..cde21dd5d 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_js/i18n.js @@ -65,7 +65,7 @@ const messages = { household_without_address: "Le ménage de l'usager est sans adresse", no_data: "Aucune information renseignée", type: { - thirdparty: "Tiers", + thirdparty: "Tiers professionel", person: "Usager" }, holder: "Titulaire" diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/chill/chillthirdparty.scss b/src/Bundle/ChillThirdPartyBundle/Resources/public/chill/chillthirdparty.scss index 988426b19..653c67ef0 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/chill/chillthirdparty.scss +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/chill/chillthirdparty.scss @@ -1,24 +1,38 @@ @import 'ChillMainAssets/module/bootstrap/shared'; /// Specific badge rounded-pill -.badge { - // Personne de contact - &.bg-thirdparty-child { - //@extend .$chill-ll-gray; - background-color: $chill-ll-gray; - color: $chill-pink; +/// bg-thirdparty-child -> Personne de contact +/// bg-thirdparty-company -> Personne morale +/// bg-thirdparty-contact -> Personne physique + +.tp-type { + .badge.rounded-pill { + &[class*='bg-thirdparty-'] { + //@extend .$chill-ll-gray; + background-color: $chill-ll-gray; + color: $chill-pink; + } + + &.bg-thirdparty-default { + display: inline-block; + } + &.bg-thirdparty-child, + &.bg-thirdparty-company, + &.bg-thirdparty-contact { + display: none; + } } - // Personne morale - &.bg-thirdparty-company { - //@extend .$chill-ll-gray; - background-color: $chill-ll-gray; - color: $chill-pink; - } - // Personne physique - &.bg-thirdparty-contact { - //@extend .$chill-ll-gray; - background-color: $chill-ll-gray; - color: $chill-pink; + &:hover { + .badge.rounded-pill { + &.bg-thirdparty-default { + display: none; + } + &.bg-thirdparty-child, + &.bg-thirdparty-company, + &.bg-thirdparty-contact { + display: inline-block; + } + } } } diff --git a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue index 11b78b507..15194d339 100644 --- a/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue +++ b/src/Bundle/ChillThirdPartyBundle/Resources/public/vuejs/_components/Entity/ThirdPartyRenderBox.vue @@ -16,7 +16,10 @@ {{ thirdparty.id }} - +