MorningPeak/app/views/contacts/_form.html.slim
2015-06-17 02:30:58 +02:00

40 lines
896 B
Plaintext

= form_for @contact do |f|
- if @contact.errors.any?
#error_explanation
h2 = "#{pluralize(@contact.errors.count, "error")} prohibited this contact from being saved:"
ul
- @contact.errors.full_messages.each do |message|
li = message
.field
= f.label :client_id
= f.text_field :client_id
.field
= f.label :name
= f.text_field :name
.field
= f.label :phone
= f.text_field :phone
.field
= f.label :email
= f.text_field :email
.field
= f.label :last_contact
= f.date_select :last_contact
.field
= f.label :note
= f.text_area :note
.field
= f.label :region
= f.text_field :region
.field
= f.label :department
= f.text_field :department
.field
= f.label :postal_code
= f.text_field :postal_code
.field
= f.label :address
= f.text_area :address
.actions = f.submit