Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • applications/knowledge-base/knowledgebase-front
  • HannaP/knowledgebase-front
  • novalore/knowledgebase-front
3 results
Show changes
Showing
with 253 additions and 216 deletions
......@@ -8,7 +8,7 @@ figure.logo.img_log
img(src="../images/mentor.png"
alt="Create a mentor account")
h2.title_create Complete your mentor account
h2.title_create= data.CompleteMentorAccount
sib-form#mentor_profile_creation.block_log.block_creat_count(
bind-user
......@@ -23,25 +23,25 @@ sib-form#mentor_profile_creation.block_log.block_creat_count(
range-mentor_profile.languages=`${endpoints.languages}`
range-mentor_profile.country=`${endpoints.countries}`
label-header_about_you="About you"
label-header_social_media="Social medias"
label-header_about_you=`${data.AboutYou}`
label-header_social_media=`${data.SocialMedias}`
widget-header_social_media="cs-section_header"
widget-header_about_you="cs-section_introduction"
label-first_name="Surname"
label-last_name="Name"
label-mentor_profile.organisation="Organisation"
label-mentor_profile.phone="Phone number"
label-mentor_profile.languages="Languages"
label-mentor_profile.fields="Fields"
label-account.picture="Photo"
label-mentor_profile.headline="Headline or current position"
label-first_name=`${data.Surname}`
label-last_name=`${data.Name}`
label-mentor_profile.organisation=`${data.Organisation}`
label-mentor_profile.phone=`${data.PhoneNumber}`
label-mentor_profile.languages=`${data.Language}`
label-mentor_profile.fields=`${data.Field}`
label-account.picture=`${data.Photo}`
label-mentor_profile.headline=`${data.Headline}`
class-mentor_profile.headline="w_75"
label-mentor_profile.city="City"
label-mentor_profile.country="Country"
label-mentor_profile.biography="Tell us more about your activities"
label-mentor_profile.skills="What skills can you share with our entrepreneurs ?"
label-mentor_profile.city=`${data.City}`
label-mentor_profile.country=`${data.Country}`
label-mentor_profile.biography=`${data.ActivitiesMore}`
label-mentor_profile.skills=`${data.SkillForEntrepreneur}`
label-mentor_profile.linkedin="Linkedin"
label-mentor_profile.twitter="Twitter"
......@@ -66,6 +66,6 @@ sib-form#mentor_profile_creation.block_log.block_creat_count(
class-account.picture='input_photo w_25'
class-headline='w_75'
submit-button="COMPLETE YOUR ACCOUNT"
submit-button=`${data.CompleteYourAccount}`
next='mentor-dashboard'
)
include ../../components/widgets
div.container_min
h2.title_lead.fd_bleu My Account
h2.title_lead.fd_bleu=`${data.MyAccount}`
div.block_list.flex
div.button__actions.w_25
div.resources__newresource
sib-link(next='mentor-resource-create')
div
div.button_base.ico_gauche.ico_plus Post a new Resource
div.button_base.ico_gauche.ico_plus=`${data.PostResource}`
div.dashboard__database
sib-link(next='mentor-database')
div.button_base.ico_gauche.ico_database Browse database
div.button_base.ico_gauche.ico_database=`${data.BrowseDatabase}`
div.dashboard__database
sib-link(next='mentor-resource-list')
div.button_base.ico_gauche.ico_search Back to dashboard
div.button_base.ico_gauche.ico_search=`${data.BackToDashboard}`
div.dashboard__database
div.logout-button.button_base(
role='log out'
) Logout
)=`${data.Logout}`
div.profile_information.block_log.w_75
sib-link(next='mentor-account-edit')
......@@ -41,7 +41,7 @@ div.block_list.flex
sib-display.bold(
fields=""
nested-field="resources"
counter-template="<p>${counter} resource(s) uploaded here</p>"
counter-template=`<p>${counter} ${data.resourcesUploadedHere}</p>`
bind-user
)
......@@ -50,8 +50,8 @@ div.block_list.flex
fields='biography_label, mentor_profile.biography, skills_label, mentor_profile.skills'
widget-biography_label='cs-display-label'
widget-skills_label='cs-display-label'
label-skills_label='Skills:'
label-biography_label='Activities:'
label-skills_label=`${data.Skills}`
label-biography_label=`${data.Activities}`
widget-mentor_profile.skills='cs-display-property'
widget-mentor_profile.biography='cs-display-property'
)
......@@ -59,9 +59,9 @@ div.block_list.flex
sib-display#mentor_contact(
bind-user
fields='email, mentor_profile.phone, mentor_profile.linkedin, mentor_profile.twitter'
label-email='Email:'
label-email=`${data.Email}`
class-email="contact_profil"
label-mentor_profile.phone='Phone number:'
label-mentor_profile.phone=`${data.PhoneNumber}`
class-mentor_profile.phone="contact_profil"
widget-email='cs-display-resource-property'
widget-mentor_profile.phone='cs-display-resource-property'
......
include ../../components/widgets
h2.title_create Edit your account
h2.title_create= data.EditYourAccount
sib-form#mentor_profile_edition.block_log.block_creat_count(
bind-user
......@@ -14,25 +14,25 @@ sib-form#mentor_profile_edition.block_log.block_creat_count(
range-mentor_profile.organisation=`${endpoints.organisations}`
range-mentor_profile.languages=`${endpoints.languages}`
label-header_about_you="About you"
label-header_social_media="Social medias"
label-header_about_you=`${data.AboutYou}`
label-header_social_media=`${data.AboutYou}`
widget-header_social_media="cs-section_header"
widget-header_about_you="cs-section_introduction"
label-first_name="Surname"
label-last_name="Name"
label-mentor_profile.organisation="Organisation"
label-mentor_profile.phone="Phone number"
label-mentor_profile.languages="Languages"
label-mentor_profile.fields="Fields"
label-account.picture="Photo"
label-mentor_profile.headline="Headline or current position"
label-first_name=`${data.Surname}`
label-last_name=`${data.Name}`
label-mentor_profile.organisation=`${data.Organisation}`
label-mentor_profile.phone=`${data.PhoneNumber}`
label-mentor_profile.languages=`${data.Language}`
label-mentor_profile.fields=`${data.Field}`
label-account.picture=`${data.Photo}`
label-mentor_profile.headline=`${data.Headline}`
class-mentor_profile.headline="w_75"
label-mentor_profile.city="City"
label-mentor_profile.country="Country"
label-mentor_profile.biography="Tell us more about your activities"
label-mentor_profile.skills="What skills can you share with our entrepreneurs ?"
label-mentor_profile.city=`${data.City}`
label-mentor_profile.country=`${data.Country}`
label-mentor_profile.biography=`${data.ActivitiesMore}`
label-mentor_profile.skills=`${data.SkillForEntrepreneur}`
label-mentor_profile.linkedin="Linkedin"
label-mentor_profile.twitter="Twitter"
......@@ -57,9 +57,9 @@ sib-form#mentor_profile_edition.block_log.block_creat_count(
class-account.picture='input_photo w_25'
class-headline='w_75'
submit-button="Save modifications"
submit-button=`${data.SaveModification}`
next="mentor-account-edit-confirmation"
)
sib-link(class="backlink", next="mentor-account") Back to my account
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
sib-link(class="backlink", next="mentor-account")= data.BackToMyAccount
sib-link(class="backlink", next="mentor-resource-list")= data.BackToDashboard
......@@ -4,9 +4,9 @@
p
i.fas.fa-times
h2.title_lead_avenir Delete a resource
p Are you sure you want to delete this resource ?
h2.title_lead_avenir=`${data.DeleteResource}`
p=`${data.AreYouSureDelete}`
sib-delete(
data-label="Yes I am sure, delete "
data-label=`${data.YesSureDelete}`
bind-resources
)
......@@ -6,13 +6,13 @@ include ../../components/widgets
p
i.fas.fa-times
h2.title_lead_avenir Are you sur you want to archive this request ?
h2.title_lead_avenir=`${data.AreYouSurArchive}`
sib-form#change_status_request(
bind-resources
fields='button(status, name, description, skills, reviewer)'
value-status = "validated"
widget-button = "hidden-widget"
submit-button = "Archive this request"
submit-button =`${data.ArchivethisRequest}`
next="mentor-resource-list"
)
div.container_min
h2.title_lead.fd_bleu International index of resources for cooperative mentors and entrepreneurs
h2.title_lead.fd_bleu=`${data.generalLabel}`
sib-router
sib-route(name='resource-validation-process-confirmation')
......@@ -8,11 +8,11 @@ dialog#resource-validation-process-confirmation.no-sidebar
include ../validation-process.pug
div.block_list
h2.title_lead_avenir Post a resource
h2.title_lead_avenir=`${data.PostResource}`
p.p_entete Thank you for enriching our database !
p.p_entete=`${data.ThankYouEnrichingDatabase}`
p.p_entete Once one of your pair, a fellow mentor, validate your resource, it will be published online and we will send you a notification.
p.p_entete=`${data.ThanksMsg}`
div
p.flex
......@@ -20,4 +20,4 @@ div.block_list
div.flex
h3.button_base
sib-link(next='mentor-resource-list') -> Back to dashboard
\ No newline at end of file
sib-link(next='mentor-resource-list')=`${data.BackToDashboard}`
\ No newline at end of file
include ../../components/widgets
h2.title_lead_avenir Post a resource
h2.title_lead_avenir=`${data.PostResource}`
p.p_entete Thank you for enriching our database !
p.p_entete=`${data.ThankYouEnrichingDatabase}`
.block_log.block_creat_count
sib-form#resource-creation-form(
......@@ -27,33 +27,33 @@ p.p_entete Thank you for enriching our database !
range-related=`${endpoints.resources}`
range-country=`${endpoints.countries}`
label-header_mandatory='Mandatory information'
label-header_complementary='Complementary information'
label-header_classification='Classification'
label-header_access='Access'
label-header_related='Related resources'
label-name='Title*'
label-country='Country*'
label-language='Language*'
label-uri='Location/weblink*'
label-format='Format*'
label-fields='Field*'
label-author='Resource author*'
label-publication_year='Year of publication*'
label-skills='Learning outcomes, skills*'
label-description='Description'
label-iframe_link='For videos, report iframe link'
label-preview_image='Upload preview image'
label-tags='Add tags'
label-header_mandatory=`${data.MandatoryInformation}`
label-header_complementary=`${data.ComplementaryInformation}`
label-header_classification=`${data.Classification}`
label-header_access=`${data.Access}`
label-header_related=`${data.RelatedResources}`
label-name=`${data.TitleRequired}`
label-country=`${data.Country}`
label-language=`${data.Language}`
label-uri=`${data.LocationWeblinkReq}`
label-format=`${data.FormatReq}`
label-fields=`${data.FieldRequired}`
label-author=`${data.AuthorReq}`
label-publication_year=`${data.DatePublication}`
label-skills=`${data.SkillReq}`
label-description=`${data.Description}`
label-iframe_link=`${data.IframeLink}`
label-preview_image=`${data.UploadPreviewImage}`
label-tags=`${data.AddTags}`
label-target='Resource target*'
label-type='Type of content*'
label-steps='Categorisation*'
label-target=`${data.ResourceTargetReq}`
label-type=`${data.TypeContentReq}`
label-steps=`${data.CategorisationReq}`
label-sharing='Share with*'
label-sharing=`${data.ShareWithReq}`
label-related='Add a resource'
label-related=`${data.AddResource}`
multiple-fields='sib-multiple-select'
widget-fields='sib-form-auto-completion'
......@@ -81,6 +81,6 @@ p.p_entete Thank you for enriching our database !
widget-preview_image='cs-form-file-custom'
class-preview_image='input_photo w_25'
submit-button='Send for validation ->'
submit-button=`${data.SendForValidation}`
next="resource-creation-confirmation"
)
\ No newline at end of file
......@@ -7,7 +7,8 @@ include ../../components/widgets
i.fas.fa-times
div#detail-mentor-loader
hidden Loading the resource, please wait...
hidden
i.fas.fa-spinner.fa-spin
sib-display#detail-mentor(
loader-id="detail-mentor-loader"
......@@ -47,30 +48,30 @@ include ../../components/widgets
class-review.reviewer.name="validator_ressource"
widget-header_specifications='cs-section_header'
label-broken='Report broken link'
label-sharing='Access:'
label-language.name='Language:'
label-publication_year='Year of publication:'
label-header_specifications='Resource specifications'
label-broken=`${data.ReportBrokenLink}`
label-sharing=`${data.Access}`
label-language.name=`${data.Language}`
label-publication_year=`${data.DatePublication}`
label-header_specifications=`${data.ResourceSpecifications}`
label-format.name=''
widget-steps='cs-display-step-property'
label-steps=''
each-label-steps="Step"
each-label-steps=`${data.Step}`
multiple-steps
widget-fields='cs-display-multiple-property'
label-fields=''
each-label-fields='Field:'
each-label-fields=`${data.Field}`
multiple-fields
label-skills='With this resource, you will be able to:'
label-uri='Link to resource'
label-skills=`${data.WithThisResourceBeAbleTo}`
label-uri=`${data.LinkToResource}`
name-uri='original-link'
label-country='Country:'
label-submitter.mentor_profile.organisation.name='Organisation:'
label-author='Author :'
label-submitter.name='Resource posted by:'
label-country=`${data.Country}`
label-submitter.mentor_profile.organisation.name=`${data.Organisation}`
label-author=`${data.Author}`
label-submitter.name=`${data.ResourcePostedBy}`
action-broken='resource-report-broken-link-mentor'
)
......@@ -98,7 +99,7 @@ include ../../components/widgets
bind-resources
fields=""
nested-field="conversations"
counter-template="<p>Comments (${counter})</p>"
counter-template=`<p>${data.Comments} (${counter})</p>`
)
sib-conversation(
......@@ -106,7 +107,7 @@ include ../../components/widgets
id-suffix="conversations"
)
h2.title_lead_avenir Related resources
h2.title_lead_avenir=`${data.RelatedResources}`
sib-display(
bind-resources,
......
include ../../components/widgets
h2.title_lead_avenir Edit this resource
h2.title_lead_avenir=`${data.EditResource}`
p.p_entete Thank you for enriching our database !
p.p_entete=`${data.ThankYouEnrichingDatabase}`
.block_log.block_creat_count
sib-form(
......@@ -27,33 +27,33 @@ p.p_entete Thank you for enriching our database !
range-related=`${endpoints.resources}`
range-country=`${endpoints.countries}`
label-header_mandatory='Mandatory information'
label-header_complementary='Complementary information'
label-header_classification='Classification'
label-header_access='Access'
label-header_related='Related resources'
label-name='Title*'
label-country='Country*'
label-language='Language*'
label-uri='Location/weblink*'
label-format='Format*'
label-field='Field*'
label-author='Resource author*'
label-publication_year='Year of publication*'
label-skills='Learning outcomes, skills*'
label-description='Description'
label-iframe_link='For videos, report iframe link'
label-preview_image='Upload preview image'
label-tags='Add tags'
label-header_mandatory=`${data.MandatoryInformation}`
label-header_complementary=`${data.ComplementaryInformation}`
label-header_classification=`${data.Classification}`
label-header_access=`${data.Access}`
label-header_related=`${data.RelatedResources}`
label-name=`${data.TitleRequired}`
label-country=`${data.Country}`
label-language=`${data.Language}`
label-uri=`${data.LocationWeblinkReq}`
label-format=`${data.FormatReq}`
label-fields=`${data.FieldRequired}`
label-author=`${data.AuthorReq}`
label-publication_year=`${data.DatePublication}`
label-skills=`${data.SkillReq}`
label-description=`${data.Description}`
label-iframe_link=`${data.IframeLink}`
label-preview_image=`${data.UploadPreviewImage}`
label-tags=`${data.AddTags}`
label-target='Resource target*'
label-type='Type of content*'
label-steps='Categorisation*'
label-target=`${data.ResourceTargetReq}`
label-type=`${data.TypeContentReq}`
label-steps=`${data.CategorisationReq}`
label-sharing='Share with*'
label-sharing=`${data.ShareWithReq}`
label-related='Add a resource'
label-related=`${data.AddResource}`
widget-country='sib-form-auto-completion'
......@@ -82,6 +82,6 @@ p.p_entete Thank you for enriching our database !
widget-preview_image='cs-form-file-custom'
class-preview_image='input_photo w_25'
submit-button='Send for validation ->'
submit-button=`${data.SendForValidation}`
next="resource-creation-confirmation"
)
\ No newline at end of file
......@@ -15,8 +15,8 @@ dialog#confirm_status_change.no-sidebar
include ./confirmation-status-change
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
h2.title_lead.fd_bleu=`${data.generalLabel}`
button.button_dark.pull-right=`${data.WatchThePresentation}`
i.far.fa-play-circle
div.block_list
......@@ -24,19 +24,19 @@ div.block_list
div.resources__newresource
sib-link(next='mentor-resource-create')
div
div.button_base.ico_gauche.ico_plus Post a new Resource
div.button_base.ico_gauche.ico_plus=`${data.PostResource}`
div.dashboard__database
sib-link(next='mentor-database')
div.button_base.ico_gauche.ico_database Browse database
div.button_base.ico_gauche.ico_database=`${data.BrowseDatabase}`
div.tabs
div(class='tablink', onclick="openTab('reviews', this)")
h2 Resources requesting validation
h2=`${data.ResourcesRequestingValidation}`
div(class='tablink', onclick="openTab('requests', this)")
h2 Requested resources
h2=`${data.RequestedResources}`
div(class='tablink', onclick="openTab('history', this)", id='defaultOpen')
h2 History of your resources
h2=`${data.HistoryResources}`
div.block_log.block_list
......@@ -74,7 +74,7 @@ div.block_list
search-fields='status'
label-target='Target audience:'
label-language.name='Language:'
label-submitter.email="submitter'email :"
label-submitter.email="Submitter email:"
label-fields='Fields:'
each-label-fields=''
multiple-fields
......@@ -109,7 +109,7 @@ div.block_list
search-range-fields=`${endpoints.fields}`
search-range-country=`${endpoints.countries}`
search-label-search_for_a_resource="Search by name..."
search-label-search_for_a_resource=`${data.SearchByNam}`
search-widget-search_for_a_resource="sib-form-placeholder-text"
widget-search_for_a_resource="hidden-widget"
......@@ -127,22 +127,22 @@ div.block_list
search-widget-header_criterias="cs-section_header"
search-label-header_criterias="More criterias"
search-label-format='Format'
search-label-publication_year='Year of publication'
search-label-country='Country of publication'
search-label-language='Language'
search-label-fields='Field'
search-label-format=`${data.Format}`
search-label-publication_year=`${data.DatePublication}`
search-label-country=`${data.CountryPublication}`
search-label-language=`${data.Language}`
search-label-fields=`${data.Field}`
class-name="tit_element_list"
widget-format.name='cs-display-resource-property'
label-format.name='Format:'
label-format.name=`${data.Format}`
class-format.name="contenu_list"
class-publication_year="contenu_list"
widget-publication_year='cs-display-resource-property'
label-publication_year='Date of publication:'
label-publication_year=`${data.DatePublication}`
class-content='content__left'
class-actions='actions__right'
......
......@@ -4,8 +4,8 @@
p
i.fas.fa-times
h2.title_lead_avenir Thanks!
p The submitter of the resource will be advised that this link is broken.
h2.title_lead_avenir=`${data.Thanks}`
p=`${data.ConfirmSendBrokenLink}`
sib-form#report-broken-link-mentor(
data-src=`${endpoints.brokenlinks}`
fields = "resource, submitter"
......
......@@ -12,7 +12,8 @@ sib-router
i.fas.fa-times
div#detail-validation-loader
hidden Loading the resource, please wait...
hidden
i.fas.fa-spinner.fa-spin
sib-display(
loader-id="detail-validation-loader"
......@@ -48,30 +49,30 @@ sib-router
widget-preview_image='cs-preview-picture'
widget-header_specifications='cs-section_header'
label-broken='Report broken link'
label-sharing='Access:'
label-language.name='Language:'
label-publication_year='Year of publication:'
label-header_specifications='Resource specifications'
label-broken=`${data.ReportBrokenLink}`
label-sharing=`${data.Access}`
label-language.name=`${data.Language}`
label-publication_year=`${data.DatePublication}`
label-header_specifications=`${data.ResourceSpecifications}`
label-format.name=''
widget-steps='cs-display-step-property'
label-steps=''
each-label-steps="Step"
each-label-steps=`${data.Step}`
multiple-steps
widget-fields='cs-display-multiple-property'
label-fields=''
each-label-fields='Field:'
each-label-fields=`${data.Field}`
multiple-fields
label-skills='With this resource, you will be able to:'
label-uri='Link to resource'
label-skills=`${data.WithResourceAbleTo}`
label-uri=`${data.LinkToResource}`
name-uri='original-link'
label-country.name='Country:'
label-submitter.mentor_profile.organisation.name='Organisation:'
label-author='Author :'
label-submitter.name='Resource posted by:'
label-country.name=`${data.Country}`
label-submitter.mentor_profile.organisation.name=`${data.Organisation}`
label-author=`${data.Author}`
label-submitter.name=`${data.ResourcePostedBy}`
action-broken='resource-report-broken-link-mentor'
)
......@@ -81,7 +82,7 @@ sib-router
fields='improve'
widget-improve='sib-action'
label-improve='Require improvement'
label-improve=`${data.RequireImprovement}`
action-improve='improvement-dialog'
class-improve='button_base'
)
......@@ -92,7 +93,7 @@ sib-router
fields='refuse'
widget-refuse='sib-action'
label-refuse='Report as inappropriate'
label-refuse=`${data.ReportInappropriate}`
action-refuse='refusal-dialog'
class-refuse='button_base'
)
......@@ -104,45 +105,45 @@ sib-router
widget-reviewer='sib-form-hidden'
widget-status='sib-form-hidden'
value-status='validated'
submit-button='Validate'
submit-button=`${data.Validate}`
next='review-submission-confirmation'
)
dialog#refusal-dialog
h2.title_lead Report as inappropriate
h2.title_lead=`${data.ReportInappropriate}`
sib-form#refusal-dialog-form(
bind-resources
nested-field='review'
fields='comment, status, reviewer',
label-comment='Explain reasons of refusal*'
label-comment=`${data.ExplainReasonsRefusal}`
widget-comment='sib-form-textarea'
widget-reviewer='sib-form-hidden'
widget-status='sib-form-hidden'
value-status='inappropriate'
submit-button='Send ->'
submit-button=`${data.Send}`
next='review-submission-confirmation'
)
dialog#improvement-dialog
h2.title_lead Suggest improvement
h2.title_lead=`${data.SuggestImprovement}`
sib-form#improvement-dialog-form(
bind-resources
nested-field='review'
fields='comment, status, reviewer',
label-comment='Explain improvement required*'
label-comment=`${data.ExplainImprovementRequired}`
widget-reviewer='sib-form-hidden'
widget-comment='sib-form-textarea'
widget-status='sib-form-hidden'
value-status='to_improve'
submit-button='Send ->'
submit-button=`${data.Send}`
next='review-submission-confirmation'
)
dialog#review-submission-confirmation
h2.title_lead_avenir Thanks for your review
p.flex The submitter of the resource will now receive a notification of your review.
p.flex He will then be able to patch and send back the resource to validation
h2.title_lead_avenir=`${data.ThanksForReview}`
p.flex=`${data.SubmitterWillReceiveReview}`
p.flex=`${data.HeWillPatch}`
p.flex
sib-link(next='mentor-resource-list', class='button_base') Back to dashboard
\ No newline at end of file
sib-link(next='mentor-resource-list', class='button_base')=`${data.BackToDashboard}`
\ No newline at end of file
......@@ -2,30 +2,30 @@ div.block_log.block_creat_count.no_shadow
sib-link(class="backlink", next="mentor-resource-list")
i.fas.fa-times
div#validation-process
h2 What is a validation process ?
h2=`${data.WhatValidationProcess}`
div.flex.w_100
figure.w_50
img( src="../images/valid_1.png"
alt="")
figcaption.w_75 Mentor upload a resource to the database
figcaption.w_75=`${data.MentorUploadResourceToDatabase}`
figure.w_50
img( src="../images/valid_2.png"
alt="")
figcaption.w_75 Resource is sent to qualified peers for validation
figcaption.w_75=`${data.ResourceSentToQualifiedPeersForValidation}`
figure.w_33
img( src="../images/valid_3.png"
alt="")
figcaption.w_75 Resource is validated and becomes available in the database
figcaption.w_75=`${data.ResourceBecomesAvailableInDatabase}`
figure.w_33
img( src="../images/valid_4.png"
alt="")
figcaption.w_75 Resource is not validated and improvement is siggested. You get a list of improvement, can edit ans re-load the resource. It goes to validation process again.L0
figcaption.w_75=`${data.ResourceIsNotValidated}`
figure.w_33
img( src="../images/valid_5.png"
alt="")
figcaption.w_75 Resource is reported inapropriate. You get a notification with a message from your peer explaning why.
figcaption.w_75=`${data.ResourceReportedInapropriate}`
\ No newline at end of file
......@@ -7,7 +7,7 @@
include menu.pug
div.flex.flex_espace.flex_item_center
sib-form(
sib-form.languageChoic(
data-src=`${endpoints.languages}`
fields='languages'
range-languages=`${endpoints.languages}`
......
......@@ -47,31 +47,31 @@ include ../../components/widgets
class-review.reviewer.name="validator_ressource"
widget-header_specifications='cs-section_header'
label-broken='Report broken link'
label-sharing='Access:'
label-language.name='Language:'
label-publication_year='Year of publication:'
label-header_specifications='Resource specifications'
label-broken=`${data.ReportBrokenLink}`
label-sharing=`${data.Access}`
label-language.name=`${data.Language}`
label-publication_year=`${data.DatePublication}`
label-header_specifications=`${data.ResourceSpecifications}`
label-format.name=''
class-format.name='format_type'
widget-steps='cs-display-step-property'
label-steps=''
each-label-steps="Step"
each-label-steps=`${data.Step}`
multiple-steps
widget-fields='cs-display-multiple-property'
label-fields=''
each-label-fields='Field:'
each-label-fields=`${data.Field}`
multiple-fields
label-skills='With this resource, you will be able to:'
label-uri='Link to resource'
label-skills=`${data.WithThisResourceBeAbleTo}`
label-uri=`${data.LinkToResource}`
name-uri='original-link'
label-country.name='Country:'
label-submitter.mentor_profile.organisation.name='Organisation:'
label-author='Author :'
label-submitter.name='Resource posted by:'
label-country=`${data.Country}`
label-submitter.mentor_profile.organisation.name=`${data.Organisation}`
label-author=`${data.Author}`
label-submitter.name=`${data.ResourcePostedBy}`
action-broken='resource-report-broken-link-public'
)
......@@ -99,7 +99,7 @@ include ../../components/widgets
bind-resources
fields=""
nested-field="conversations"
counter-template="<p>Comments (${counter})</p>"
counter-template=`<p>${data.Comments} (${counter})</p>`
)
sib-conversation(
......@@ -107,7 +107,7 @@ include ../../components/widgets
id-suffix="conversations"
)
h2.title_lead_avenir Related resources
h2.title_lead_avenir=`${data.RelatedResources}`
sib-display(
bind-resources,
......
......@@ -7,14 +7,14 @@ dialog#resource-report-broken-link-public
include ./resource-report-broken-link-public
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
h2.title_lead.fd_bleu=`${data.generalLabel}`
button.button_dark.pull-right=`${data.WatchThePresentation}`
i.far.fa-play-circle
container.block_list.flex.flex_espace
div.w_75.block-g-entre
div
h2.title_form Search for a resource
h2.title_form=`${data.SearchForResource}`
div#public-resources-loader
hidden
i.fas.fa-spinner.fa-spin
......@@ -22,14 +22,14 @@ container.block_list.flex.flex_espace
data-src=`${endpoints.resources}`,
loader-id="public-resources-loader"
fields='keyword(name_keyword)'
label-name_keyword="Search by name..."
label-name_keyword=`${data.SearchByNam}`
widget-name_keyword="sib-form-placeholder-text"
naked
)
div.keyword_submit.button__actions
div.button_base.ico_gauche Search
div.button_base.ico_gauche=`${data.Search}`
sib-form.instance_database_only(
data-src=`${endpoints.resources}`,
......@@ -42,12 +42,12 @@ container.block_list.flex.flex_espace
sib-form.more_criterias.flex.flex_espace(
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'
label-header_criterias=`${data.Search}`
label-format=`${data.Format}`
label-publication_year=`${data.DatePublication}`
label-country=`${data.CountryPublication}`
label-language=`${data.Language}`
label-fields=`${data.Field}`
widget-header_criterias='cs-section_header'
range-language=`${endpoints.languages}`
......@@ -100,7 +100,7 @@ container.block_list.flex.flex_espace
fields='name'
class="accordion active"
label-name ='Step 1 '
label-name =`${data.Step} 1 `
label-resources=''
widget-name='cs-steps-header'
......@@ -156,7 +156,7 @@ container.block_list.flex.flex_espace
fields='name'
class="accordion"
label-name ='Step 2 '
label-name =`${data.Step} 2 `
label-resources=''
widget-name='cs-steps-header'
......@@ -212,7 +212,7 @@ container.block_list.flex.flex_espace
fields='name'
class="accordion"
label-name ='Step 3 '
label-name =`${data.Step} 3 `
label-resources=''
widget-name='cs-steps-header'
......@@ -268,7 +268,7 @@ container.block_list.flex.flex_espace
fields='name'
class="accordion"
label-name ='Step 4 '
label-name =`${data.Step} 4 `
label-resources=''
widget-name='cs-steps-header'
......@@ -325,7 +325,7 @@ container.block_list.flex.flex_espace
fields='name'
class="accordion"
label-name ='Step 5 '
label-name =`${data.Step} 5 `
label-resources=''
widget-name='cs-steps-header'
......@@ -380,7 +380,7 @@ container.block_list.flex.flex_espace
fields='name'
class="accordion"
label-name ='Step 6 '
label-name =`${data.Step} 6 `
label-resources=''
widget-name='cs-steps-header'
......
......@@ -4,8 +4,8 @@
p
i.fas.fa-times
h2.title_lead_avenir Thanks!
p The submitter of the resource will be advised that this link is broken.
h2.title_lead_avenir=`${data.Thanks}`
p=`${data.ConfirmSendBrokenLink}`
sib-form#report-broken-link-public(
data-src=`${endpoints.brokenlinks}`
fields = "resource, submitter"
......
......@@ -4,17 +4,17 @@ sib-router(default-route='splash-index')
figure(class="logo")
img(src="../images/logo.png" alt="Coopstarter logo")
h2.title_lead Welcome to our international index of resources for cooperative mentors and entrepreneurs
h2.title_lead=`${data.welcome}`
#splash-index(hidden).no-sidebar.block_log.flex
#splash-index(hidden).no-sidebar.block_log.flex.loggin
figure.img_log
img(src="../images/mentor.png"
alt="Connect as mentor")
cs-login(bind-user)
button#mentor_login.button_base Connect to the knowledge base
button#mentor_login.button_base=`${data.ConnectKnowledgeBase}`
sib-link(next='public-dashboard')
button#public-acces.button_base Access without registration
button#public-acces.button_base=`${data.AccessWithoutRegistration}`
\ No newline at end of file
......@@ -2,7 +2,7 @@ doctype html
html
include includes/head.pug
sib-router(default-route='splash')
sib-router(default-route='splash' route-prefix=lang)
sib-route(name='splash')
sib-route(name='account-creation')
sib-route(name='mentor-dashboard')
......@@ -56,7 +56,7 @@ script(type='module').
);
}
user = await store.get(user);
if (user && user.mentor_profile) {
window.dispatchEvent(
new CustomEvent('requestNavigation', { detail: { route: 'mentor-dashboard' } })
......
......@@ -325,6 +325,38 @@ function manageLogoutButton() {
}
}
/**
* Manage the select language
*/
function manageSelectLanguage() {
const languageSelects = document.getElementsByClassName("languageChoice")
for (let item of languageSelects) {
item.addEventListener("change", function() {
//We listen the selected option for the language
uriLanguge = item.querySelector("option:checked").value
//We retrieve element of the url
var pathAfterThePrefix = window.location.pathname.split('/')[2];
var base_url = location.host
//If the selected language is french
if (uriLanguge === '{"@id": "http://localhost:8000/languages/1/"}') {
//Redirection with the appropriate prefixe.
var redirect = "http://"+base_url+'/fr/'+pathAfterThePrefix
document.location.href = redirect
} else {
var redirect = "http://"+base_url+'/en/'+pathAfterThePrefix
document.location.href = redirect
}
})
}
}
/**
* Initi the custom form file behaviour
* Todo : we can improve the performance adding param to reduce the loop
......@@ -589,6 +621,9 @@ jQuery(document).ready(function($) {
//Manage the logout action
manageLogoutButton();
//Manage the select language
manageSelectLanguage();
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXX MENTOR DASHBOARD XXXXXXXXXXXXXXXXXXXX
......