Remove has-error class on admin views
This commit is contained in:
parent
004e8de3f9
commit
746d69796e
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
-{email: 'Email*'}.each do |key, value|
|
-{email: 'Email*'}.each do |key, value|
|
||||||
.form-group{class: ('has-error' if @gestionnaire.errors.messages[key])}
|
.form-group
|
||||||
%h4
|
%h4
|
||||||
=value
|
=value
|
||||||
=f.text_field key, class: 'form-control', placeholder: value
|
=f.text_field key, class: 'form-control', placeholder: value
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
%br
|
%br
|
||||||
|
|
||||||
-{libelle: 'Libellé*', description: 'Description*', organisation: 'Organisation', direction: 'Direction', lien_site_web: 'Lien site internet', lien_notice: 'Lien notice'}.each do |key, value|
|
-{libelle: 'Libellé*', description: 'Description*', organisation: 'Organisation', direction: 'Direction', lien_site_web: 'Lien site internet', lien_notice: 'Lien notice'}.each do |key, value|
|
||||||
.form-group{class: ('has-error' if @procedure.errors.messages[key])}
|
.form-group
|
||||||
%h4
|
%h4
|
||||||
=value
|
=value
|
||||||
- if key == :description
|
- if key == :description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue