diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug index cd0507c55bc7d26a280d794161c738e9feccaa03..47c41dd0ce693aae2594bf1d9fa99ba0c9e84551 100644 --- a/src/includes/components/widgets.pug +++ b/src/includes/components/widgets.pug @@ -164,3 +164,6 @@ sib-widget(name="cs-form-file-custom" ) sib-form-file(upload-url=`${sdn}upload/` name="preview_image") +sib-widget(name="iframe-video-resource" ) + template + div ${value} \ No newline at end of file diff --git a/src/includes/entrepreneur/profile/create.pug b/src/includes/entrepreneur/profile/create.pug index 98ad2e04a66cddff45d7db4296bf41713e858e72..cdff639ba33f22c1d372dece2d465d154172026c 100644 --- a/src/includes/entrepreneur/profile/create.pug +++ b/src/includes/entrepreneur/profile/create.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - figure.logo img(src="../images/logo.png" alt="Coopstarter") diff --git a/src/includes/entrepreneur/profile/detail.pug b/src/includes/entrepreneur/profile/detail.pug index dd7f8e29e369f434c7df44c2a7690dc98221ded8..3d5d831582ad35d1a048fd399f179e5d22168183 100644 --- a/src/includes/entrepreneur/profile/detail.pug +++ b/src/includes/entrepreneur/profile/detail.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - div.container_min h2.title_lead.fd_bleu=`${data.MyAccount}` diff --git a/src/includes/entrepreneur/profile/edit.pug b/src/includes/entrepreneur/profile/edit.pug index 0c43b55a72fc74a65608eb02f4ded15ff9a846f8..922f7f099f07f4e24e056076ce0bef6af6ea37f5 100644 --- a/src/includes/entrepreneur/profile/edit.pug +++ b/src/includes/entrepreneur/profile/edit.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - h2.title_create= data.EditYourAccount sib-form#entrepreneur_profile_edition.block_log.block_creat_count( diff --git a/src/includes/entrepreneur/resources/detail.pug b/src/includes/entrepreneur/resources/detail.pug index f0b2c64494951023e3f19da9c7a7f2ac66cc6d87..0a95c029f7ce820cca314d94fb4ffa75e92840f7 100644 --- a/src/includes/entrepreneur/resources/detail.pug +++ b/src/includes/entrepreneur/resources/detail.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - .block_log.block_creat_count.no_shadow sib-link(class="backlink", next="entrepreneur-resource-list") .like @@ -15,7 +13,7 @@ include ../../components/widgets fields='name, steps, format.name, \ submitter_info(submitter.account.picture, submitter.name, \ submitter.mentorProfile.organisation.name, skills, uri, broken),\ - content(preview_image, tags),\ + content(preview_image, iframe_link, tags),\ description, review.reviewer.account.picture, review.reviewer.name,\ copyright, specifications(\ header_specifications, author, country.name, language.name,\ @@ -45,6 +43,8 @@ include ../../components/widgets widget-review.reviewer.name='cs-resource-reviewer' class-review.reviewer.name="validator_ressource" widget-header_specifications='cs-section_header' + widget-iframe_link='iframe-video-resource' + label-broken=`${data.ReportBrokenLink}` label-sharing=`${data.Access}` diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index f24fb4d1b5a2dc2e5a715fe4c9c8596fc1f3b25f..8e036f6ed6970205daaf7df6836b1900b9f54e13 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - sib-router sib-route( name='resource-report-broken-link-entrepreneur', use-id) diff --git a/src/includes/mentor/browseDatabase.pug b/src/includes/mentor/browseDatabase.pug index 231cf226620d452957daa017be73edadd073510e..aa33150f6449113781e5fe50647044248ca64069 100644 --- a/src/includes/mentor/browseDatabase.pug +++ b/src/includes/mentor/browseDatabase.pug @@ -1,6 +1,3 @@ -include ../components/widgets - - div.container_min h2.title_lead.fd_bleu=`${data.generalLabel}` button.button_dark.pull-right= `${data.WatchThePresentation}` diff --git a/src/includes/mentor/profile/create.pug b/src/includes/mentor/profile/create.pug index 92c27f8f339f9d351ff92c26a1639543de13b576..10b390d878db5853a1b4fc5d1ffbe3e4a5b62a32 100644 --- a/src/includes/mentor/profile/create.pug +++ b/src/includes/mentor/profile/create.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - figure.logo img(src="../images/logo.png" alt="Coopstarter") diff --git a/src/includes/mentor/profile/detail.pug b/src/includes/mentor/profile/detail.pug index 9ed918d6d5b5e74ee4cd69d8679b27254735787e..f7b1c3006b68875b890f53e1f15dfaf3036db226 100644 --- a/src/includes/mentor/profile/detail.pug +++ b/src/includes/mentor/profile/detail.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - div.container_min h2.title_lead.fd_bleu=`${data.MyAccount}` diff --git a/src/includes/mentor/profile/edit.pug b/src/includes/mentor/profile/edit.pug index 41e72b2098fc51ad4dec235d83bde98ba820164d..80fee452f6e424d6e841165cc8e95dd04d3a1845 100644 --- a/src/includes/mentor/profile/edit.pug +++ b/src/includes/mentor/profile/edit.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - h2.title_create= data.EditYourAccount sib-form#mentor_profile_edition.block_log.block_creat_count( diff --git a/src/includes/mentor/resources/confirmation-status-change.pug b/src/includes/mentor/resources/confirmation-status-change.pug index 27d35a14b464bfb8a6f78eddc716b71a76c44f74..eccc4c4aac34eead678a03210900d50b58450f4d 100644 --- a/src/includes/mentor/resources/confirmation-status-change.pug +++ b/src/includes/mentor/resources/confirmation-status-change.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - .block_log.block_creat_count.no_shadow sib-link(class="backlink", next="mentor-resource-list") .like diff --git a/src/includes/mentor/resources/create.pug b/src/includes/mentor/resources/create.pug index ba098a3ca91e163e6d1daf21c1658b26b9cae38a..be06ba6e4ba40dae4753fd45f1e0918083ffefcb 100644 --- a/src/includes/mentor/resources/create.pug +++ b/src/includes/mentor/resources/create.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - h2.title_lead_avenir=`${data.PostResource}` p.p_entete=`${data.ThankYouEnrichingDatabase}` @@ -80,6 +78,8 @@ p.p_entete=`${data.ThankYouEnrichingDatabase}` upload-url-preview_image=`${sdn}upload/` widget-preview_image='cs-form-file-custom' class-preview_image='input_photo w_25' + widget-iframe_link='sib-form-textarea' + submit-button=`${data.SendForValidation}` next="resource-creation-confirmation" diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index b7655c7d2dc13d0bc7400fc55efbb20e3522f33f..92e150a7a7a3772b921924f66818ad6a636fefc6 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - .block_log.block_creat_count.no_shadow sib-link(class="backlink", next="mentor-resource-list") .like @@ -16,7 +14,7 @@ include ../../components/widgets fields='name, steps, format.name,\ submitter_info(submitter.account.picture, submitter.name, \ submitter.mentorProfile.organisation.name, skills, uri, broken),\ - content(preview_image, tags),\ + content(preview_image, iframe_link, tags),\ description, review.reviewer.account.picture, review.reviewer.name,\ copyright, specifications(\ header_specifications, author, country, language.name,\ @@ -54,6 +52,7 @@ include ../../components/widgets label-publication_year=`${data.DatePublication}` label-header_specifications=`${data.ResourceSpecifications}` label-format.name='' + widget-iframe_link='iframe-video-resource' widget-steps='cs-display-step-property' label-steps='' diff --git a/src/includes/mentor/resources/edit.pug b/src/includes/mentor/resources/edit.pug index 739e6cd3f58ecdc40681778415b8bc951663db2d..7937469aa14d85ba3fe9388c6ee8d938af51486a 100644 --- a/src/includes/mentor/resources/edit.pug +++ b/src/includes/mentor/resources/edit.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - h2.title_lead_avenir=`${data.EditResource}` p.p_entete=`${data.ThankYouEnrichingDatabase}` @@ -18,6 +16,7 @@ p.p_entete=`${data.ThankYouEnrichingDatabase}` widget-header_classification='cs-section_header' widget-header_access='cs-section_header' widget-header_related='cs-section_header' + widget-iframe_link='sib-form-textarea' range-type=`${endpoints.types}` range-format=`${endpoints.formats}` diff --git a/src/includes/mentor/resources/list.pug b/src/includes/mentor/resources/list.pug index 1129599be190b542628a7d25a43c7ab1e456171d..f3727fe10fef6b8d935ba84697a465a6c965791a 100644 --- a/src/includes/mentor/resources/list.pug +++ b/src/includes/mentor/resources/list.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - sib-router sib-route( name='confirm_suppress', use-id) sib-route( name='resource-report-broken-link-mentor', use-id) diff --git a/src/includes/mentor/resources/validate.pug b/src/includes/mentor/resources/validate.pug index 92c8d5115e39aa765fdacf1c2a7c7a551142cf34..294fedb71d899638655c94e7977a5eec11811e77 100644 --- a/src/includes/mentor/resources/validate.pug +++ b/src/includes/mentor/resources/validate.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - sib-router sib-route(name='improvement-dialog') sib-route(name='refusal-dialog') diff --git a/src/includes/public/resources/detail.pug b/src/includes/public/resources/detail.pug index 6a500211d5a0fe4b66e36f90f76fa1840885f5a2..648f0ee11cb6a91e4a9bc961c0200a10567e9db6 100644 --- a/src/includes/public/resources/detail.pug +++ b/src/includes/public/resources/detail.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - .block_log.block_creat_count.no_shadow sib-link(class="backlink", next="public-resource-list") .like @@ -16,7 +14,7 @@ include ../../components/widgets fields='name, steps, format.name,\ submitter_info(submitter.account.picture, submitter.name, \ submitter.mentorProfile.organisation.name, skills, uri, broken),\ - content(preview_image, tags),\ + content(preview_image, iframe_link, tags),\ description, review.reviewer.account.picture, review.reviewer.name,\ copyright, specifications(\ header_specifications, author, country.name, language.name,\ @@ -46,6 +44,7 @@ include ../../components/widgets widget-review.reviewer.name='cs-resource-reviewer' class-review.reviewer.name="validator_ressource" widget-header_specifications='cs-section_header' + widget-iframe_link='iframe-video-resource' label-broken=`${data.ReportBrokenLink}` label-sharing=`${data.Access}` diff --git a/src/includes/public/resources/list.pug b/src/includes/public/resources/list.pug index d0d8e49c1f33864e2e38d4f38f29a359fca2719f..f69ae98d16832a26e05b051b30380873f2d3e741 100644 --- a/src/includes/public/resources/list.pug +++ b/src/includes/public/resources/list.pug @@ -1,5 +1,3 @@ -include ../../components/widgets - sib-router sib-route( name='resource-report-broken-link-public', use-id) diff --git a/src/index.pug b/src/index.pug index fa56f8928be8bb64bb5beac88a61823f4c6316ff..bf405d0df1300b9621d4364bb6e66802bdd7783e 100644 --- a/src/index.pug +++ b/src/index.pug @@ -9,6 +9,8 @@ html sib-route(name='entrepreneur-dashboard') sib-route(name='public-dashboard') + include includes/components/widgets.pug + body #mentor-dashboard(hidden).no-sidebar include includes/mentor/dashboard.pug