Guest User

Untitled

a guest
Jul 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. - form_for @ticket do |f|
  2. = f.error_messages
  3. = f.hidden_field :ticketable_id
  4. = f.hidden_field :ticketable_type
  5. %p
  6. = f.label :title, "Brief Title for Issue"
  7. = f.text_field :title
  8. %p
  9. = f.label :call_type
  10. %br/
  11. = f.select :call_type, Ticket::Types.collect { |t| [t.first.to_s, t.last] }
  12. #ticket_priority_field.field
  13. = f.label :priority
  14. %br/
  15. = f.select :priority, Ticket.priorities.keys
  16. %p
  17. = f.label :description
  18. %br/
  19. = f.text_area :description
  20. %p
  21. = f.label :call_back_needed
  22. %br/
  23. = f.check_box :call_back_needed
  24. %p
  25. = f.label :status
  26. %br/
  27. = f.select :status, Ticket::Status.collect { |t| [t.first.to_s, t.last] }
  28. %p
  29. Assigned to:
  30. %br/
  31. = f.select("user_id", User.all.collect {|p| [ p.email.to_s, p.id ] }, { :include_blank => true })
  32. %p= f.submit
Add Comment
Please, Sign In to add comment