% 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 "alps"%> <%= javascript_include_tag "jquery.dataTables.rowGrouping"%> <%= javascript_include_tag "dataTables.numericComma"%> <%= javascript_include_tag "table2CSV"%> <% end %>
<% form_tag alps_path, :method => :get do -%> <%=render(:partial => "filters") %>| # | Начальная точка | Целевой логин | Состав группы |
Дата | З/П мастера | Покв. | Категория работ | Работы | Материалы | Коммент | Правка | Request | Погода | Секц. время | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= rep.id %> | <%= rep.login_from %> | <%= link_to rep.name, edit_alp_path(rep.id) %> | <%= rep.empls %> | <%=rep.date.to_datetime.strftime("%d.%m.%Y")%> | <%= rep.sum.to_i %> | <%= rep.request_bonus_sum.to_i %> | <%=rep.cat_n%> | <%= rep.wrks %><%= rep.not_standart_wrks %> | <%=materials_for_index(rep)%> | <%=rep.comment%> | <%=rep.ed_name %> | class="left"> <%= request_link(rep.request_id) %> <%= rep.req_status %> | <%= check_box_tag :weather_temp, 1, if rep.weather_temp == 1 then true else false end, {:onChange => "PostWeather(#{rep.id}, $(this).is(':checked'))"} if @boss%> <%= y_n(rep.weather_temp.to_i) unless @boss %> | <%= check_box_tag :weather_rain, 1, if rep.weather_rain == 1 then true else false end, {:onChange => "PostTime(#{rep.id}, $(this).is(':checked'))"} if @boss%> <%= y_n(rep.weather_rain.to_i) unless @boss %> | <% 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 %> |
Всего: |
|||||||||||||||