add scrolling functionnality for description procedure
This commit is contained in:
parent
2656bde45f
commit
0e5deda86c
4 changed files with 8 additions and 36 deletions
|
@ -100,7 +100,7 @@ $procedure-description-line-height: 22px;
|
|||
// If the text exceeds the max-height,
|
||||
// truncate it and displays the "Read more" button.
|
||||
&.read-more-enabled {
|
||||
overflow: hidden;
|
||||
overflow: auto;
|
||||
border-bottom: 1px solid $border-grey;
|
||||
|
||||
+ .read-more-button {
|
||||
|
|
|
@ -22,6 +22,6 @@
|
|||
%p Vous pouvez déposer vos dossiers jusqu’au #{procedure_auto_archive_datetime(procedure)}.
|
||||
|
||||
.procedure-description
|
||||
.procedure-description-body.read-more-enabled.read-more-collapsed
|
||||
.procedure-description-body.read-more-enabled.read-more-collapsed{ tabindex: "0", role: "region", "aria-label": t('views.users.dossiers.identite.description') }
|
||||
= h string_to_html(procedure.description, allow_a: true)
|
||||
= button_tag "Afficher la description complète", class: 'button read-more-button'
|
||||
|
|
|
@ -68,6 +68,7 @@ en:
|
|||
are_you_new: First time on %{app_name}?
|
||||
my_account: My account
|
||||
header:
|
||||
label_modal: "Burger menu"
|
||||
close_modal: 'Close'
|
||||
back: "Back"
|
||||
back_title: "Revenir sur le site de mon administration"
|
||||
|
@ -92,13 +93,11 @@ en:
|
|||
existing_dossiers: You already have files for this procedure
|
||||
show_dossiers: View my current files
|
||||
prefilled_draft: "You have a prefilled file"
|
||||
prefilled_draft_detail_html: "You are ready to continue a prefilled file for the \"%{procedure}\" procedure, started <strong>%{time_ago} ago</strong>."
|
||||
prefill_dossier_detail_html: "You are ready to continue a prefilled file for the \"%{procedure}\" procedure."
|
||||
prefilled_draft_detail_html: "You prefilled a file for the \"%{procedure}\" procedure <strong>%{time_ago} ago</strong>"
|
||||
already_draft: "You already started to fill a file"
|
||||
already_draft_detail_html: "You started to fill a file for the \"%{procedure}\" procedure <strong>%{time_ago} ago</strong>"
|
||||
already_not_draft: "You already submitted a file"
|
||||
already_not_draft_detail_html: "You submitted a file for the \"%{procedure}\" procedure <strong>%{time_ago} ago</strong>."
|
||||
go_to_prefilled_file: 'Continue to fill my prefilled file'
|
||||
continue_file: "Continue to fill my file"
|
||||
start_new_file: "Start a new file"
|
||||
show_my_submitted_file: 'Show my submitted file'
|
||||
|
@ -146,7 +145,6 @@ en:
|
|||
iban: FR7611315000011234567890138
|
||||
yes_no: "true"
|
||||
pays: "FR"
|
||||
departements: "56"
|
||||
regions: "53"
|
||||
date: "2023-02-01"
|
||||
datetime: "2023-02-01T10:30"
|
||||
|
@ -265,6 +263,7 @@ en:
|
|||
identity_data: Identity data
|
||||
all_required: All fields are required.
|
||||
civility: Civility
|
||||
description: Description of the procedure
|
||||
first_name: First Name
|
||||
last_name: Last Name
|
||||
birthdate: Date de naissance
|
||||
|
@ -397,19 +396,6 @@ en:
|
|||
zone: This procedure is run by
|
||||
champs:
|
||||
value: Value
|
||||
default_mail_attributes: &default_mail_attributes
|
||||
hints:
|
||||
subject: The generated subject will be truncated if it exceeds 100 characters.
|
||||
mails/closed_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/initiated_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/received_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/refused_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/without_continuation_mail:
|
||||
<< : *default_mail_attributes
|
||||
|
||||
errors:
|
||||
messages:
|
||||
|
|
|
@ -59,6 +59,7 @@ fr:
|
|||
are_you_new: Vous êtes nouveau sur %{app_name} ?
|
||||
my_account: Mon compte
|
||||
header:
|
||||
label_modal: "Menu en-tête de page"
|
||||
close_modal: 'Fermer'
|
||||
back: "Revenir en arrière"
|
||||
back_title: "Revenir sur le site de mon administration"
|
||||
|
@ -83,13 +84,11 @@ fr:
|
|||
existing_dossiers: Vous avez déjà des dossiers pour cette démarche
|
||||
show_dossiers: Voir mes dossiers en cours
|
||||
prefilled_draft: "Vous avez un dossier prérempli"
|
||||
prefilled_draft_detail_html: "Vous êtes prêt·e à poursuivre un dossier prérempli sur la démarche « %{procedure} », commencé il y a <strong>%{time_ago}</strong>."
|
||||
prefill_dossier_detail_html: "Vous êtes prêt·e à poursuivre un dossier prérempli sur la démarche « %{procedure} »."
|
||||
prefilled_draft_detail_html: "Il y a <strong>%{time_ago}</strong>, vous avez prérempli un dossier sur la démarche « %{procedure} »."
|
||||
already_draft: "Vous avez déjà commencé à remplir un dossier"
|
||||
already_draft_detail_html: "Il y a <strong>%{time_ago}</strong>, vous avez commencé à remplir un dossier sur la démarche « %{procedure} »."
|
||||
already_not_draft: "Vous avez déjà déposé un dossier"
|
||||
already_not_draft_detail_html: "Il y a <strong>%{time_ago}</strong>, vous avez déposé un dossier sur la démarche « %{procedure} »."
|
||||
go_to_prefilled_file: 'Poursuivre mon dossier prérempli'
|
||||
continue_file: 'Continuer à remplir mon dossier'
|
||||
start_new_file: 'Commencer un nouveau dossier'
|
||||
show_my_submitted_file: 'Voir mon dossier déposé'
|
||||
|
@ -138,7 +137,6 @@ fr:
|
|||
yes_no: "true"
|
||||
civilite: "M."
|
||||
pays: "FR"
|
||||
departements: "56"
|
||||
regions: "53"
|
||||
date: "2023-02-01"
|
||||
datetime: "2023-02-01T10:30"
|
||||
|
@ -261,6 +259,7 @@ fr:
|
|||
identity_data: Données d’identité
|
||||
all_required: Tous les champs sont obligatoires.
|
||||
civility: Civilité
|
||||
description: Description de la procédure
|
||||
first_name: Prénom
|
||||
last_name: Nom
|
||||
birthdate: Date de naissance
|
||||
|
@ -394,19 +393,6 @@ fr:
|
|||
zone: La démarche est mise en œuvre par
|
||||
champs:
|
||||
value: Valeur du champ
|
||||
default_mail_attributes: &default_mail_attributes
|
||||
hints:
|
||||
subject: "L’objet généré sera tronqué s’il dépasse 100 caractères."
|
||||
mails/closed_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/initiated_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/received_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/refused_mail:
|
||||
<< : *default_mail_attributes
|
||||
mails/without_continuation_mail:
|
||||
<< : *default_mail_attributes
|
||||
|
||||
errors:
|
||||
messages:
|
||||
|
|
Loading…
Add table
Reference in a new issue