update: simplify display business provider on profile project

This commit is contained in:
Marjolaine Le Bon 2021-05-06 15:35:47 +02:00 committed by Jean-Baptiste Pasquier
parent 3f8c298ed4
commit e335cf5b1f
5 changed files with 14 additions and 20 deletions

View File

@ -221,7 +221,7 @@
"labelCaptain": "Captain *", "labelCaptain": "Captain *",
"labelDescription": "Project description", "labelDescription": "Project description",
"descriptionHelp": "You can use markdown", "descriptionHelp": "You can use markdown",
"businessProviderTitle": "Business Provider", "businessProviderTitle": "Business Provider : ",
"businessTableHeader1": "Business provider name", "businessTableHeader1": "Business provider name",
"businessTableHeader2": "Amount of contribution (%)", "businessTableHeader2": "Amount of contribution (%)",
"buttonAddBusinessProvider": "Add", "buttonAddBusinessProvider": "Add",
@ -265,10 +265,8 @@
"description": "Description :", "description": "Description :",
"clientInformations": "Client Informations : ", "clientInformations": "Client Informations : ",
"customerName": "Customer name : ", "customerName": "Customer name : ",
"customerAddress": "Customer address : ", "customerAddress": "Customer address : ",
"businessProvider": "Business Provider : ", "businessProvider": "Business Provider : ",
"businessProviderName": "Business provider name : ",
"businessProviderFee": "Amount of contribution : ",
"subTitle": "Team :" "subTitle": "Team :"
} }
}, },

View File

@ -221,7 +221,7 @@
"labelCaptain": "Capitain *", "labelCaptain": "Capitain *",
"labelDescription": "Descripción del proyecto", "labelDescription": "Descripción del proyecto",
"descriptionHelp": "Puedes usar markdown", "descriptionHelp": "Puedes usar markdown",
"businessProviderTitle": "Contribución empresarial", "businessProviderTitle": "Contribución empresarial : ",
"businessTableHeader1": "Nombre del contribuyente empresarial", "businessTableHeader1": "Nombre del contribuyente empresarial",
"businessTableHeader2": "Importe de la contribución (%)", "businessTableHeader2": "Importe de la contribución (%)",
"buttonAddBusinessProvider": "Añadir", "buttonAddBusinessProvider": "Añadir",
@ -267,8 +267,6 @@
"customerName": "Nombre del/la clientx : ", "customerName": "Nombre del/la clientx : ",
"customerAddress": "Dirección del/la clientx : ", "customerAddress": "Dirección del/la clientx : ",
"businessProvider": "Contribución empresarial : ", "businessProvider": "Contribución empresarial : ",
"businessProviderName": "Nombre del contribuyente empresarial : ",
"businessProviderFee": "Importe de la contribución : ",
"subTitle": "Equipo : " "subTitle": "Equipo : "
} }
}, },

View File

@ -219,7 +219,7 @@
"labelCaptain": "Capitaine *", "labelCaptain": "Capitaine *",
"labelDescription": "Description du projet", "labelDescription": "Description du projet",
"descriptionHelp": "Vous pouvez utiliser Markdown", "descriptionHelp": "Vous pouvez utiliser Markdown",
"businessProviderTitle": "Apport d'affaire", "businessProviderTitle": "Apport d'affaire : ",
"businessTableHeader1": "Nom de l'apporteur d'affaire", "businessTableHeader1": "Nom de l'apporteur d'affaire",
"businessTableHeader2": "Montant de l'apport d'affaire (%)", "businessTableHeader2": "Montant de l'apport d'affaire (%)",
"buttonAddBusinessProvider": "Ajouter", "buttonAddBusinessProvider": "Ajouter",
@ -265,8 +265,6 @@
"customerName": "Nom du client : ", "customerName": "Nom du client : ",
"customerAddress": "Adresse du client : ", "customerAddress": "Adresse du client : ",
"businessProvider": "Apport d'affaire : ", "businessProvider": "Apport d'affaire : ",
"businessProviderName": "Nom de l'apporteur d'affaire : ",
"businessProviderFee": "Montant de l'apport d'affaire : ",
"subTitle": "Equipe :" "subTitle": "Equipe :"
} }
}, },

View File

@ -39,6 +39,10 @@
} }
} }
#projects-information .display-businessprovider { #projects-information .display-businessprovider {
[name="name"]::after {
content: " - ";
margin-left: 5px;
}
[name="fee"]:after { [name="fee"]:after {
content: " %"; content: " %";
} }

View File

@ -120,22 +120,18 @@ div(
data-trans='value-titlecustomername=project.profile.customerName;value-titlecustomeraddress=project.profile.customerAddress' data-trans='value-titlecustomername=project.profile.customerName;value-titlecustomeraddress=project.profile.customerAddress'
) )
solid-display.segment.block.full.labelled-avatar.two-lines.whitespace-normal.children.children-full.sm-children-full.children-margin-bottom-medium.display-businessprovider( solid-display.segment.block.full.labelled-avatar.two-lines.whitespace-normal.children.children-full.sm-children-full.margin-bottom-medium.display-businessprovider(
bind-resources bind-resources
nested-field='businessprovider' nested-field='businessprovider'
fields='titlebusinessprovider, businessProvider(businessProviderName(titlebusinessprovidername, name), businessProviderFee(titlebusinessproviderfee, fee))' fields='titlebusinessprovider, businessProvider(name, fee)'
value-titlebusinessprovider='' value-titlebusinessprovider=''
value-titlebusinessprovidername=''
value-titlebusinessproviderfee=''
class-businessProviderName="segment block margin-bottom-xxsmall" class-titlebusinessprovider="segment block text-color-heading text-bold text-letter-spacing-large text-xlarge margin-bottom-small"
class-businessProviderFee="segment block margin-bottom-small" class-businessProvider="segment block margin-bottom-xsmall"
class-titlebusinessprovider="segment block text-color-heading text-bold text-letter-spacing-large text-xlarge margin-top-medium margin-bottom-small" class-fee="margin-left-xxsmall"
class-titlebusinessprovidername="text-semibold text-color-heading margin-right-xxsmall"
class-titlebusinessproviderfee="text-semibold text-color-heading margin-right-xxsmall"
data-trans='value-titlebusinessprovider=project.profile.businessProvider;value-titlebusinessprovidername=project.profile.businessProviderName;value-titlebusinessproviderfee=project.profile.businessProviderFee' data-trans='value-titlebusinessprovider=project.profile.businessProvider'
) )
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.profile.subTitle') h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='project.profile.subTitle')