style(admin): minor spacing improvements in procedure form

This commit is contained in:
Colin Darie 2024-04-16 17:50:56 +02:00
parent ec26ebb807
commit 2515f46fea
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -88,37 +88,37 @@
Formats acceptés : .doc, .odt, .pdf, .ppt, .pptx
= render Attachment::EditComponent.new(attached_file: @procedure.notice, view_as: :download)
- if !@procedure.locked?
%fieldset.fr-fieldset{ "aria-labelledby": "for-individual-legend" }
%legend#for-individual-legend.fr-fieldset__legend.fr-fieldset__legend--regular
À qui sadresse ma démarche ?
%span.fr-hint-text Si votre démarche sadresse indifféremment à une personne morale ou un particulier, choisissez l'option « Particuliers ». Vous pourrez ajouter un champ SIRET directement dans le formulaire.
- if !@procedure.locked?
.fr-fieldset__element
.fr-radio-group.fr-radio-rich
= f.radio_button :for_individual, true
= f.label :for_individual, value: true, class: "fr-label" do
Ma démarche sadresse à un particulier
%span.fr-hint-text En choisissant cette option, lusager devra renseigner son nom et prénom avant daccéder au formulaire
.fr-radio-rich__img
%svg.fr-artwork{ aria_hidden: "true", viewBox: "0 0 80 80", width: "80px", height: "80px" }
%use.fr-artwork-decorative{ href: image_path("pictograms/digital/avatar.svg#artwork-decorative") }
%use.fr-artwork-minor{ href: image_path("pictograms/digital/avatar.svg#artwork-minor") }
%use.fr-artwork-major{ href: image_path("pictograms/digital/avatar.svg#artwork-major") }
%fieldset.fr-fieldset{ "aria-labelledby": "for-individual-legend" }
%legend#for-individual-legend.fr-fieldset__legend.fr-fieldset__legend--regular
À qui sadresse ma démarche ?
%span.fr-hint-text Si votre démarche sadresse indifféremment à une personne morale ou un particulier, choisissez l'option « Particuliers ». Vous pourrez ajouter un champ SIRET directement dans le formulaire.
.fr-fieldset__element
.fr-radio-group.fr-radio-rich
= f.radio_button :for_individual, true
= f.label :for_individual, value: true, class: "fr-label" do
Ma démarche sadresse à un particulier
%span.fr-hint-text En choisissant cette option, lusager devra renseigner son nom et prénom avant daccéder au formulaire
.fr-radio-rich__img
%svg.fr-artwork{ aria_hidden: "true", viewBox: "0 0 80 80", width: "80px", height: "80px" }
%use.fr-artwork-decorative{ href: image_path("pictograms/digital/avatar.svg#artwork-decorative") }
%use.fr-artwork-minor{ href: image_path("pictograms/digital/avatar.svg#artwork-minor") }
%use.fr-artwork-major{ href: image_path("pictograms/digital/avatar.svg#artwork-major") }
.fr-fieldset__element
.fr-radio-group.fr-radio-rich
= f.radio_button :for_individual, false
= f.label :for_individual, value: false, class: 'fr-label' do
Ma démarche sadresse à une personne morale
%span.fr-hint-text
En choisissant cette option, lusager devra renseigner son n° SIRET.<br>Grâce à lAPI Entreprise, les informations sur la personne morale (raison sociale, adresse du siège, etc.) seront automatiquement renseignées.
.fr-radio-rich__img
%svg.fr-artwork{ aria_hidden: "true", viewBox: "0 0 80 80", width: "80px", height: "80px" }
%use.fr-artwork-decorative{ href: image_path("pictograms/buildings/school.svg#artwork-decorative") }
%use.fr-artwork-minor{ href: image_path("pictograms/buildings/school.svg#artwork-minor") }
%use.fr-artwork-major{ href: image_path("pictograms/buildings/school.svg#artwork-major") }
.fr-fieldset__element
.fr-radio-group.fr-radio-rich
= f.radio_button :for_individual, false
= f.label :for_individual, value: false, class: 'fr-label' do
Ma démarche sadresse à une personne morale
%span.fr-hint-text
En choisissant cette option, lusager devra renseigner son n° SIRET.<br>Grâce à lAPI Entreprise, les informations sur la personne morale (raison sociale, adresse du siège, etc.) seront automatiquement renseignées.
.fr-radio-rich__img
%svg.fr-artwork{ aria_hidden: "true", viewBox: "0 0 80 80", width: "80px", height: "80px" }
%use.fr-artwork-decorative{ href: image_path("pictograms/buildings/school.svg#artwork-decorative") }
%use.fr-artwork-minor{ href: image_path("pictograms/buildings/school.svg#artwork-minor") }
%use.fr-artwork-major{ href: image_path("pictograms/buildings/school.svg#artwork-major") }
%fieldset.fr-fieldset
.fr-fieldset__element
= f.label :tags, 'Associez les tags à la démarche', class: 'fr-label'
%p.fr-hint-text Les tags sont des mots ou des expressions que vous attribuez aux démarches pour décrire leur contenu et pour les retrouver. Les tags sont partagés avec la communauté, ce qui vous permet de voir les tags attribués aux démarches créées par les autres administrateurs.
@ -164,7 +164,7 @@
%fieldset.fr-fieldset{ "aria-labelledby": "declarative_with_state-legend" }
%legend#declarative_with_state-legend.fr-fieldset__legend.fr-fieldset__legend--regular
Démarche déclarative
%span.fr-hint-text
%span.fr-hint-text.fr-mt-0
Par défaut, un dossier déposé peut être complété ou corrigé par le demandeur jusqu'à sa mise en instruction.<br>
Dans une démarche déclarative, une fois déposé, un dossier ne peut plus être modifié. Soit il passe immédiatement « en instruction » pour être traité, soit il est immédiatement « accepté ».
.fr-fieldset__element