diff --git a/src/includes/contributor/profile/detail.pug b/src/includes/contributor/profile/detail.pug index 2a899abb76cfe690d50cb562e55e823e7045e275..8a2f9bbee6bce78cf5774fddf1798c38141805d2 100644 --- a/src/includes/contributor/profile/detail.pug +++ b/src/includes/contributor/profile/detail.pug @@ -15,16 +15,20 @@ div.block_list.flex div.dashboard__database solid-link(next='contributor-resource-list') div.button_base.ico_gauche.ico_search=`${data.BackToDashboard}` - - div.dashboard__database - solid-link(next='contributor-profile-delete') - div.button_base=`${data.DeleteYourAccount}` div.dashboard__database div.logout-button.button_base( role='log out' )=`${data.Logout}` - + + div.dashboard__database + div.helpNeeded.button_base + a(href=`mailto:coopedia@coopseurope.coop`)=`${data.HelpNeeded}` + + div.dashboard__database + solid-link(next='contributor-profile-delete') + div.button_base.delete=`${data.DeleteYourAccount}` + div.profile_information.block_log.w_75 solid-link(next='contributor-account-edit') button.button_edit <i class="fas fa-pen" aria-hidden="true"></i> diff --git a/src/includes/searcher/profile/detail.pug b/src/includes/searcher/profile/detail.pug index 3670ff8d822a298591d96b0051d3f509e6879bb5..ff858ca7ccf07a3b8aef94e0f4a5c5f592404b2a 100644 --- a/src/includes/searcher/profile/detail.pug +++ b/src/includes/searcher/profile/detail.pug @@ -8,14 +8,19 @@ div.block_list.flex solid-link(next='searcher-dashboard') div.button_base.ico_gauche.ico_database=`${data.BrowseDatabase}` - div.dashboard__database - solid-link(next='searcher-profile-delete') - div.button_base=`${data.DeleteYourAccount}` - div.dashboard__database div.logout-button.button_base( role='log out' )=`${data.Logout}` + + + div.dashboard__database + div.helpNeeded.button_base + a(href=`mailto:coopedia@coopseurope.coop`)=`${data.HelpNeeded}` + + div.dashboard__database + solid-link(next='searcher-profile-delete') + div.button_base.delete=`${data.DeleteYourAccount}` div.profile_information.block_log.w_75 solid-link(next='searcher-account-edit') diff --git a/src/styles/index.scss b/src/styles/index.scss index f7d32732b056dd2cd598250f26fa6b3f602455de..aef956c679b5d59598827b744344b372aa7cfac6 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -82,6 +82,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/ --black: #191923; --white: #FBFEF9; --green: #58AB05; + --alert-color:var(--orange); } /* XXXXXXXXXXXXXXXXXXXXXXXX technique XXXXXXXXXXXXXXXXXXXXXX */ @@ -303,6 +304,8 @@ input[type="submit"].disabled { width: auto; cursor: pointer; } + + .button_base:hover, input[type="submit"]:hover, #contributor-resource-detail a:hover, #contributor-resource-validate a:hover, #searcher-resource-detail a:hover,.sib-conversation form input[type="submit"]:hover, #public-resource-detail a:hover, #contributor-database-resource-detail a:hover,.sib-conversation form input[type="submit"]:hover{ @@ -313,6 +316,30 @@ input[type="submit"] { padding: 0 1.9rem 0 1.9rem; } +//Personnalise link color in profile menu +#searcher-account .dashboard__database .helpNeeded:hover ,#contributor-account .dashboard__database .helpNeeded:hover{ + a{ + color:var(--bg-btn-base); + } +} + +#searcher-account .dashboard__database .helpNeeded a, #contributor-account .dashboard__database .helpNeeded a { + color: var(--bg-block); + text-decoration: none; +} + +//Personnalisation of button to red for account deletion +#searcher-account .dashboard__database .delete, #contributor-account .dashboard__database .delete{ + background-color: var(--alert-color); + border: 2px solid var(--alert-color); +} + +#searcher-account .dashboard__database .delete:hover, #contributor-account .dashboard__database .delete:hover{ + background-color: transparent; + border: 2px solid var(--alert-color); + color: var(--alert-color); +} + .button_dark, #confirm_suppress button{ transition: all .3s ease-in-out; background-color: var(--orange); diff --git a/translation/en.yml b/translation/en.yml index 3aa68b2e33b67c6d00dfa01c9af593198d826f10..58111a1ce7ba5122eaa249f454e9db2e97e022c9 100644 --- a/translation/en.yml +++ b/translation/en.yml @@ -147,4 +147,5 @@ OtherOrganisationContact: If you chose Other, please specify contact email OtherOrganisationName: If you chose Other, please specify organisation name AboutYourOrganisation: About your organisation Reviewer: Already reviewed once by -DeleteYourAccount: Delete your account \ No newline at end of file +DeleteYourAccount: Delete your account +HelpNeeded: Get assistance \ No newline at end of file diff --git a/translation/fr.yml b/translation/fr.yml index 68d5bf2979643b0b6627711e47ff37c1480dece3..56462850adc88fd6a166728f9acb253b1661ad4a 100644 --- a/translation/fr.yml +++ b/translation/fr.yml @@ -141,3 +141,5 @@ OtherOrganisationName: Si vous avez choisi autre, veuillez spécifier le nom de AboutYourOrganisation: A propos de votre organisation Reviewer: Déjà revue par DeleteYourAccount: Supprimer votre compte +HelpNeeded: Demander de l'assistance + diff --git a/translation/it.yml b/translation/it.yml index 5b8cdd6ba177aa7bbc4cb322ad6e25f633c8415a..14d208755ad59f4a7734b5af9c1023cb3e087a3c 100644 --- a/translation/it.yml +++ b/translation/it.yml @@ -139,3 +139,4 @@ StepDescription6: Step 6 EditThisResource : Edit this resource ImprovementNotice : A contributor has send you this improvement suggestion DeleteYourAccount: Delete your account +HelpNeeded: Get assistance \ No newline at end of file