Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
knowledgebase-front
Manage
Activity
Members
Labels
Plan
Issues
19
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Applications
Knowledge Base
knowledgebase-front
Commits
20f8a028
Commit
20f8a028
authored
5 years ago
by
Alice Poggioli
Browse files
Options
Downloads
Patches
Plain Diff
Feature: Filter by Fields.
parent
0fa6ceaf
No related branches found
Branches containing commit
No related tags found
2 merge requests
!38
Feature/mentor dashboard
,
!40
Feature/entrepreneur dashboard
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/includes/entrepreneur/resources/list.pug
+46
-46
46 additions, 46 deletions
src/includes/entrepreneur/resources/list.pug
src/scripts/coopstarter.js
+2
-6
2 additions, 6 deletions
src/scripts/coopstarter.js
with
48 additions
and
52 deletions
src/includes/entrepreneur/resources/list.pug
+
46
−
46
View file @
20f8a028
...
@@ -41,18 +41,18 @@ container.block_list.flex.flex_espace
...
@@ -41,18 +41,18 @@ container.block_list.flex.flex_espace
sib-form#more_criterias(
sib-form#more_criterias(
data-src=`${endpoints.resources}`,
data-src=`${endpoints.resources}`,
fields='header_criterias, format, publication_year, country, language, field'
fields='header_criterias, format, publication_year, country, language, field
s
'
label-header_criterias='More criterias'
label-header_criterias='More criterias'
label-format='Format:'
label-format='Format:'
label-publication_year='Year of publication'
label-publication_year='Year of publication'
label-country='Country of publication'
label-country='Country of publication'
label-language='Language'
label-language='Language'
label-field='Field'
label-field
s
='Field'
widget-header_criterias='cs-section_header'
widget-header_criterias='cs-section_header'
range-language=`${endpoints.languages}`
range-language=`${endpoints.languages}`
range-field=`${endpoints.fields}`
range-field
s
=`${endpoints.fields}`
range-format=`${endpoints.formats}`
range-format=`${endpoints.formats}`
multiple-language='sib-form-dropdown'
multiple-language='sib-form-dropdown'
...
@@ -61,8 +61,8 @@ container.block_list.flex.flex_espace
...
@@ -61,8 +61,8 @@ container.block_list.flex.flex_espace
multiple-format='sib-form-dropdown'
multiple-format='sib-form-dropdown'
widget-format='sib-form-auto-completion'
widget-format='sib-form-auto-completion'
multiple-field='sib-form-dropdown'
multiple-field
s
='sib-form-dropdown'
widget-field='sib-form-auto-completion'
widget-field
s
='sib-form-auto-completion'
naked
naked
)
)
...
@@ -91,11 +91,11 @@ container.block_list.flex.flex_espace
...
@@ -91,11 +91,11 @@ container.block_list.flex.flex_espace
sib-display.resource_by_step(
sib-display.resource_by_step(
data-src=`${endpoints.steps}1/resources/`,
data-src=`${endpoints.steps}1/resources/`,
fields='name, author, format, publication_year, description, country, language, field',
fields='name, author, format, publication_year, description, country, language, field
s
',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field)',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field
s
)',
search-range-format=`${endpoints.formats}`
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-language=`${endpoints.languages}`
search-range-field=`${endpoints.fields}`
search-range-field
s
=`${endpoints.fields}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-search_for_a_resource="hidden-widget"
...
@@ -104,15 +104,15 @@ container.block_list.flex.flex_espace
...
@@ -104,15 +104,15 @@ container.block_list.flex.flex_espace
search-widget-format='sib-form-auto-completion'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-widget-language='sib-form-auto-completion'
search-multiple-field='sib-form-dropdown'
search-multiple-field
s
='sib-form-dropdown'
search-widget-field='sib-form-auto-completion'
search-widget-field
s
='sib-form-auto-completion'
widget-name='cs-display-property'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-description='cs-display-property'
widget-field='
cs-display-property
'
widget-field
s
='
hidden-widget
'
widget-language="hidden-widget"
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
widget-format='cs-display-multiple-property'
...
@@ -120,8 +120,8 @@ container.block_list.flex.flex_espace
...
@@ -120,8 +120,8 @@ container.block_list.flex.flex_espace
multiple-format
multiple-format
label-language=''
label-language=''
multiple-language
multiple-language
label-field=''
label-field
s
=''
multiple-field
multiple-field
s
paginate-by="5"
paginate-by="5"
)
)
...
@@ -139,11 +139,11 @@ container.block_list.flex.flex_espace
...
@@ -139,11 +139,11 @@ container.block_list.flex.flex_espace
sib-display.resource_by_step(
sib-display.resource_by_step(
data-src=`${endpoints.steps}2/resources/`,
data-src=`${endpoints.steps}2/resources/`,
fields='name, author, format, publication_year, description, country, language, field',
fields='name, author, format, publication_year, description, country, language, field
s
',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field)',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field
s
)',
search-range-format=`${endpoints.formats}`
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-language=`${endpoints.languages}`
search-range-field=`${endpoints.fields}`
search-range-field
s
=`${endpoints.fields}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-search_for_a_resource="hidden-widget"
...
@@ -152,15 +152,15 @@ container.block_list.flex.flex_espace
...
@@ -152,15 +152,15 @@ container.block_list.flex.flex_espace
search-widget-format='sib-form-auto-completion'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-widget-language='sib-form-auto-completion'
search-multiple-field='sib-form-dropdown'
search-multiple-field
s
='sib-form-dropdown'
search-widget-field='sib-form-auto-completion'
search-widget-field
s
='sib-form-auto-completion'
widget-name='cs-display-property'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-description='cs-display-property'
widget-field='
cs-display-property
'
widget-field
s
='
hidden-widget
'
widget-language="hidden-widget"
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
widget-format='cs-display-multiple-property'
...
@@ -168,8 +168,8 @@ container.block_list.flex.flex_espace
...
@@ -168,8 +168,8 @@ container.block_list.flex.flex_espace
multiple-format
multiple-format
label-language=''
label-language=''
multiple-language
multiple-language
label-field=''
label-field
s
=''
multiple-field
multiple-field
s
paginate-by="5"
paginate-by="5"
)
)
...
@@ -188,11 +188,11 @@ container.block_list.flex.flex_espace
...
@@ -188,11 +188,11 @@ container.block_list.flex.flex_espace
sib-display.resource_by_step(
sib-display.resource_by_step(
data-src=`${endpoints.steps}3/resources/`,
data-src=`${endpoints.steps}3/resources/`,
fields='name, author, format, publication_year, description, country, language, field',
fields='name, author, format, publication_year, description, country, language, field
s
',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field)',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field
s
)',
search-range-format=`${endpoints.formats}`
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-language=`${endpoints.languages}`
search-range-field=`${endpoints.fields}`
search-range-field
s
=`${endpoints.fields}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-search_for_a_resource="hidden-widget"
...
@@ -201,15 +201,15 @@ container.block_list.flex.flex_espace
...
@@ -201,15 +201,15 @@ container.block_list.flex.flex_espace
search-widget-format='sib-form-auto-completion'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-widget-language='sib-form-auto-completion'
search-multiple-field='sib-form-dropdown'
search-multiple-field
s
='sib-form-dropdown'
search-widget-field='sib-form-auto-completion'
search-widget-field
s
='sib-form-auto-completion'
widget-name='cs-display-property'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-description='cs-display-property'
widget-field='
cs-display-property
'
widget-field
s
='
hidden-widget
'
widget-language="hidden-widget"
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
widget-format='cs-display-multiple-property'
...
@@ -217,8 +217,8 @@ container.block_list.flex.flex_espace
...
@@ -217,8 +217,8 @@ container.block_list.flex.flex_espace
multiple-format
multiple-format
label-language=''
label-language=''
multiple-language
multiple-language
label-field=''
label-field
s
=''
multiple-field
multiple-field
s
paginate-by="5"
paginate-by="5"
)
)
...
@@ -237,28 +237,28 @@ container.block_list.flex.flex_espace
...
@@ -237,28 +237,28 @@ container.block_list.flex.flex_espace
sib-display.resource_by_step(
sib-display.resource_by_step(
data-src=`${endpoints.steps}4/resources/`,
data-src=`${endpoints.steps}4/resources/`,
fields='name, author, format, publication_year, description, country, language, field',
fields='name, author, format, publication_year, description, country, language, field
s
',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field)',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field
s
)',
search-range-format=`${endpoints.formats}`
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-language=`${endpoints.languages}`
search-range-field=`${endpoints.fields}`
search-range-fields=`${endpoints.fields}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-search_for_a_resource="hidden-widget"
search-widget-more_criterias_hidden="hidden-widget"
search-widget-more_criterias_hidden="hidden-widget"
search-multiple-format='sib-form-dropdown'
search-multiple-format='sib-form-dropdown'
search-widget-format='sib-form-auto-completion'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-widget-language='sib-form-auto-completion'
search-multiple-field='sib-form-dropdown'
search-multiple-field
s
='sib-form-dropdown'
search-widget-field='sib-form-auto-completion'
search-widget-field
s
='sib-form-auto-completion'
widget-name='cs-display-property'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-description='cs-display-property'
widget-field='
cs-display-property
'
widget-field
s
='
hidden-widget
'
widget-language="hidden-widget"
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
widget-format='cs-display-multiple-property'
...
@@ -266,8 +266,8 @@ container.block_list.flex.flex_espace
...
@@ -266,8 +266,8 @@ container.block_list.flex.flex_espace
multiple-format
multiple-format
label-language=''
label-language=''
multiple-language
multiple-language
label-field=''
label-field
s
=''
multiple-field
multiple-field
s
paginate-by="5"
paginate-by="5"
)
)
...
@@ -285,11 +285,11 @@ container.block_list.flex.flex_espace
...
@@ -285,11 +285,11 @@ container.block_list.flex.flex_espace
sib-display.resource_by_step(
sib-display.resource_by_step(
data-src=`${endpoints.steps}5/resources/`,
data-src=`${endpoints.steps}5/resources/`,
fields='name, author, format, publication_year, description, country, language, field',
fields='name, author, format, publication_year, description, country, language, field
s
',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field)',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, field
s
)',
search-range-format=`${endpoints.formats}`
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-language=`${endpoints.languages}`
search-range-field=`${endpoints.fields}`
search-range-field
s
=`${endpoints.fields}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-search_for_a_resource="hidden-widget"
...
@@ -298,15 +298,15 @@ container.block_list.flex.flex_espace
...
@@ -298,15 +298,15 @@ container.block_list.flex.flex_espace
search-widget-format='sib-form-auto-completion'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-widget-language='sib-form-auto-completion'
search-multiple-field='sib-form-dropdown'
search-multiple-field
s
='sib-form-dropdown'
search-widget-field='sib-form-auto-completion'
search-widget-field
s
='sib-form-auto-completion'
widget-name='cs-display-property'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-description='cs-display-property'
widget-field='
cs-display-property
'
widget-field
s
='
hidden-widget
'
widget-language="hidden-widget"
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
widget-format='cs-display-multiple-property'
...
@@ -314,8 +314,8 @@ container.block_list.flex.flex_espace
...
@@ -314,8 +314,8 @@ container.block_list.flex.flex_espace
multiple-format
multiple-format
label-language=''
label-language=''
multiple-language
multiple-language
label-field=''
label-field
s
=''
multiple-field
multiple-field
s
paginate-by="5"
paginate-by="5"
)
)
...
...
This diff is collapsed.
Click to expand it.
src/scripts/coopstarter.js
+
2
−
6
View file @
20f8a028
...
@@ -211,10 +211,10 @@ jQuery(document).ready(function($) {
...
@@ -211,10 +211,10 @@ jQuery(document).ready(function($) {
//To retrieve field
//To retrieve field
let
field_field_search
=
more_criterias_form
.
querySelector
(
let
field_field_search
=
more_criterias_form
.
querySelector
(
`select[name="field"]`
`select[name="field
s
"]`
);
);
let
field_hidden_field
=
document
.
querySelectorAll
(
let
field_hidden_field
=
document
.
querySelectorAll
(
'
hidden-widget[name="more_criterias_hidden"] select[name="field"]
'
'
hidden-widget[name="more_criterias_hidden"] select[name="field
s
"]
'
);
);
field_field_search
.
onchange
=
function
()
{
field_field_search
.
onchange
=
function
()
{
...
@@ -231,12 +231,8 @@ jQuery(document).ready(function($) {
...
@@ -231,12 +231,8 @@ jQuery(document).ready(function($) {
if
(
option_hidden
.
value
==
option_selected
.
value
)
{
if
(
option_hidden
.
value
==
option_selected
.
value
)
{
//Actually selecting the option if it is the good one
//Actually selecting the option if it is the good one
console
.
log
(
"
match
"
)
option_hidden
.
setAttribute
(
"
selected
"
,
"
selected
"
);
option_hidden
.
setAttribute
(
"
selected
"
,
"
selected
"
);
select_hidden
.
setAttribute
(
'
value
'
,
option_selected
.
value
)
select_hidden
.
setAttribute
(
'
value
'
,
option_selected
.
value
)
console
.
log
(
"
option_hidden.value
"
,
option_hidden
.
value
)
console
.
log
(
"
option_selected.value
"
,
option_selected
.
value
)
}
}
//Trigerring a reload of the associated form
//Trigerring a reload of the associated 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