diff --git a/src/custom-tzcld.js b/src/custom-tzcld.js index 91a2bf068f244fd1fb2e1a96fcab3ee0008ebbe2..ec82f872f436c464dc93a8b7aaa93730c200c973 100644 --- a/src/custom-tzcld.js +++ b/src/custom-tzcld.js @@ -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>\` : ""} diff --git a/src/views-territories.js b/src/views-territories.js index 827393afa9d634319171484e3debf389e94408cd..ac3796e886cc9ffba0a4452d13f9731b585bef65 100644 --- a/src/views-territories.js +++ b/src/views-territories.js @@ -38,7 +38,6 @@ import("./utils.js").then((utils) => { <solid-router default-route="${utils.TZCLD_URLS.my_territories}" route-prefix="tzcld"> <solid-route name="${utils.TZCLD_URLS.my_territories}"></solid-route> <solid-route name="${utils.TZCLD_URLS.my_territory_space}" use-id></solid-route> - </solid-router> `; @@ -658,29 +657,29 @@ import("./utils.js").then((utils) => { naked=""> </solid-form-search> <solid-display - solid-resource - loader-id="loader-${this.route}-my-communities" - data-src ="${this.myCommunities}" - next="${utils.TZCLD_URLS.my_territory_infos}" - - class="segment full children children-quarter sm-children-full children-margin-bottom-medium sm-children-margin-bottom-xsmall children-padding-right-xsmall children-padding-left-xsmall sm-children-padding-none sm-whitespace-normal masonry pagination text-disable-selection" - fields="segment1(segment2(logo), segment3(name, tzcld_profile.regions, tzcld_profile.kind, tzcld_profile.step_state, counter))" - filtered-by="my-communities-filter" - order-by="name" - paginate-by="20" - class-segment1="segment hover bg-color-white shadow border-rounded-xxsmall full text-top whitespace-normal cursor-pointer" - class-segment2="segment block padding-xlarge text-center" - class-segment3="segment full padding-large padding-top-xlarge sm-padding-medium border-top border-color-grey text-center whitespace-normal" - class-name="segment block one-line-ellipsis text-xlarge text-bold text-color-heading margin-bottom-xsmall" - class-profile.shortdescription="segment two-lines-ellipsis margin-bottom-xlarge sm-margin-bottom-medium whitespace-normal circle-subtitle-custom" - class-counter="segment block margin-top-large whitespace-normal" - widget-logo="tzcld-communities-logo" - action-counter="counter" - widget-counter="tzcld-communities-counter-alternate" - order-asc="name" - widget-tzcld_profile.regions="customtzcld-list-territory-regions" - widget-tzcld_profile.kind="customtzcld-list-territory-kind" - widget-tzcld_profile.step_state="customtzcld-list-territory-step-state" + solid-resource + loader-id="loader-${this.route}-my-communities" + data-src ="${this.myCommunities}" + next="${utils.TZCLD_URLS.my_territory_infos}" + + class="segment full children children-quarter sm-children-full children-margin-bottom-medium sm-children-margin-bottom-xsmall children-padding-right-xsmall children-padding-left-xsmall sm-children-padding-none sm-whitespace-normal masonry pagination text-disable-selection" + fields="segment1(segment2(logo), segment3(name, tzcld_profile.regions, tzcld_profile.kind, tzcld_profile.step_state, counter))" + filtered-by="my-communities-filter" + order-by="name" + paginate-by="20" + class-segment1="segment hover bg-color-white shadow border-rounded-xxsmall full text-top whitespace-normal cursor-pointer" + class-segment2="segment block padding-xlarge text-center" + class-segment3="segment full padding-large padding-top-xlarge sm-padding-medium border-top border-color-grey text-center whitespace-normal" + class-name="segment block one-line-ellipsis text-xlarge text-bold text-color-heading margin-bottom-xsmall" + class-profile.shortdescription="segment two-lines-ellipsis margin-bottom-xlarge sm-margin-bottom-medium whitespace-normal circle-subtitle-custom" + class-counter="segment block margin-top-large whitespace-normal" + widget-logo="tzcld-communities-logo" + action-counter="counter" + widget-counter="tzcld-communities-counter-alternate" + order-asc="name" + widget-tzcld_profile.regions="customtzcld-list-territory-regions" + widget-tzcld_profile.kind="customtzcld-list-territory-kind" + widget-tzcld_profile.step_state="customtzcld-list-territory-step-state" > </solid-display> @@ -697,104 +696,102 @@ import("./utils.js").then((utils) => { return render; } viewCommunityAnswers() { - - let render = ` - <solid-widget name="customtzcld-form-territory-political-deputy"> + <solid-widget name="customtzcld-form-territory-political-deputy"> + <template> + <solid-form + class="d-block rowClear form-hide-submit" + data-src="\${value}" + data-holder + partial + fields="segment1(deputy, circonscription)" + class-segment1="segment full sm-full rowClear" + class-deputy="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-circonscription="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + label-deputy="Député-e *" + label-circonscription="Circonscription" + widget-circonscription="solid-form-dropdown-label" + order-asc-circonscription="name" + range-circonscription="${this.apiUrl}tzcld-circonscriptions/" + required-deputy + ></solid-form> + </template> + </solid-widget> + <solid-widget name="customtzcld-form-territory-political-senator"> <template> <solid-form class="d-block rowClear form-hide-submit" data-src="\${value}" data-holder partial - fields="segment1(deputy, circonscription)" + fields="segment1(senator, circonscription)" class-segment1="segment full sm-full rowClear" - class-deputy="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-senator="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" class-circonscription="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - label-deputy="Député-e *" + label-senator="Sénateur-ice *" label-circonscription="Circonscription" widget-circonscription="solid-form-dropdown-label" order-asc-circonscription="name" - range-circonscription="${this.apiUrl}tzcld-circonscriptions/" - required-deputy + range-circonscription="${this.apiUrl}tzcld-departments/" + required-senator + ></solid-form> + </template> + </solid-widget> + <solid-widget name="customtzcld-form-territory-project-team-memeber"> + <template> + <solid-form + class="d-block rowClear form-hide-submit" + data-src="\${value}" + data-holder + partial + solid-form-dropdown-autocompletion-label + fields="segment1(user, user_state, attachment_structure, etp)" + class-segment1="segment full sm-full rowClear" + class-user="segment margin-bottom-medium quarter md-half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-user_state="segment margin-bottom-medium quarter md-half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-attachment_structure="segment margin-bottom-medium quarter md-half sm-full padding-left-small md-padding-left-none md-padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-etp="segment margin-bottom-medium quarter md-half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + label-user="Prénom et nom *" + label-user_state="Statut de la personne *" + label-etp="ETP consacré au projet" + label-attachment_structure="Structure de rattachement" + required-user + required-user_state + widget-user="solid-form-dropdown-autocompletion-label" + range-user="${this.rangeUser}" + order-asc-user="name" + widget-user_state="solid-form-dropdown-label" + range-user_state="${this.teamUserStates}" + order-asc-user_state="order" + ></solid-form> + </template> + </solid-widget> + <solid-widget name="customtzcld-form-territory-training"> + <template> + <solid-form + class="d-block rowClear form-hide-submit" + data-src="\${value}" + data-holder + partial + fields="segment1(training_course, training_promotion, training_person)" + class-segment1="segment full sm-full rowClear" + class-training_course="segment margin-bottom-medium third md-half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-training_promotion="segment margin-bottom-medium third md-half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + class-training_person="segment margin-bottom-medium third md-half sm-full padding-left-small md-padding-left-none md-padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" + label-training_course="Choix du parcours suivi *" + label-training_promotion="Numéro de promotion *" + required-training_course + required-training_promotion + label-training_person="Personne ayant suivi la formation" + range-training_course="${this.territoriesTrainingCourses}" + order-asc-training_course="name" + range-training_promotion="${this.territoriesTrainingPromotions}" + order-asc-training_promotion="name" + widget-training_course="solid-form-dropdown-label" + widget-training_promotion="solid-form-dropdown-label" ></solid-form> </template> </solid-widget> - <solid-widget name="customtzcld-form-territory-political-senator"> - <template> - <solid-form - class="d-block rowClear form-hide-submit" - data-src="\${value}" - data-holder - partial - fields="segment1(senator, circonscription)" - class-segment1="segment full sm-full rowClear" - class-senator="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - class-circonscription="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - label-senator="Sénateur-ice *" - label-circonscription="Circonscription" - widget-circonscription="solid-form-dropdown-label" - order-asc-circonscription="name" - range-circonscription="${this.apiUrl}tzcld-departments/" - required-senator - ></solid-form> - </template> - </solid-widget> - <solid-widget name="customtzcld-form-territory-project-team-memeber"> - <template> - <solid-form - class="d-block rowClear form-hide-submit" - data-src="\${value}" - data-holder - partial - solid-form-dropdown-autocompletion-label - fields="segment1(user, user_state, attachment_structure, etp)" - class-segment1="segment full sm-full rowClear" - class-user="segment margin-bottom-medium quarter md-half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - class-user_state="segment margin-bottom-medium quarter md-half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - class-attachment_structure="segment margin-bottom-medium quarter md-half sm-full padding-left-small md-padding-left-none md-padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - class-etp="segment margin-bottom-medium quarter md-half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - label-user="Prénom et nom *" - label-user_state="Statut de la personne *" - label-etp="ETP consacré au projet" - label-attachment_structure="Structure de rattachement" - required-user - required-user_state - widget-user="solid-form-dropdown-autocompletion-label" - range-user="${this.rangeUser}" - order-asc-user="name" - widget-user_state="solid-form-dropdown-label" - range-user_state="${this.teamUserStates}" - order-asc-user_state="order" - ></solid-form> - </template> - </solid-widget> - <solid-widget name="customtzcld-form-territory-training"> - <template> - <solid-form - class="d-block rowClear form-hide-submit" - data-src="\${value}" - data-holder - partial - fields="segment1(training_course, training_promotion, training_person)" - class-segment1="segment full sm-full rowClear" - class-training_course="segment margin-bottom-medium third md-half sm-full padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - class-training_promotion="segment margin-bottom-medium third md-half sm-full padding-left-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - class-training_person="segment margin-bottom-medium third md-half sm-full padding-left-small md-padding-left-none md-padding-right-small sm-padding-none text-xlarge text-semibold text-color-heading whitespace-normal" - label-training_course="Choix du parcours suivi *" - label-training_promotion="Numéro de promotion *" - required-training_course - required-training_promotion - label-training_person="Personne ayant suivi la formation" - range-training_course="${this.territoriesTrainingCourses}" - order-asc-training_course="name" - range-training_promotion="${this.territoriesTrainingPromotions}" - order-asc-training_promotion="name" - widget-training_course="solid-form-dropdown-label" - widget-training_promotion="solid-form-dropdown-label" - ></solid-form> - </template> - </solid-widget> <h2 class="margin-none margin-bottom-medium sm-margin-none sm-margin-right-xsmall sm-margin-bottom-small sm-margin-left-xsmall text-color-heading text-bold text-xxxlarge text-letter-spacing-large">Etat d'avancement</h2> <solid-display @@ -808,77 +805,77 @@ import("./utils.js").then((utils) => { <h2 class="margin-none margin-top-none margin-left-none text-xlarge text-xbold text-color-heading text-color-dark-blue">Carte d’identité du territoire</h2> <solid-form - class="form hidden segment block margin-top-large whitespace-normal padding-left-large padding-right-small" - bind-resources - solid-resource - partial - autosave - nested-field="tzcld_profile_identity" - loader-id="loader-${this.route}-general-answer" - fields="segment(birth_date, origin_mobilization), segment1(emergence_date, habilitation_date), territories_political_landscape_deputies_title, territories_political_landscape_deputies, territories_political_landscape_senators, territories_project_team_memebers_title, territories_project_team_memebers, territories_trainings_title, territories_trainings, spacer" - label-segment="Panorama du territoire" - label-segment1="" - widget-birth_date="solid-form-text-label" - widget-territories_political_landscape_deputies_title="h3" - value-territories_political_landscape_deputies_title="Paysage politique / institutionnel" - widget-territories_project_team_memebers_title="h3" - value-territories_project_team_memebers_title="Equipe projet" - widget-territories_trainings_title="h3" - value-territories_trainings_title="Participation aux formations TZCLD" - label-segment2="Portage de la demande de reconnaissance" - - class-segment="segment full sm-whitespace-normal" - class-segment1="segment full sm-whitespace-normal" - class-segment2="segment full sm-whitespace-normal" - - label-birth_date="Année de naissance du projet" - label-origin_mobilization="Origine de la mobilisation" - label-emergence_date="Date de reconnaissance en tant que projet émergent" - label-habilitation_date="Date d’habilitation" - - class-birth_date="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge form" - class-origin_mobilization="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" - - class-emergence_date="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" - class-habilitation_date="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" + class="form hidden segment block margin-top-large whitespace-normal padding-left-large padding-right-small" + bind-resources + solid-resource + partial + autosave + nested-field="tzcld_profile_identity" + loader-id="loader-${this.route}-general-answer" + fields="segment(birth_date, origin_mobilization), segment1(emergence_date, habilitation_date), territories_political_landscape_deputies_title, territories_political_landscape_deputies, territories_political_landscape_senators, territories_project_team_memebers_title, territories_project_team_memebers, territories_trainings_title, territories_trainings, spacer" + label-segment="Panorama du territoire" + label-segment1="" + widget-birth_date="solid-form-text-label" + widget-territories_political_landscape_deputies_title="h3" + value-territories_political_landscape_deputies_title="Paysage politique / institutionnel" + widget-territories_project_team_memebers_title="h3" + value-territories_project_team_memebers_title="Equipe projet" + widget-territories_trainings_title="h3" + value-territories_trainings_title="Participation aux formations TZCLD" + label-segment2="Portage de la demande de reconnaissance" + + class-segment="segment full sm-whitespace-normal" + class-segment1="segment full sm-whitespace-normal" + class-segment2="segment full sm-whitespace-normal" - widget-origin_mobilization="solid-form-dropdown-label" - range-origin_mobilization="${this.territoriesOriginsMobilisation}" - order-asc-origin_mobilization="name" + label-birth_date="Année de naissance du projet" + label-origin_mobilization="Origine de la mobilisation" + label-emergence_date="Date de reconnaissance en tant que projet émergent" + label-habilitation_date="Date d’habilitation" + + class-birth_date="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge form" + class-origin_mobilization="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" + + class-emergence_date="segment margin-bottom-medium half sm-full padding-right-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" + class-habilitation_date="segment margin-bottom-medium half sm-full padding-left-small sm-padding-none text-small text-semibold text-color-heading whitespace-normal text-xlarge" + + widget-origin_mobilization="solid-form-dropdown-label" + range-origin_mobilization="${this.territoriesOriginsMobilisation}" + order-asc-origin_mobilization="name" - - widget-emergence_date="solid-form-date-label" - widget-habilitation_date="solid-form-date-label" - - multiple-territories_political_landscape_deputies - widget-territories_political_landscape_deputies="customtzcld-form-territory-political-deputy" - multiple-territories_political_landscape_deputies-add-label= "Ajouter un-e député-e" - multiple-territories_political_landscape_deputies-remove-label= "Supprimer" - - multiple-territories_political_landscape_senators - widget-territories_political_landscape_senators="customtzcld-form-territory-political-senator" - multiple-territories_political_landscape_senators-add-label= "Ajouter un-e sénateur-ice" - multiple-territories_political_landscape_senators-remove-label= "Supprimer" - - multiple-territories_project_team_memebers - widget-territories_project_team_memebers="customtzcld-form-territory-project-team-memeber" - multiple-territories_project_team_memebers-add-label= "Ajouter une personne" - multiple-territories_project_team_memebers-remove-label= "Supprimer" - - multiple-territories_trainings - widget-territories_trainings="customtzcld-form-territory-training" - multiple-territories_trainings-add-label= "Ajouter une personne" - multiple-territories_trainings-remove-label= "Supprimer" - - class-spacer="segment third sm-hidden" - - order-asc-tzcld_profile.step_state="name" - order-asc-tzcld_profile.kind="name" - order-asc-tzcld_profile.regions="name" - order-asc-tzcld_profile.departments="name" - - widget-spacer="span"> - </solid-form> + + widget-emergence_date="solid-form-date-label" + widget-habilitation_date="solid-form-date-label" + + multiple-territories_political_landscape_deputies + widget-territories_political_landscape_deputies="customtzcld-form-territory-political-deputy" + multiple-territories_political_landscape_deputies-add-label= "Ajouter un-e député-e" + multiple-territories_political_landscape_deputies-remove-label= "Supprimer" + + multiple-territories_political_landscape_senators + widget-territories_political_landscape_senators="customtzcld-form-territory-political-senator" + multiple-territories_political_landscape_senators-add-label= "Ajouter un-e sénateur-ice" + multiple-territories_political_landscape_senators-remove-label= "Supprimer" + + multiple-territories_project_team_memebers + widget-territories_project_team_memebers="customtzcld-form-territory-project-team-memeber" + multiple-territories_project_team_memebers-add-label= "Ajouter une personne" + multiple-territories_project_team_memebers-remove-label= "Supprimer" + + multiple-territories_trainings + widget-territories_trainings="customtzcld-form-territory-training" + multiple-territories_trainings-add-label= "Ajouter une personne" + multiple-territories_trainings-remove-label= "Supprimer" + + class-spacer="segment third sm-hidden" + + order-asc-tzcld_profile.step_state="name" + order-asc-tzcld_profile.kind="name" + order-asc-tzcld_profile.regions="name" + order-asc-tzcld_profile.departments="name" + + widget-spacer="span"> + </solid-form> <div class="loader" id="loader-${this.route}-general-answer"> <div></div> @@ -920,7 +917,6 @@ import("./utils.js").then((utils) => { let render = ` - <h2 class="margin-left-xsmall margin-none sm-margin-none sm-margin-right-xsmall sm-margin-bottom-small sm-margin-left-xsmall text-color-heading text-bold text-xxxlarge text-letter-spacing-largee">Suivi interne</h2> <div class="padding-bottom-none community-exchanges home"> <h2 class="tzcld-h2">Notes partagées</h2> @@ -1422,7 +1418,7 @@ import("./utils.js").then((utils) => { nestedField = ` nested-field="${nested}"` ; } let render = `<div class="tzcld-breadcrum"> - <customtzcld-display-breadcrum-my-territory bind-resources soid-resource${nestedField}></customtzcld-display-breadcrum-my-territory>` ; + <customtzcld-display-breadcrum-my-territory bind-resources solid-resource ${nestedField}></customtzcld-display-breadcrum-my-territory>` ; if (subNext && subText) { render += ` diff --git a/src/widgets-display-territory-tzcld.js b/src/widgets-display-territory-tzcld.js index 81f6effd0fc215bc023c718b6857b5c28adeaf15..adac62d15d13ee916e9d680aa9da64a990620f62 100644 --- a/src/widgets-display-territory-tzcld.js +++ b/src/widgets-display-territory-tzcld.js @@ -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