<%= Gon::Base.render_data %>

编辑人员

<%= "#{@staff.user.real_name} - #{@staff.user.phone}" %>
<%= select_tag "role_id", options_for_select(EducodeSales::Role.pluck(:name, :id), @staff.role_id), { 'lay-filter': 'role_id', include_blank: true } %>
<%= select_tag "job_type", options_for_select(@staff_types, @staff.job_type), { 'lay-filter': 'job_type', include_blank: true } %>
<% if can?(:special, EducodeSales::Business) %>
<% end %>
<%= select_tag "month", options_for_select(EducodeSales::Staff.month_list, @staff.month), { 'lay-filter': 'month' } %>
<% id = 0 %> <% EducodeSales::Permission.all.order(position: :asc).group_by{ |d| d.clazz}.each do |k, d| %>
<% d.each do |p| %> <% id += 1 %> <%= check_box_tag "permission[#{p.subject}][]", p.action, @permissions.include?(p.id), {title: p.name, id: "#{id}_" } %> <% end %>
<% end %>