Skip to content

Instantly share code, notes, and snippets.

@aravindgd
Created July 29, 2014 10:07
Show Gist options
  • Save aravindgd/0ea56666843c060ea792 to your computer and use it in GitHub Desktop.
Save aravindgd/0ea56666843c060ea792 to your computer and use it in GitHub Desktop.
%li
%label Employees:
-# = select_tag "",options_for_select(Agent.all.collect{ |u| [u.name, u.id]},ticket.agent.id),class: "chosen-select-last-column agent_val_ajax_change ticket-last-column-chosen-select",data:{ticket: ticket.id}
-# = best_in_place Employee, :name, :type => :select, :collection => @employees.map{|x| [x.user.first_name,x.id]}
- if ticket.employee
= "#{ticket.employee.user.first_name or ticket.employee.id} #{ticket.employee.user.last_name or ticket.employee.id}"
- else
-"-"
%li
%label Status:
-# = select_tag "", options_for_select(@status.filter_values.collect{ |u| [u.name, u.id]},ticket.filter_values.find_by(filter: @status).id),class: "chosen-select-last-column filter_val_ajax_change ticket-last-column-chosen-select",data:{ticket: ticket.id}
= ticket.ticket_status.name
%li
%label Priority:
-# = select_tag "", options_for_select(@priority.filter_values.collect{ |u| [u.name, u.id]},ticket.filter_values.find_by(filter: @priority).id),class: "search-free-chosen-select-last-column filter_val_ajax_change ticket-last-column-chosen-select",data:{ticket: ticket.id}
= ticket.ticket_priority.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment