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
38da1937
Commit
38da1937
authored
5 years ago
by
Alice Poggioli
Browse files
Options
Downloads
Patches
Plain Diff
Add browse database in mentor dashboard.
parent
edb77e2a
No related branches found
Branches containing commit
No related tags found
1 merge request
!57
Add browse database in mentor dashboard.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/includes/mentor/browseDatabase.pug
+354
-0
354 additions, 0 deletions
src/includes/mentor/browseDatabase.pug
src/includes/mentor/dashboard.pug
+3
-8
3 additions, 8 deletions
src/includes/mentor/dashboard.pug
with
357 additions
and
8 deletions
src/includes/mentor/browseDatabase.pug
0 → 100644
+
354
−
0
View file @
38da1937
include ../components/widgets
div.container_min
h2.title_lead.fd_bleu International index of resources for cooperative mentors and entrepreneurs
button.button_dark.pull-right Watch the presentation
div.block_list
div.button__actions
div.resources__newresource
sib-link(next='mentor-resource-create')
div
div.button_base.ico_gauche.ico_plus Post a new Resource
div.dashboard__database
sib-link(next='mentor-resource-list')
div.button_base.ico_gauche.ico_database Back to dashboard
container.block_list.flex.flex_espace
div.w_75.block-g-entre
div
h2.title_form Search for a resource
div#resources-public-loader
hidden Loading resources, please wait...
sib-form#search-by-keyword(
data-src=`${endpoints.resources}`,
loader-id="resources-public-loader"
fields='keyword(name_keyword, description, author)'
label-keyword="Search by author, name..."
widget-keyword="sib-form-placeholder-text"
widget-description='cs-display-property'
widget-name_keyword='cs-display-property'
widget-author='cs-display-property'
naked
)
div#keyword_submit.button__actions
div.button_base.ico_gauche Search
sib-form#instance_database_only(
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#more_criterias(
data-src=`${endpoints.resources}`,
fields='header_criterias, format, publication_year, country, language, fields'
label-header_criterias='More criterias'
label-format='Format:'
label-publication_year='Year of publication'
label-country='Country of publication'
label-language='Language'
label-fields='Field'
widget-header_criterias='cs-section_header'
range-language=`${endpoints.languages}`
range-fields=`${endpoints.fields}`
range-format=`${endpoints.formats}`
multiple-language='sib-form-dropdown'
widget-language='sib-form-auto-completion'
multiple-format='sib-form-dropdown'
widget-format='sib-form-auto-completion'
multiple-fields='sib-form-dropdown'
widget-fields='sib-form-auto-completion'
naked
)
//Fake tabs to filter by type.
div.tabs.flex_espace
div(class='tablink filter_by_type active', onclick="openFakeTab(this)")
sib-display#type1(
data-src="https://api.coopstarter.happy-dev.fr/types/1/"
fields='name'
widget-name='fake-tabs'
)
div(class='tablink filter_by_type', onclick="openFakeTab(this)")
sib-display#type2(
data-src="https://api.coopstarter.happy-dev.fr/types/2/"
fields='name'
widget-name='fake-tabs'
)
div.block_log.block_list
//Step 1
sib-display#circles-list(
loader-id="resources-loader"
data-src=`${endpoints.steps}1/`,
fields='name'
label-name ='Step 1 '
label-resources=''
widget-name='cs-steps-header'
)
sib-display.resource_by_step(
data-src=`${endpoints.steps}1/resources/`,
fields='name, author, format, publication_year, description, country, language, fields',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, fields, type)',
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-fields=`${endpoints.fields}`
search-range-type=`${endpoints.types}`
search-widget-more_criterias_hidden="hidden-widget"
search-widget-search_for_a_resource="hidden-widget"
search-multiple-type='sib-form-dropdown'
search-widget-type='sib-form-auto-completion'
search-multiple-format='sib-form-dropdown'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-multiple-fields='sib-form-dropdown'
search-widget-fields='sib-form-auto-completion'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-fields='hidden-widget'
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
label-format=''
multiple-format
label-language=''
multiple-language
label-fields=''
multiple-fields
paginate-by="5"
)
//Step 2
sib-display#circles-list(
data-src=`${endpoints.steps}2/`,
fields='name'
label-name ='Step 2 '
label-resources=''
widget-name='cs-steps-header'
)
sib-display.resource_by_step(
data-src=`${endpoints.steps}2/resources/`,
fields='name, author, format, publication_year, description, country, language, fields',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, fields, type)',
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-fields=`${endpoints.fields}`
search-range-type=`${endpoints.types}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-more_criterias_hidden="hidden-widget"
search-multiple-type='sib-form-dropdown'
search-widget-type='sib-form-auto-completion'
search-multiple-format='sib-form-dropdown'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-multiple-fields='sib-form-dropdown'
search-widget-fields='sib-form-auto-completion'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-fields='hidden-widget'
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
label-format=''
multiple-format
label-language=''
multiple-language
label-fields=''
multiple-fields
paginate-by="5"
)
//Step 3
sib-display#circles-list(
data-src=`${endpoints.steps}3/`,
fields='name'
label-name ='Step 3 '
label-resources=''
widget-name='cs-steps-header'
)
sib-display.resource_by_step(
data-src=`${endpoints.steps}3/resources/`,
fields='name, author, format, publication_year, description, country, language, fields',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, fields, type)',
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-fields=`${endpoints.fields}`
search-range-type=`${endpoints.types}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-more_criterias_hidden="hidden-widget"
search-multiple-type='sib-form-dropdown'
search-widget-type='sib-form-auto-completion'
search-multiple-format='sib-form-dropdown'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-multiple-fields='sib-form-dropdown'
search-widget-fields='sib-form-auto-completion'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-fields='hidden-widget'
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
label-format=''
multiple-format
label-language=''
multiple-language
label-fields=''
multiple-fields
paginate-by="5"
)
//Step 4
sib-display#circles-list(
data-src=`${endpoints.steps}4/`,
fields='name'
label-name ='Step 4 '
label-resources=''
widget-name='cs-steps-header'
)
sib-display.resource_by_step(
data-src=`${endpoints.steps}4/resources/`,
fields='name, author, format, publication_year, description, country, language, fields',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, fields, type)',
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-fields=`${endpoints.fields}`
search-range-type=`${endpoints.types}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-more_criterias_hidden="hidden-widget"
search-multiple-type='sib-form-dropdown'
search-widget-type='sib-form-auto-completion'
search-multiple-format='sib-form-dropdown'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-multiple-fields='sib-form-dropdown'
search-widget-fields='sib-form-auto-completion'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-fields='hidden-widget'
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
label-format=''
multiple-format
label-language=''
multiple-language
label-fields=''
multiple-fields
paginate-by="5"
)
//Step 5
sib-display#circles-list(
data-src=`${endpoints.steps}5/`,
fields='name'
label-name ='Step 5 '
label-resources=''
widget-name='cs-steps-header'
)
sib-display.resource_by_step(
data-src=`${endpoints.steps}5/resources/`,
fields='name, author, format, publication_year, description, country, language, fields',
search-fields='search_for_a_resource(name, description, author), more_criterias_hidden(format, publication_year, country, language, fields, type)',
search-range-format=`${endpoints.formats}`
search-range-language=`${endpoints.languages}`
search-range-fields=`${endpoints.fields}`
search-range-type=`${endpoints.types}`
search-widget-search_for_a_resource="hidden-widget"
search-widget-more_criterias_hidden="hidden-widget"
search-multiple-type='sib-form-dropdown'
search-widget-type='sib-form-auto-completion'
search-multiple-format='sib-form-dropdown'
search-widget-format='sib-form-auto-completion'
search-multiple-language='sib-form-dropdown'
search-widget-language='sib-form-auto-completion'
search-multiple-fields='sib-form-dropdown'
search-widget-fields='sib-form-auto-completion'
widget-name='cs-display-property'
widget-country='cs-display-property'
widget-publication_year='cs-display-property'
widget-description='cs-display-property'
widget-fields='hidden-widget'
widget-language="hidden-widget"
widget-author="cs-display-property"
widget-format='cs-display-multiple-property'
label-format=''
multiple-format
label-language=''
multiple-language
label-fields=''
multiple-fields
paginate-by="5"
)
This diff is collapsed.
Click to expand it.
src/includes/mentor/dashboard.pug
+
3
−
8
View file @
38da1937
...
...
@@ -31,6 +31,9 @@ section#home
h1 What is a validation process ?
sib-link(class="backlink pull-right", next="mentor-resource-list") X
#mentor-database(hidden).no-sidebar.container
include ./browseDatabase.pug
#mentor-resource-create(hidden).no-sidebar.container
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include resources/create.pug
...
...
@@ -42,16 +45,8 @@ section#home
#resource-creation-confirmation(hidden).no-sidebar.container
include resources/confirmation.pug
#mentor-database(hidden)
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include resources/list.pug
#mentor-account(hidden).no-sidebar.container
include profile/detail.pug
#mentor-account-edit(hidden).no-sidebar.container
include profile/edit.pug
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