Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- = form_for (@ticket) do |f|
- = debug @ticket
- = debug @ticketable
- = f.error_messages
- %p
- = f.label :title, "Brief Title for Issue"
- = f.text_field :title
- %p
- = f.label :call_type
- %br/
- = f.select :call_type, Ticket::Types.collect { |t| [t.first.to_s, t.last] }
- #ticket_priority_field.field
- = f.label :priority
- %br/
- = f.select :priority, Ticket.priorities.keys
- %p
- = f.label :description
- %br/
- = f.text_area :description
- %p
- = f.label :call_back_needed
- %br/
- = f.check_box :call_back_needed
- %p
- = f.label :status
- %br/
- = f.select :status, Ticket::Status.collect { |t| [t.first.to_s, t.last] }
- %p
- Assigned to:
- %br/
- = f.select("user_id", User.all.collect {|p| [ p.email.to_s, p.id ] }, { :include_blank => true })
- %p= f.submit
Add Comment
Please, Sign In to add comment