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

fix: test dev

parent 31e869c9
No related branches found
No related tags found
1 merge request!9Beta
......@@ -12,17 +12,18 @@ import("./utils.js").then((utils) => {
},
async populate() {
console.log(await this.resource) ;
console.log('hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh') ;
//console.log(await this.resource) ;
let rCommunity = {
members: await this.resource.members,
tzcld_profile: await this.resource.tzcld_profile
};
console.log(await rCommunity) ;
console.log(await rCommunity.members) ;
let rMembers = {
members: await this.resource.members
};
console.log(await rMembers.members) ;
//console.log(await rMembers.members) ;
this.element.innerHTML = `
......@@ -69,34 +70,39 @@ import("./utils.js").then((utils) => {
loader-id="loader-all-edit-contacts-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-edit-contacts-list"
data-src="${await this.resource['@id']}"
array-field="user_set"
nested-field="members"
fields="segment1(segment2(member-picture(user.account.picture)), segment3(user.name, segment5(user.tzcld_profile.jobs)), user, @id, segment6(community.@id))"
fields="segment1(segment2(member-picture(account.picture)), segment3(name, segment5(tzcld_profile.jobs)), profile.user, @id, segment6(community.@id))"
class-segment1="segment full text-top whitespace-normal member-edit-item"
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-segment6="hidden"
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"
class-account.picture="avatar medium"
class-name="block margin-top-xlarge margin-bottom-xxsmall text-xlarge text-bold text-color-heading whitespace-normal"
class-profile.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"
widget-account.picture="orbit-user-avatar"
widget-name="h3"
widget-tzcld_profile.jobs="customtzcld-display-user-profile-first-job-short"
widget-profile.user="tzcld-orbit-territory-team-contact-actions"
widget-id="tzcld-territory-edit-member-actions"
class-id="segment full member-edit-item-actions"
valueb-id="${await rCommunity.tzcld_profile.primary_contact}"
value-community.id="${await this.resource['@id']}"
solid-resource="" paginate-by="20"></solid-display>
`;
for(let member of await rCommunity.members["ldp:contains"]) {
console.log('Members :') ;
console.log(await rCommunity.members.user_set) ;
/*for(let member of await rCommunity.members.user_set) {
console.log(await member) ;
render += `<orbit-reactivity data-src="${await this.resource['@id']}" target-src="${member['@id']}"></orbit-reactivity>
<orbit-reactivity data-src="${await this.resource['@id']}" nested-field="members" target-src="${member['@id']}"></orbit-reactivity>`;
}
}*/
render += `
<solid-form
......
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