<% content_for :head do %> <%= stylesheet_link_tag "index" , :media => "all"%> <%= stylesheet_link_tag "DataTables" , :media => "all"%> <%= javascript_include_tag "jquery.dataTables"%> <%= javascript_include_tag "jquery.scrollTo-1.4.2-min"%> <%= javascript_include_tag "datatable"%> <%= javascript_include_tag "mod2"%> <%= javascript_include_tag "jquery.dataTables.rowGrouping"%> <%= javascript_include_tag "dataTables.numericComma"%> <%= javascript_include_tag "table2CSV"%> <% end %> <% form_tag undergrounds_path, :method => :get do -%> <%=render(:partial => "filters") %>
Всего отписок: <%=@reports.length%>
<% @reports.each do |rep| %> class=<%= rep.request_id%>> <% end %>
# Логин Состав
группы
Дата Категория работ Работы Материалы Коммент Правка Request Статус id
<%= rep.id %> <%= rep.empls %> <%=rep.date.to_datetime.strftime("%d.%m.%Y")%> <%=rep.cat_n%> <%= rep.wrks %><%= rep.not_standart_wrks %> <%=rep.mats%> <%=rep.comment%> <%=rep.ed_name %> class="left"> <%= request_link(rep.request_id) %> <%= rep.req_status %>

<%= select_tag :status, options_for_select(Report.statuss, rep.status), {:onChange => "ChangeStatus( $(this).val(), #{rep.id})" } if @boss %> <%= rep.status_name unless @boss %>


<%= rep.com_imperfection.to_s %>
<% if rep.request_id == 0 || rep.request_id.blank? %><%= 1 %><% else %><% c =@reports.select{|rn| rn.request_id == rep.request_id}.count %><%= c>1 ? rep.request_id : 1 %><% end %>
 
<%end-%>