<% if !pundit_user.has_house_policyscope?(SrgQec) %> <%# data_check_msg = SrgQec.check_for_stale_data %> <% data_check_msg = nil %> <% if data_check_msg %>

<%= icon('hand-paper') %> ATTENZIONE: <%= raw(data_check_msg) %>

<% end %> <% end %>

<%= SrgQec.label %>

<%= form_tag(srg_qecs_path, method: :get) do %> <%= view_table_open %> <%= view_table_row_open %> <%= render "shared/filterdate" %> <% if !pundit_user.has_house_policyscope?(SrgQec) %> <%= render "shared/filterhouse_id_by_region_id" %> <%= render "shared/filterhousetype_id" %> <%= render "shared/filterhouseisentity" %> <%= render "shared/filterhouseregion_id" %> <% end %> <%= render "shared/filterperson_id_by_house_id" %> <%= view_table_row_close %> <%= view_table_close %> <% end %> <%= page_entries_info @srg_qecs %>, <%= select_per_page(params, session) %>
<%= render partial: "shared/progressdialog", locals: { dialog_title: 'Attività in corso...', dialog_message: 'Attendere...', download_button_label: 'Scarica PDF', download_url: download_srg_qecs_path } %> <% if @srg_qecs %> <%= will_paginate @srg_qecs %> <%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell ('Competenza') %> <%= view_table_head_cell (link_to('Nucleo', houses_path )) %> <%= view_table_head_cell (link_to('Persona', people_path )) %> <%= view_table_head_cell (link_to('Cittadinanza', citizenships_path )) %> <%= view_table_head_cell('Mil Q') %> <%= view_table_head_cell('Mil Ri') %> <%= view_table_head_cell('Atenà Q') %> <%= view_table_head_cell('Atenà Ri') %> <%= view_table_head_cell('CS d') %> <%= view_table_head_cell('CS c') %> <%= view_table_head_cell('CP d') %> <%= view_table_head_cell('CP c') %> <%= view_table_head_cell('CP a') %> <%= view_table_head_cell('FS c') %> <%= view_table_head_cell('FS d') %> <%= view_table_head_cell('FS Q') %> <%= view_table_head_cell('Dh', 'background-color: lightgray') %> <%= view_table_head_cell('Dh fs', 'background-color: lightgray') %> <%= view_table_head_cell('Mil', 'background-color: lightgray') %> <%= view_table_head_cell('Mil fs', 'background-color: lightgray') %> <%= view_table_head_cell('Mil a', 'background-color: lightgray') %> <%= view_table_head_cell('Mil a fs', 'background-color: lightgray') %> <%= view_table_head_cell('Milu', 'background-color: lightgray') %> <%= view_table_head_cell('Mil u fs', 'background-color: lightgray') %> <%= view_table_head_cell('Ctpp', 'background-color: lightgray') %> <%= view_table_head_cell('Dhedu', 'background-color: lightgray') %> <%= view_table_head_cell('Pejda', 'background-color: lightgray') %> <%= view_table_head_cell('Cs fs', 'background-color: lightgray') %> <%= view_table_head_cell('Ce d', 'background-color: lightgray') %> <%= view_table_head_cell('Ce c', 'background-color: lightgray') %> <%= view_table_head_cell('Cl d', 'background-color: lightgray') %> <%= view_table_head_cell('Cl c', 'background-color: lightgray') %> <%= view_table_head_cell('Fs', 'background-color: lightgray') %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% @srg_qecs.each do |srg_qec| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view srg_qec, '') %> <%= view_table_cell ( iconbutton_edit edit_srg_qec_path(srg_qec), '') %> <%#= view_table_cell ( iconbutton_delete srg_qec, '') %> <%= view_table_cell (daterange_name(srg_qec.competenza)) %> <%= view_table_cell (srg_qec.house ? link_to( srg_qec.house.descrizione, house_path(srg_qec.house) ) : nil) %> <%= view_table_cell (srg_qec.person ? link_to( srg_qec.person.dh_person_name, person_path(srg_qec.person) ) : nil) %> <%= view_table_cell (srg_qec.citizenship ? link_to( srg_qec.citizenship.descrizione, citizenship_path(srg_qec.citizenship) ) : nil) %> <%= view_table_cell_right ( money_format srg_qec.milq) %> <%= view_table_cell_right ( money_format srg_qec.milri) %> <%= view_table_cell_right ( money_format srg_qec.atenaq) %> <%= view_table_cell_right ( money_format srg_qec.atenari) %> <%= view_table_cell_right ( money_format srg_qec.csd) %> <%= view_table_cell_right ( money_format srg_qec.csc) %> <%= view_table_cell_right ( money_format srg_qec.cpd) %> <%= view_table_cell_right ( money_format srg_qec.cpc) %> <%= view_table_cell_right ( money_format srg_qec.cpa) %> <%= view_table_cell_right ( money_format srg_qec.fsc) %> <%= view_table_cell_right ( money_format srg_qec.fsd) %> <%= view_table_cell_right ( money_format srg_qec.fsq) %> <%= view_table_cell_right ( money_format srg_qec.dh) %> <%= view_table_cell_right ( money_format srg_qec.dhfs) %> <%= view_table_cell_right ( money_format srg_qec.mil) %> <%= view_table_cell_right ( money_format srg_qec.milfs) %> <%= view_table_cell_right ( money_format srg_qec.mila) %> <%= view_table_cell_right ( money_format srg_qec.milafs) %> <%= view_table_cell_right ( money_format srg_qec.milu) %> <%= view_table_cell_right ( money_format srg_qec.milufs) %> <%= view_table_cell_right ( money_format srg_qec.ctpp) %> <%= view_table_cell_right ( money_format srg_qec.dhedu) %> <%= view_table_cell_right ( money_format srg_qec.pejda) %> <%= view_table_cell_right ( money_format srg_qec.csfs) %> <%= view_table_cell_right ( money_format srg_qec.ced) %> <%= view_table_cell_right ( money_format srg_qec.cec) %> <%= view_table_cell_right ( money_format srg_qec.cld) %> <%= view_table_cell_right ( money_format srg_qec.clc) %> <%= view_table_cell_right ( money_format srg_qec.fs) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %> <%= will_paginate @srg_qecs %> <% end %>