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|
|
||||
.form-group{class: ('has-error' if @gestionnaire.errors.messages[key])}
|
||||
.form-group
|
||||
%h4
|
||||
=value
|
||||
=f.text_field key, class: 'form-control', placeholder: value
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
%br
|
||||
|
||||
-{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
|
||||
=value
|
||||
- if key == :description
|
||||
|
|
Loading…
Add table
Reference in a new issue