MorningPeak/app/views/tickets/_form.html.slim
Arthur Poulet b865a60bea Ticket is ready
- Ticket in user/admin sides ok (respond tested)
- Fix seeds
- Fix models
- Fix all migrations
- Add client_... controllers (bills/tickets)
2015-06-18 00:56:01 +02:00

28 lines
665 B
Plaintext

= form_for @ticket do |f|
- if @ticket.errors.any?
#error_explanation
h2 = "#{pluralize(@ticket.errors.count, "error")} prohibited this ticket from being saved:"
ul
- @ticket.errors.full_messages.each do |message|
li = message
.field
= f.label :ticket_id
= f.text_field :ticket_id
.field
= f.label :creator_type
= f.text_field :creator_type
.field
= f.label :creator_id
= f.text_field :creator_id
.field
= f.label :title
= f.text_field :title
.field
= f.label :description
= f.text_area :description
.field
= f.label :state
= f.text_field :state
.actions = f.submit