% 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"%> <% end %>
<% form_tag mod2_index_path, :method => :get do -%> <%=render(:partial => "filters") %>| # | Логин | Состав группы |
Дата | З/П мастера | Покв. | Категория работ | Работы | Материалы | Коммент | Правка | Request | Статус | Топология | Вых. | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= rep.id %> | <%= link_to rep.name, edit_mod2_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 %> | <%=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 @boss || @topologist %>
<%= select_tag :topology_map, options_for_select(Report.status_topology, rep.topology_map.to_s), {:onChange => "ChangeTopologyStatus( #{rep.id}, $(this).val())" } %> <%= button_to_function "Tr: top", "rep_to_tracker(#{rep.id}); $(this).attr('disabled', 'disabled');", :class =>"topology_button" if rep.topology_problem_tracker_id.nil? %><%= button_to_function "Tr: top2", "rep_to_tracker2(#{rep.id}); $(this).attr('disabled', 'disabled');", :class =>"topology_button2" %> <% end %> <%= rep.status_topology_name unless @boss || @topologist %> <%= button_to_function "# "+rep.topology_problem_tracker_id.to_s, "ToTracker(#{rep.topology_problem_tracker_id})", :class =>"topology_button" unless rep.topology_problem_tracker_id.nil?%> |
<%= 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 %> | <% 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 %> |
Всего: |
|||||||||||||||