Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
custom-tzcld
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Components
custom-tzcld
Commits
5beaa41f
Commit
5beaa41f
authored
1 year ago
by
Antoine Dupré
Browse files
Options
Downloads
Patches
Plain Diff
fix: test dev
parent
31e869c9
No related branches found
No related tags found
1 merge request
!9
Beta
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/widget-form-territory-tzcld.js
+20
-14
20 additions, 14 deletions
src/widget-form-territory-tzcld.js
with
20 additions
and
14 deletions
src/widget-form-territory-tzcld.js
+
20
−
14
View file @
5beaa41f
...
...
@@ -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"
value
b
-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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment