Form: display mandatory star in red
This commit is contained in:
parent
46c144146c
commit
9d7066d3c3
2 changed files with 7 additions and 1 deletions
|
@ -11,6 +11,10 @@
|
||||||
margin-bottom: $default-padding;
|
margin-bottom: $default-padding;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
|
.mandatory {
|
||||||
|
color: $dark-red;
|
||||||
|
}
|
||||||
|
|
||||||
.notice {
|
.notice {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
= form.label :value do
|
= form.label :value do
|
||||||
#{champ.libelle} #{champ.mandatory ? '*' : nil}
|
#{champ.libelle}
|
||||||
|
- if champ.mandatory
|
||||||
|
%span.mandatory *
|
||||||
- if champ.description.present?
|
- if champ.description.present?
|
||||||
%span.notice= champ.description
|
%span.notice= champ.description
|
||||||
|
|
Loading…
Add table
Reference in a new issue