Tipo di nucleo <%= @nucleo_type.descrizione%>

<%= edit_table_open %> <%= edit_table_row ('Descrizione:'),(@nucleo_type.descrizione) %> <%= edit_table_close %> <%= iconbutton_edit edit_nucleo_type_path(@nucleo_type) %> <%= iconbutton_backtoindex nucleo_types_path %>


Nuclei di tipo <%= @nucleo_type.descrizione %>

<% houses = House.where(nucleo_type_id: @nucleo_type.id).order(:descrizione) %>
<%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell ('Descrizione') %> <%= view_table_head_cell ('Attivo?') %> <%= view_table_head_cell ('Entità?') %> <%= view_table_head_cell (link_to('Tipo', nucleo_types_path )) %> <%= view_table_head_cell ('Codice radio') %> <%= view_table_head_cell ('Telefono') %> <%= view_table_head_cell ('Email') %> <%= view_table_head_cell (link_to('Regione', regions_path )) %> <%= view_table_head_cell ('Note') %> <%= view_table_head_cell ('Caponucleo') %> <%= view_table_head_cell ('Responsabile economico') %> <%= view_table_head_cell ('Responsabile fiduciario') %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% houses.each do |house| %> <%= view_table_row_open %> <%= 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 ) %> <%= view_table_cell (link_to(muted(!house.attivo,house.descrizione), house_path(house))) %> <%= 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) %> <%= view_table_cell ( house.nucleo_type_id.present? ? link_to(muted(!house.attivo,house.nucleo_type.descrizione), nucleo_type_path(house.nucleo_type_id)) : nil) %> <%= view_table_cell ( muted(!house.attivo,house.codice_radio) ) %> <%= view_table_cell ( muted(!house.attivo,house.telefono) ) %> <%= view_table_cell ( muted(!house.attivo,house.mail) ) %> <%= view_table_cell ( house.region_id.present? ? link_to(muted(!house.attivo,house.region.descrizione), region_path(house.region_id)) : nil) %> <%= view_table_cell ( muted(!house.attivo,house.note) ) %> <%= view_table_cell ( house.familyhead_id.present? ? link_to( muted(!house.attivo,house.familyhead.dh_person_name), person_path(house.familyhead) ) : nil ) %> <%= view_table_cell ( house.bursar_id.present? ? link_to( muted(!house.attivo,house.bursar.dh_person_name), person_path(house.bursar) ) : nil ) %> <%= view_table_cell ( house.realestatemanager_id.present? ? link_to( muted(!house.attivo,house.realestatemanager.dh_person_name), person_path(house.realestatemanager) ) : nil ) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %>