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