<% house_qec_share_people = HouseQecSharePerson.where(house_qec_share_id: @house_qec_share.id).ordered_by_personname %>
<%= view_table_open %>
<%= view_table_head_open %>
<%= view_table_row_open %>
<%= view_table_head_cell_span 2 %>
<%= view_table_head_cell HouseQecSharePerson.human_attribute_name(:person_id) %>
<%= view_table_head_cell HouseQecSharePerson.human_attribute_name(:share) %>
<%= view_table_row_close %>
<%= view_table_head_close %>
<% totale_share = 0 %>
<%= view_table_body_open %>
<% house_qec_share_people.each do |house_qec_share_person| %>
<%= view_table_row_open %>
<% bg = nil %>
<%= view_table_cell ( iconbutton_view house_qec_share_person, '') %>
<%= view_table_cell ( iconbutton_edit edit_house_qec_share_person_path(house_qec_share_person), '') %>
<%= view_table_cell ( house_qec_share_person.person.format_for_formselect ) %>
<%= view_table_cell_right ( house_qec_share_person.share ) %>
<% totale_share += house_qec_share_person.share %>
<%= view_table_row_close %>
<% end %>
<% house_qec_share_nullpeople = HouseQecSharePerson.where(house_qec_share_id: @house_qec_share.id, person_id: nil) %>
<% house_qec_share_nullpeople.each do |house_qec_share_nullperson| %>
<%= view_table_row_open %>
<% bg = nil %>
<%= view_table_cell ( iconbutton_view house_qec_share_nullperson, '') %>
<%= view_table_cell ( iconbutton_edit edit_house_qec_share_person_path(house_qec_share_nullperson), '') %>
<%= view_table_cell ( "---" ) %>
<%= view_table_cell_right ( house_qec_share_nullperson.share ) %>
<% totale_share += house_qec_share_nullperson.share %>
<%= view_table_row_close %>
<% end %>
<%= view_table_row_open %>
<%= view_table_cell_span_right(3, "
somma:" ) %>
<%= view_table_cell_right ( totale_share ) %>
<%= view_table_row_close %>
<%= view_table_body_close %>
<%= view_table_close %>
<%= icon('chevron-up') %> Torna all'inizio della pagina