You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
410 B
12 lines
410 B
10 years ago
|
= form_for @client, html: {class: 'form-horizontal'} do |f|
|
||
9 years ago
|
- if @client.errors.any?
|
||
10 years ago
|
#error_explanation
|
||
10 years ago
|
%h2= pluralize(@client.errors.count, "error") + " prohibited this client from being saved:"
|
||
10 years ago
|
%ul
|
||
|
- @client.errors.full_messages.each do |msg|
|
||
9 years ago
|
%li= msg
|
||
|
= render 'fields', f: f
|
||
10 years ago
|
.row
|
||
|
.actions.col-sm-offset-2
|
||
8 years ago
|
= f.submit "Save Changes", class: "btn btn-default"
|