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
2fa6397d
Commit
2fa6397d
authored
1 year ago
by
Benoit Alessandroni
Browse files
Options
Downloads
Patches
Plain Diff
some: fixes on members
parent
2130d3c3
No related branches found
No related tags found
2 merge requests
!7
fix: backlink on left in territory profile...
,
!4
Draft: add: alpha release + switch to core beta
Pipeline
#16748
passed
1 year ago
Changes
3
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/custom-tzcld.js
+19
-26
19 additions, 26 deletions
src/custom-tzcld.js
src/views-territories.js
+174
-178
174 additions, 178 deletions
src/views-territories.js
src/widgets-display-territory-tzcld.js
+45
-25
45 additions, 25 deletions
src/widgets-display-territory-tzcld.js
with
238 additions
and
229 deletions
src/custom-tzcld.js
+
19
−
26
View file @
2fa6397d
...
...
@@ -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.
Click to expand it.
src/views-territories.js
+
174
−
178
View file @
2fa6397d
This diff is collapsed.
Click to expand it.
src/widgets-display-territory-tzcld.js
+
45
−
25
View file @
2fa6397d
...
...
@@ -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
...
...
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