<%= SrgFsn.label %>

<%= form_tag(srg_fsns_path, method: :get) do %> <%= view_table_open %> <%= view_table_row_open %> <%= render "shared/filtersrgfsntype_id" %> <%= render "shared/filterdate" %> <% if !pundit_user.has_house_policyscope?(HousePn) %> <%= render "shared/filterhouse_id" %> <%= render "shared/filterhouseisentity" %> <% end %> <%= view_table_row_close %> <%= view_table_row_open %> <%= render "shared/filterperson_id_by_house_id" %> <%= render "shared/filtersrgcrb_id" %> <%= render "shared/filtersrgfsnstatus" %> <%= view_table_cell nil %> <%= view_table_row_close %> <%= view_table_close %> <% end %> <%= page_entries_info @srg_fsns %>, <%= select_per_page(params, session) %>
Totale per le <%= @srg_fsns_notpaged.count %> voci filtrate: <%= money_format(@srg_fsns_notpaged.sum(:importo)) %>
<% if @srg_fsns %> <%= will_paginate @srg_fsns %> <%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell SrgFsn.human_attribute_name(:competenza) %> <%= view_table_head_cell SrgFsn.human_attribute_name(:importo) %> <%= view_table_head_cell SrgFsn.human_attribute_name(:note) %> <%= view_table_head_cell (link_to(SrgFsn.human_attribute_name(:srg_fsntype_id), srg_fsntypes_path) ) %> <%= view_table_head_cell SrgFsn.human_attribute_name(:rata) %> <%= view_table_head_cell SrgFsn.human_attribute_name(:rate) %> <%= view_table_head_cell (link_to(SrgFsn.human_attribute_name(:house_id), houses_path )) %> <%= view_table_head_cell (link_to(SrgFsn.human_attribute_name(:person_id), people_path )) %> <%= view_table_head_cell (link_to(SrgFsn.human_attribute_name(:personhouse_id), houses_path )) %> <%= view_table_head_cell (link_to(SrgFsn.human_attribute_name(:srg_crb_id), srg_crbs_path )) %> <%= view_table_head_cell SrgFsn.human_attribute_name(:dup) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% @srg_fsns.each do |srg_fsn| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view srg_fsn, '') %> <%= view_table_cell ( iconbutton_edit edit_srg_fsn_path(srg_fsn), '') %> <%#= view_table_cell ( iconbutton_delete srg_fsn, '') %> <%= view_table_cell (daterange_name(srg_fsn.data)) %> <%= view_table_cell_right ( money_format srg_fsn.importo) %> <%= view_table_cell (srg_fsn.note) %> <%= view_table_cell (srg_fsn.srg_fsntype_id.present? ? link_to(srg_fsn.srg_fsntype.format_for_formselect, srg_fsntype_path(srg_fsn.srg_fsntype_id)) : nil) %> <%= view_table_cell (srg_fsn.rata) %> <%= view_table_cell (srg_fsn.rate) %> <%= view_table_cell (srg_fsn.house ? link_to( srg_fsn.house.format_for_formselect, house_path(srg_fsn.house) ) : nil) %> <%= view_table_cell (srg_fsn.person ? link_to( srg_fsn.person.dh_person_name, person_path(srg_fsn.person) ) : nil) %> <%= view_table_cell (srg_fsn.personhouse_id ? link_to( srg_fsn.personhouse.format_for_formselect, house_path(srg_fsn.personhouse) ) : nil) %> <%= view_table_cell (srg_fsn.srg_crb ? link_to( srg_fsn.srg_crb.cod, srg_crb_path(srg_fsn.srg_crb.id) ) : nil) %> <%= view_table_cell ( check_box_tag :dup, :dup, srg_fsn.dup, disabled: true) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %> <%= will_paginate @srg_fsns %> <% end %>