MorningPeak/app/views/contacts/_form.html.slim
Arthur Poulet 7838150f59 remove contact.last_contact, fix contact.view_at
all this modifications re done in contact
- rename the column last_contact to view_at
- fix view
- add a link in /contact/index to update the view date
2015-07-18 16:12:19 +02:00

40 lines
886 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 :view_at
= f.date_select :view_at
.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