<%= EmoFunction.label %>

<%= form_tag(emo_functions_path, method: :get) do %> <%= view_table_open %> <%= view_table_row_open %> <%= render "shared/filterperson_id" %> <%= render "shared/filteremosector_id" %> <%= view_table_row_close %> <%= view_table_close %> <% end %> <%= page_entries_info @emo_functions %>, <%= select_per_page(params, session) %>
<% if @emo_functions %> <%= will_paginate @emo_functions %> <%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell (EmoFunction.human_attribute_name('in_use')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('descrizione')) %> <%= view_table_head_cell (link_to(EmoFunction.human_attribute_name('emo_sector_id'), emo_sectors_path )) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('person_id')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('monthly_hours')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('hourly_payment')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('monthly_salary')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('scalo_fisso')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('rimborso_per_km')) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('rimborso_mobile')) %> <%= view_table_head_cell (link_to(EmoFunction.human_attribute_name('emo_fund_id'), emo_funds_path )) %> <%= view_table_head_cell (EmoFunction.human_attribute_name('note')) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% @emo_functions.each do |emo_function| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view emo_function, '') %> <%= view_table_cell ( iconbutton_edit edit_emo_function_path(emo_function), '') %> <%#= view_table_cell ( iconbutton_delete emo_function, '') %> <%= view_table_cell ( check_box_tag :in_use, :in_use, emo_function.in_use, disabled: true) %> <%= view_table_cell ( emo_function.descrizione) %> <%= view_table_cell ( emo_function.emo_sector_id.present? ? link_to( emo_function.emo_sector.descrizione, emo_sector_path(emo_function.emo_sector) ) : nil) %> <%= view_table_cell ( emo_function.person_id.present? ? link_to( emo_function.person.dh_person_name, person_path(emo_function.person) ) : nil) %> <%= view_table_cell ( emo_function.monthly_hours) %> <%= view_table_cell ( emo_function.hourly_payment) %> <%= view_table_cell ( money_format(emo_function.monthly_salary) ) %> <%= view_table_cell ( money_format(emo_function.scalo_fisso) ) %> <%= view_table_cell ( money_format(emo_function.rimborso_per_km) ) %> <%= view_table_cell ( money_format(emo_function.rimborso_mobile) ) %> <%= view_table_cell ( emo_function.emo_fund_id.present? ? link_to( emo_function.emo_fund.format_for_formselect, emo_fund_path(emo_function.emo_fund) ) : nil) %> <%= view_table_cell ( emo_function.note) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %> <%= will_paginate @emo_functions %> <% end %>
<%= iconbutton_new new_emo_function_path %>