Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
knowledgebase-front
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
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
996cafe9
Commit
996cafe9
authored
5 years ago
by
Alice Poggioli
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Filter resource with js.
parent
f2179239
No related branches found
Branches containing commit
No related tags found
1 merge request
!36
Feature/entrepreneur dashboard
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/includes/entrepreneur/resources/list.pug
+25
-23
25 additions, 23 deletions
src/includes/entrepreneur/resources/list.pug
src/scripts/coopstarter.js
+1
-1
1 addition, 1 deletion
src/scripts/coopstarter.js
with
26 additions
and
24 deletions
src/includes/entrepreneur/resources/list.pug
+
25
−
23
View file @
996cafe9
...
...
@@ -12,7 +12,7 @@ include ../../components/widgets
//It seems that we don't have likes and dislikes data : sould i ignore them for the moment?
div
.block_log.block_
lis
t
.block_log.block_
creat_coun
t
h2.title_form Search for a resource
sib-form#search-by-keyword(
data-src=`${endpoints.resources}`,
...
...
@@ -23,20 +23,31 @@ div.block_log.block_list
widget-description='cs-display-property'
widget-name_keyword='cs-display-property'
widget-author='cs-display-property'
submit-button='Search'
)
sib-form(
data-src=`${endpoints.resources}`,
fields='instance_database_only'
widget-instance_database_only='cs-display-checkbox'
class-instance_database_only = 'ss-list checkbox'
naked
)
sib-form
#circles-list
(
sib-form(
data-src=`${endpoints.resources}`,
fields='
more
_criterias
(
format, publication_year, country, language.name, fields, steps
)
'
fields='
header
_criterias
,
format, publication_year, country, language.name, fields, steps'
label-header_criterias='More criterias'
label-format='Format'
label-format='Format
:
'
label-publication_year='Year of publication'
label-country='Country of publication'
label-language.name='Language'
label-fields='Field'
label-steps='Step of : Staring up a cooperative business'
widget-instance_database_only='cs-display-checkbox'
widget-header_criterias='cs-section_header'
range-language.name=`${endpoints.languages}`
...
...
@@ -44,30 +55,21 @@ div.block_log.block_list
range-steps=`${endpoints.steps}`
range-format=`${endpoints.formats}`
multiple-language='sib-multiple-select'
widget-language='sib-form-auto-completion'
multiple-language
.name
='sib-multiple-select'
widget-language
.name
='sib-form-auto-completion'
multiple-f
ield
='sib-multiple-select'
widget-f
ield
='sib-form-auto-completion'
multiple-f
ormat
='sib-multiple-select'
widget-f
ormat
='sib-form-auto-completion'
multiple-step='sib-multiple-select'
widget-step='sib-form-auto-completion'
multiple-fields='sib-multiple-select'
widget-fields='sib-form-auto-completion'
multiple-steps='sib-multiple-select'
widget-steps='sib-form-auto-completion'
naked
)
//- form
//- div
//- label(for="name") Enter your name
//- input(type="text" name="name" id="name" )
//- div
//- button(value="Search")
#circles
sib-display#circles-list(
...
...
This diff is collapsed.
Click to expand it.
src/scripts/coopstarter.js
+
1
−
1
View file @
996cafe9
...
...
@@ -69,7 +69,7 @@ jQuery(document).ready(function($) {
hidden_fields
.
forEach
(
hidden_field
=>
{
hidden_field
.
setAttribute
(
"
value
"
,
keyword_field
.
value
)
console
.
log
(
hidden_fields
)
console
.
log
(
"
element
.value
"
,
hidden_field
.
value
)
console
.
log
(
"
hidden_field
.value
"
,
hidden_field
.
value
)
console
.
log
(
"
keyword_field.value
"
,
keyword_field
.
value
)
});
})
...
...
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