form: make the sample asterisk also red
This commit is contained in:
parent
8e833ba139
commit
e5de401107
2 changed files with 15 additions and 11 deletions
|
@ -12,15 +12,15 @@
|
||||||
color: $grey;
|
color: $grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mandatory {
|
||||||
|
color: $dark-red;
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
margin-bottom: $default-padding;
|
margin-bottom: $default-padding;
|
||||||
display: block;
|
display: block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
||||||
.mandatory {
|
|
||||||
color: $dark-red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.notice {
|
.notice {
|
||||||
@include notice-text-style;
|
@include notice-text-style;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -1,19 +1,23 @@
|
||||||
.container
|
.container
|
||||||
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
|
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
|
||||||
|
|
||||||
- if notice_url(dossier.procedure).present?
|
|
||||||
%p
|
|
||||||
Pour vous aider à remplir votre dossier, vous pouvez consulter
|
|
||||||
= link_to 'le guide de cette démarche', notice_url(dossier.procedure), { target: '_blank' }
|
|
||||||
|
|
||||||
%p.thanks Les champs avec une astérisque (*) sont obligatoires.
|
|
||||||
|
|
||||||
- if apercu
|
- if apercu
|
||||||
- form_options = { url: '', method: :get, html: { class: 'form', multipart: true } }
|
- form_options = { url: '', method: :get, html: { class: 'form', multipart: true } }
|
||||||
- else
|
- else
|
||||||
- form_options = { html: { class: 'form', multipart: true, novalidate: dossier.brouillon? } }
|
- form_options = { html: { class: 'form', multipart: true, novalidate: dossier.brouillon? } }
|
||||||
|
|
||||||
= form_for dossier, form_options do |f|
|
= form_for dossier, form_options do |f|
|
||||||
|
|
||||||
|
- if notice_url(dossier.procedure).present?
|
||||||
|
%p
|
||||||
|
Pour vous aider à remplir votre dossier, vous pouvez consulter
|
||||||
|
= link_to 'le guide de cette démarche', notice_url(dossier.procedure), { target: '_blank' }
|
||||||
|
|
||||||
|
%p.thanks
|
||||||
|
Les champs avec une astérisque (
|
||||||
|
%span.mandatory> *
|
||||||
|
) sont obligatoires.
|
||||||
|
|
||||||
= f.fields_for :champs, dossier.champs do |champ_form|
|
= f.fields_for :champs, dossier.champs do |champ_form|
|
||||||
- champ = champ_form.object
|
- champ = champ_form.object
|
||||||
= render partial: "shared/dossiers/editable_champs/editable_champ",
|
= render partial: "shared/dossiers/editable_champs/editable_champ",
|
||||||
|
|
Loading…
Reference in a new issue