<%= SrgAdac.label %>

<%= form_tag(srg_adacs_path, method: :get) do %> <%= view_table_open %> <%= view_table_row_open %> <%= render "shared/filterdate" %> <% if !pundit_user.has_house_policyscope?(HousePn) %> <%= render "shared/filterhouse_id" %> <%= render "shared/filterhouseisentity" %> <% end %> <%= render "shared/filterperson_id_by_house_id" %> <%= view_table_row_close %> <%= view_table_row_open %> <%= render "shared/filtersrgadactype_id" %> <%= render "shared/filtersrgcrb_id" %> <%= render "shared/filtersrgadacscope" %> <%= render "shared/filtersrgadacstatus" %> <%= view_table_cell nil %> <%= view_table_row_close %> <%= view_table_close %> <% end %> <%= page_entries_info @srg_adacs %>, <%= select_per_page(params, session) %>
Totale per le <%= @srg_adacs_notpaged.count %> voci filtrate: <%= money_format(@srg_adacs_notpaged.sum(:importo)) %>
<% if @srg_adacs %> <%= will_paginate @srg_adacs %> <%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell SrgAdac.human_attribute_name(:data) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:importo) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:rata) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:rate) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:descrizione) %> <%= view_table_head_cell (link_to(SrgAdac.human_attribute_name(:house_id), houses_path )) %> <%= view_table_head_cell (link_to(SrgAdac.human_attribute_name(:person_id), people_path )) %> <%= view_table_head_cell (link_to(SrgAdac.human_attribute_name(:houseperson_id), houses_path )) %> <%= view_table_head_cell (link_to(SrgAdac.human_attribute_name(:srg_adactype_id), srg_adactypes_path )) %> <%= view_table_head_cell (link_to(SrgAdac.human_attribute_name(:srg_crb_id), srg_crbs_path )) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:chiuso) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:dup) %> <%= view_table_head_cell SrgAdac.human_attribute_name(:scalo_competenza) %> <%= view_table_head_cell (link_to(SrgAdac.human_attribute_name(:scalo_emo_function_id), emo_functions_path) ) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% @srg_adacs.each do |srg_adac| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view srg_adac, nil) %> <%= view_table_cell ( iconbutton_edit edit_srg_adac_path(srg_adac), nil) %> <%#= view_table_cell ( iconbutton_delete srg_adac, nil) %> <%= view_table_cell (daterange_name(srg_adac.data)) %> <%= view_table_cell_right ( money_format srg_adac.importo) %> <%= view_table_cell (srg_adac.rata) %> <%= view_table_cell (srg_adac.rate) %> <%= view_table_cell (srg_adac.descrizione) %> <%= view_table_cell (srg_adac.house ? link_to( srg_adac.house.format_for_formselect, house_path(srg_adac.house) ) : nil) %> <%= view_table_cell (srg_adac.person ? link_to( srg_adac.person.dh_person_name, person_path(srg_adac.person) ) : nil) %> <%= view_table_cell (srg_adac.personhouse ? link_to( srg_adac.personhouse.format_for_formselect, house_path(srg_adac.personhouse) ) : nil) %> <%= view_table_cell (srg_adac.srg_adactype ? link_to(srg_adac.srg_adactype.codice, srg_adactype_path(srg_adac.srg_adactype.id)) : nil) %> <%= view_table_cell (srg_adac.srg_crb ? link_to( srg_adac.srg_crb.cod, srg_crb_path(srg_adac.srg_crb.id) ) : nil) %> <%= view_table_cell ( check_box_tag :chiuso, :chiuso, srg_adac.chiuso, disabled: true) %> <%= view_table_cell ( check_box_tag :dup, :dup, srg_adac.dup, disabled: true) %> <%= view_table_cell (srg_adac.scalo_competenza.present? ? daterange_name(srg_adac.scalo_competenza) : '') %> <%= view_table_cell (srg_adac.scalo_emo_function_id.present? ? link_to(srg_adac.scalo_emo_function.format_for_formselect, emo_function_path(srg_adac.scalo_emo_function_id) ) : nil) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %> <%= will_paginate @srg_adacs %> <% end %>