Skip to content
Snippets Groups Projects
Commit 2fa6397d authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

some: fixes on members

parent 2130d3c3
No related branches found
No related tags found
2 merge requests!7fix: backlink on left in territory profile...,!4Draft: add: alpha release + switch to core beta
Pipeline #16748 passed
......@@ -245,8 +245,8 @@ import("./utils.js").then((utils) => {
class="hidden"
id="tzcld-user-territories-filter-${utils.getIntId(tzcldprofile.id)}"
nested-field="communities"
fields="community.tzcld_profile.visible"
value-community.tzcld_profile.visible=true
fields="tzcld_profile.visible"
value-tzcld_profile.visible=true
submit-button="Rechercher"
submit-widget="button"
naked=""
......@@ -256,9 +256,9 @@ import("./utils.js").then((utils) => {
class="segment whitespace-normal full"
data-src="${tzcldprofile.id}"
nested-field="communities"
fields="community"
widget-community="customtzcld-display-user-territories"
class-community="segment block"
fields="@id"
widget-id="customtzcld-display-user-territories"
class-id="segment block"
solid-resource=""></solid-display>`;
render += `</div>`; //section-avatar
render += `</div>`; //col 1
......@@ -485,18 +485,26 @@ import("./utils.js").then((utils) => {
</template>
</solid-widget>
<solid-widget name="tzcld-communities-counter-fix">
<template>
<span class="icon icon-people icon-third icon-large margin-right-xsmall"></span>
<solid-display
fields=""
data-src="\${src || value}"
array-field="user_set"
counter-template="\\\${counter}">
</solid-display>
<span>membre(s)</span>
</template>
</solid-widget>
<solid-widget name="tzcld-communities-counter-alternate">
<template>
<div>
<span class="icon icon-people icon-third icon-large margin-right-xsmall"></span>
<solid-display
fields=""
fields="members"
data-src="\${src || value}"
nested-field="members"
counter-template="\\\${counter}">
widget-members="tzcld-communities-counter-fix">
</solid-display>
<span>membre(s)</span>
</div>
</template>
</solid-widget>
......@@ -511,21 +519,6 @@ import("./utils.js").then((utils) => {
</template>
</solid-widget>
<solid-widget name='tzcld-communities-profile-members-counter'>
<template>
<span>
<span class="margin-bottom-xsmall icon mdi-account-multiple icon-third icon-large icon-margin-right-xsmall"></span>
<solid-display
class="text-medium"
data-src="\${src || value}"
fields=''
counter-template="\\\${counter}"
></solid-display>
<span class="text-medium">${this.localize("profile.members")}</span>
</span>
</template>
</solid-widget>
<solid-widget name="tzcld-communities-profile-twitter">
<template>
\${value != "" ? \`<a class="segment children-link-rounded children-icon-social-twitter children-link-reversed color-secondary bordered margin-right-medium" href="\${value}" target="_blank"><span></span></a>\` : ""}
......
This diff is collapsed.
......@@ -299,7 +299,17 @@ import("./utils.js").then((utils) => {
render += `<div class="tzcld-territory-profile-list segment full">
<h2 class="tzcld-h2 margin-none margin-top-xxlarge whitespace-normal">Coordonnées des acteurs du droit à l'emploi</h2>
<solid-display class="segment full" bind-resources="" nested-field="tzcld_profile" fields="locations" widget-locations="customtzcld-display-territory-profile-locations" class-locations="display-ebes" data-src="${tzcldprofile.id}" solid-resource="" paginate-by="10"></solid-display>
<solid-display
class="segment full"
bind-resources=""
nested-field="tzcld_profile"
fields="locations"
widget-locations="customtzcld-display-territory-profile-locations"
class-locations="display-ebes"
data-src="${tzcldprofile.id}"
solid-resource=""
paginate-by="10">
</solid-display>
</div>`;
......@@ -386,30 +396,40 @@ import("./utils.js").then((utils) => {
naked=""
></solid-form-search>-->
<solid-display
empty-value="Pas de contact"
empty-widget="tzcld-generic-no-result-info"
loader-id="loader-all-contact-territory"
class="segment full children children-half sm-children-full children-margin-bottom-medium sm-children-margin-bottom-xsmall children-padding-left-xsmall sm-children-padding-none sm-whitespace-normal masonry counter pagination tzcld-other-contacts-list"
data-src="${tzcldprofile.id}"
nested-field="members"
fields="segment1(segment2(member-picture(user.account.picture)), segment3(user.name, segment5(user.tzcld_profile.jobs)), user)"
class-segment1="segment bg-color-white shadow full text-top whitespace-normal"
class-segment2="segment quarter md-full padding-medium text-center whitespace-normal"
class-segment3="segment three-quarter md-full padding-top-xxsmall padding-left-small padding-right-small padding-bottom-small whitespace-normal"
class-segment5="segment full padding-none padding-top-xsmall text-left whitespace-normal"
class-member-picture="segment avatar-wrapper"
class-user.account.picture="avatar medium"
class-user.name="block margin-top-xlarge margin-bottom-xxsmall text-xlarge text-bold text-color-heading whitespace-normal"
class-user="user-actions"
widget-user.account.picture="orbit-user-avatar"
widget-user.name="h3"
widget-user.tzcld_profile.jobs="customtzcld-display-user-profile-first-job-short"
widget-user="tzcld-orbit-territory-team-contact-actions"
solid-resource="" paginate-by="20"></solid-display>
<solid-widget name="customtzcld-display-territory-profile-secondary-contacts">
<template>
<solid-display
class="segment full children children-half sm-children-full children-margin-bottom-medium sm-children-margin-bottom-xsmall children-padding-left-xsmall sm-children-padding-none sm-whitespace-normal masonry counter pagination tzcld-other-contacts-list"
data-src="\${value}"
array_field="user_set"
fields="segment1(segment2(member-picture(user.account.picture)), segment3(user.name, segment5(user.tzcld_profile.jobs)), user)"
class-segment1="segment bg-color-white shadow full text-top whitespace-normal"
class-segment2="segment quarter md-full padding-medium text-center whitespace-normal"
class-segment3="segment three-quarter md-full padding-top-xxsmall padding-left-small padding-right-small padding-bottom-small whitespace-normal"
class-segment5="segment full padding-none padding-top-xsmall text-left whitespace-normal"
class-member-picture="segment avatar-wrapper"
class-user.account.picture="avatar medium"
class-user.name="block margin-top-xlarge margin-bottom-xxsmall text-xlarge text-bold text-color-heading whitespace-normal"
class-user="user-actions"
widget-user.account.picture="orbit-user-avatar"
widget-user.name="h3"
widget-user.tzcld_profile.jobs="customtzcld-display-user-profile-first-job-short"
widget-user="tzcld-orbit-territory-team-contact-actions"
solid-resource=""
paginate-by="20"
>
</solid-display>
</template>
</solid-widget>
<solid-display
empty-value="Pas de contact"
empty-widget="tzcld-generic-no-result-info"
loader-id="loader-all-contact-territory"
data-src="${tzcldprofile.id}"
nested-field="members"
widget-members="customtzcld-display-territory-profile-secondary-contacts"
></solid-display>
</div>`; //col 2
......
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