From ba64205dacf0fd69ef355b315642922590cc1dc4 Mon Sep 17 00:00:00 2001
From: Alice <alice.poggioli@hotmail.fr>
Date: Tue, 10 Sep 2019 17:37:24 +0200
Subject: [PATCH] WIP: Mentor profil editable with new feature 'editable-xyz'

---
 src/includes/mentor/profile.pug | 32 ++++++++++++++++++++++++--------
 1 file changed, 24 insertions(+), 8 deletions(-)

diff --git a/src/includes/mentor/profile.pug b/src/includes/mentor/profile.pug
index 55c9374b..0b7746cc 100644
--- a/src/includes/mentor/profile.pug
+++ b/src/includes/mentor/profile.pug
@@ -24,15 +24,23 @@ div.block_list.flex
                 ) Logout
     
     div.profile_information.block_log.w_75
+
         sib-display(
             bind-user
             fields='account.picture, name, mentor_profile.headline, mentor_profile.city, mentor_profile.country, registered_on'
             widget-account.picture='cs-profile-picture'
-            widget-name='cs-display-property'
-            widget-mentor_profile.headline='cs-display-property'
-            widget-mentor_profile.city='cs-display-property'
-            widget-mentor_profile.country='cs-display-property'
+            widget-name='sib-display-div'
+            widget-mentor_profile.headline='sib-display-div'
+            widget-mentor_profile.city='sib-display-div'
+            widget-mentor_profile.country='sib-display-div'
             widget-mentor_profile.registered_on='cs-display-property'
+
+            editable-account.picture
+            editable-name
+            editable-mentor_profile.headline
+            editable-mentor_profile.country
+            editable-mentor_profile.city
+
         )
 
         sib-display.bold(
@@ -49,8 +57,11 @@ div.block_list.flex
             widget-skills_label='cs-display-label'
             label-skills_label='Skills:'
             label-biography_label='Activities:'
-            widget-mentor_profile.skills='cs-display-property'
-            widget-mentor_profile.biography='cs-display-property'
+            widget-mentor_profile.skills='sib-display-div'
+            widget-mentor_profile.biography='sib-display-div'
+
+            editable-mentor_profile.skills
+            editable-mentor_profile.biography
         )
 
         sib-display(
@@ -60,10 +71,15 @@ div.block_list.flex
             class-email="contact_profil"
             label-mentor_profile.phone='Phone number:'
             class-mentor_profile.phone="contact_profil"
-            widget-email='cs-display-resource-property'
-            widget-mentor_profile.phone='cs-display-resource-property'
+            widget-email='sib-display-mailto'
+            widget-mentor_profile.phone='sib-display-tel'
             widget-mentor_profile.linkedin='cs-display-link'
             widget-mentor_profile.twitter='cs-display-link'
             label-mentor_profile.twitter='<i class="fab fa-twitter"></i>'
             label-mentor_profile.linkedin='<i class="fab fa-linkedin-in"></i>'
+
+            editable-email
+            editable-mentor_profile.phone
+            editable-mentor_profile.linkedin
+            editable-mentor_profile.twitter
         )
\ No newline at end of file
-- 
GitLab