Skip to content

Commit

Permalink
feat(networking): add consents in profile creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Mar 23, 2024
1 parent c4bec14 commit 86f4ff1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<string name="text_empty_networking">Ici c\'est la zone de networking. Créer ton profil pour pouvoir ajouter les profils que tu croiseras et avec qui tu veux garder contact après l\'événement !</string>
<string name="text_empty_networking_warning">Si vous créez votre profil et que vous partagez votre qrcode, vous acceptez la prospection que peut représenter ce scan par l’un de nos partenaires.</string>
<string name="text_empty_contacts">Scanne le QR code de ton interlocuteur pour l’ajouter à ton répertoire de contact.</string>
<string name="text_networking_consents">Si vous créez votre profil, vous consentez à ce que les informations que vous avez fournies dans ce formulaire soient partagées avec d'autres participants ou les partenaires de l'événement via le qrcode généré dans l'application.</string>
<string name="text_job_salary">%dK - %dK/%s</string>
<string name="text_job_requirements_one">%d année min</string>
<string name="text_job_requirements_many">%d années min</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<string name="text_empty_networking">Here is the networking space. Create your profile to be able to add attendees you will meet and with who you want to keep contact after the event!</string>
<string name="text_empty_networking_warning">If you create your profile and share your qrcode, you accept the prospecting that this scan may represent by one of our partners.</string>
<string name="text_empty_contacts">Scan qrcode of the attendee to add her or him in your contact list.</string>
<string name="text_networking_consents">By creating your profile, you consent to the information you provide in this form being shared with other attendees or event partners by the qrcode generated in the app.</string>
<string name="text_job_salary">%1$dK - %2$dK/%3$s</string>
<string name="text_job_requirements_one">%1$d year min</string>
<string name="text_job_requirements_many">%1$d years min</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ import conferences4hall.shared.resources.generated.resources.text_level_beginner
import conferences4hall.shared.resources.generated.resources.text_level_intermediate
import conferences4hall.shared.resources.generated.resources.text_loading
import conferences4hall.shared.resources.generated.resources.text_networking_ask_to_delete
import conferences4hall.shared.resources.generated.resources.text_networking_consents
import conferences4hall.shared.resources.generated.resources.text_openfeedback_not_started
import conferences4hall.shared.resources.generated.resources.text_openfeedback_title
import conferences4hall.shared.resources.generated.resources.text_permission
Expand Down Expand Up @@ -384,6 +385,10 @@ val Resource.string.text_empty_networking: StringResource
val Resource.string.text_empty_networking_warning: StringResource
get() = Res.string.text_empty_networking_warning

@OptIn(ExperimentalResourceApi::class)
val Resource.string.text_networking_consents: StringResource
get() = Res.string.text_networking_consents

@OptIn(ExperimentalResourceApi::class)
val Resource.string.text_error: StringResource
get() = Res.string.text_error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.gdglille.devfest.android.theme.m3.networking.screens

import android.annotation.SuppressLint
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
Expand All @@ -26,6 +27,7 @@ import org.gdglille.devfest.android.shared.resources.input_email
import org.gdglille.devfest.android.shared.resources.input_firstname
import org.gdglille.devfest.android.shared.resources.input_lastname
import org.gdglille.devfest.android.shared.resources.screen_profile
import org.gdglille.devfest.android.shared.resources.text_networking_consents
import org.gdglille.devfest.models.ui.Field
import org.gdglille.devfest.models.ui.UserProfileUi
import org.jetbrains.compose.resources.ExperimentalResourceApi
Expand Down Expand Up @@ -97,8 +99,12 @@ fun ProfileInputScreen(
}
)
}
item {
Text(stringResource(Resource.string.text_networking_consents))
}
item {
Button(
modifier = Modifier.fillMaxWidth(),
enabled = isFormValid,
onClick = {
focusManager.clearFocus()
Expand Down

0 comments on commit 86f4ff1

Please sign in to comment.