From 441065ddcdc163fda89a5c8d78c91fddb6e29a8c Mon Sep 17 00:00:00 2001
From: Alice <alice.poggioli@hotmail.fr>
Date: Wed, 30 Oct 2019 08:45:35 +0100
Subject: [PATCH] Include the iframe

---
 src/includes/components/widgets.pug            | 3 +++
 src/includes/entrepreneur/resources/detail.pug | 4 +++-
 src/includes/mentor/resources/create.pug       | 4 +++-
 src/includes/mentor/resources/detail.pug       | 3 ++-
 src/includes/public/resources/detail.pug       | 3 ++-
 5 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug
index c14c33f2..13a2168e 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/resources/detail.pug b/src/includes/entrepreneur/resources/detail.pug
index dbb6ea52..f8d40971 100644
--- a/src/includes/entrepreneur/resources/detail.pug
+++ b/src/includes/entrepreneur/resources/detail.pug
@@ -15,7 +15,7 @@ include ../../components/widgets
     fields='name, steps, format.name, \
             submitter_info(submitter.account.picture, submitter.name, \
             submitter.mentor_profile.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 +45,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='Report broken link'
     label-sharing='Access:'
diff --git a/src/includes/mentor/resources/create.pug b/src/includes/mentor/resources/create.pug
index b45c0ea5..aa22462e 100644
--- a/src/includes/mentor/resources/create.pug
+++ b/src/includes/mentor/resources/create.pug
@@ -43,7 +43,7 @@ p.p_entete Thank you for enriching our database !
         label-publication_year='Year of publication*'
         label-skills='Learning outcomes, skills*'
         label-description='Description'
-        label-iframe_link='For videos, report iframe link'
+        label-iframe_link='For videos, click on "share" and "integrate"'
         label-preview_image='Upload preview image'
         label-tags='Add tags'
         
@@ -80,6 +80,8 @@ p.p_entete Thank you for enriching our database !
         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='Send for validation ->'
         next="resource-creation-confirmation"
diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug
index cf20f6a7..bb9faa4c 100644
--- a/src/includes/mentor/resources/detail.pug
+++ b/src/includes/mentor/resources/detail.pug
@@ -15,7 +15,7 @@ include ../../components/widgets
     fields='name, steps, format.name,\
             submitter_info(submitter.account.picture, submitter.name, \
             submitter.mentor_profile.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,\
@@ -53,6 +53,7 @@ include ../../components/widgets
     label-publication_year='Year of publication:'
     label-header_specifications='Resource specifications'
     label-format.name=''
+    widget-iframe_link='iframe-video-resource'
     
     widget-steps='cs-display-step-property'
     label-steps=''
diff --git a/src/includes/public/resources/detail.pug b/src/includes/public/resources/detail.pug
index 84d387e0..07774f79 100644
--- a/src/includes/public/resources/detail.pug
+++ b/src/includes/public/resources/detail.pug
@@ -16,7 +16,7 @@ include ../../components/widgets
     fields='name, steps, format.name,\
             submitter_info(submitter.account.picture, submitter.name, \
             submitter.mentor_profile.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 +46,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='Report broken link'
     label-sharing='Access:'
-- 
GitLab