<%= view_table_head_open %> <%= view_table_row_open %> <% if editable %> <%= view_table_head_cell_span 2 %> <% end %> <%= view_table_head_cell ('Descrizione'),nil,'lightgray' %> <% if flags %> <%= view_table_head_cell (raw("

Attivo?

")),nil,'lightgray' %> <%= view_table_head_cell (raw("

Entità?

")),nil,'lightgray' %> <% end %> <%= view_table_head_cell (link_to('Tipo', nucleo_types_path )),nil,'lightgray' %> <% if long_view %> <%= view_table_head_cell ('Codice radio'),nil,'lightgray' %> <%= view_table_head_cell ('Telefono'),nil,'lightgray' %> <%= view_table_head_cell ('Email'),nil,'lightgray' %> <%= view_table_head_cell (link_to('Regione', regions_path )),nil,'lightgray' %> <%= view_table_head_cell ('Note'),nil,'lightgray' %> <%= view_table_head_cell ('Caponucleo'),nil,'lightgray' %> <%= view_table_head_cell ('Responsabile economico'),nil,'lightgray' %> <%= view_table_head_cell ('Responsabile fiduciario'),nil,'lightgray' %> <% end %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% houses.each do |house| %> <%= view_table_row_open %> <% if editable %> <%= view_table_cell ( iconbutton_view house, nil) %> <%= view_table_cell ( iconbutton_edit edit_house_path(house),nil) %> <%#= view_table_cell ( iconbutton_delete(house, nil) : nil ) %> <% end %> <%= view_table_cell (link_to(house.descrizione, house_path(house))) %> <% if flags %> <%= view_table_cell ( check_box_tag :attivo, :attivo, house.attivo, disabled: true) %> <%= view_table_cell ( check_box_tag :is_entity, :is_entity, house.is_entity, disabled: true) %> <% end %> <%= view_table_cell ( house.nucleo_type_id.present? ? link_to(raw("

#{house.nucleo_type.descrizione}

"), nucleo_type_path(house.nucleo_type_id)) : nil) %> <% if long_view %> <%= view_table_cell ( house.codice_radio) %> <%= view_table_cell ( house.telefono) %> <%= view_table_cell ( house.mail) %> <%= view_table_cell ( house.region_id.present? ? link_to(house.region.descrizione, region_path(house.region_id)) : nil) %> <%= view_table_cell ( house.note) %> <%= view_table_cell ( house.familyhead_id.present? ? link_to( house.familyhead.dh_person_name, person_path(house.familyhead) ) : nil ) %> <%= view_table_cell ( house.bursar_id.present? ? link_to( house.bursar.dh_person_name, person_path(house.bursar) ) : nil ) %> <%= view_table_cell ( house.realestatemanager_id.present? ? link_to( house.realestatemanager.dh_person_name, person_path(house.realestatemanager) ) : nil ) %> <% end %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %>