MorningPeak/app/views/clients/_form.html.slim
2015-06-17 16:36:35 +02:00

28 lines
655 B
Plaintext

= form_for @client do |f|
- if @client.errors.any?
#error_explanation
h2 = "#{pluralize(@client.errors.count, "error")} prohibited this client from being saved:"
ul
- @client.errors.full_messages.each do |message|
li = message
.field
= f.label :name
= f.text_field :name
.field
= f.label :url
= f.text_field :url
.field
= f.label :activity
= f.text_field :activity
.field
= f.label :contact_reasons
= f.text_area :contact_reasons
.field
= f.label :user_id
= f.text_field :user_id
.field
= f.label :contact_id
= f.text_field :contact_id
.actions = f.submit