Skip to content
Snippets Groups Projects
Commit 9fa04e28 authored by Antoine Dupré's avatar Antoine Dupré
Browse files

fix: territory fields null and description white space normal

parent 15d0001e
No related branches found
No related tags found
No related merge requests found
Pipeline #14709 passed
......@@ -315,7 +315,9 @@ solid-form {
box-shadow: none!important;
}
}
.white-space-normal {
white-space: normal!important;
}
/* All link on main */
main .link {
color: var(--color-primary);
......
......@@ -249,16 +249,26 @@ import("./utils.js").then((utils) => {
</div>`;
render += `<div><solid-display class="segment" bind-resources="" nested-field="tzcld_profile" fields="regions"
widget-regions="customtzcld-display-territory-regions"
data-src="${tzcldprofile.id}" solid-resource=""></solid-display>
<div class="region segment tag color-fourth">${await etiquettes.kind.name}</div>
<div class="region segment tag color-fourth">${await etiquettes.step_state.name}</div>
</div>
render += `<div class="margin-top-xxsmall">
<solid-display class="segment" bind-resources="" nested-field="tzcld_profile" fields="regions" widget-regions="customtzcld-display-territory-regions" data-src="${tzcldprofile.id}" solid-resource=""></solid-display>`;
if (await etiquettes.kind != null) {
render += `<div class="region segment tag color-fourth">${await etiquettes.kind.name}</div>`;
}
console.log(etiquettes.step_state) ;
if (await etiquettes.step_state != null) {
render += `<div class="region segment tag color-fourth">${await etiquettes.step_state.name}</div>`;
}
render += `</div>`;
<div class="margin-top-small"><a class="text-color-primary" href="${await tzcldprofile.profile.website}">${await tzcldprofile.profile.website}</a></div>
<div class="description margin-top-small">${await tzcldprofile.profile.description}</div>
</div>
if (await tzcldprofile.profile.website != '') {
render += `<div class="margin-top-small"><a class="text-color-primary" href="${await tzcldprofile.profile.website}">${await tzcldprofile.profile.website}</a></div>`;
}
if (await tzcldprofile.profile.description != '') {
render += `<div class="description margin-top-small white-space-normal">${await tzcldprofile.profile.description}</div>`;
}
render += `</div>
</div>` ;//tzcld-territory-profile-wrapper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment