Associazioni della persona:

'>
<% (Date.today.year).downto(Date.today.year-3) do |this_year| %> <% memberships = Membership.where(person_id: @person).on_year('data_deliberaiscrizione',this_year) %> <% if memberships and ( memberships.count > 0 ) %>

<%= this_year %>

<%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 3 %> <%= view_table_head_cell (link_to('Persona', people_path )) %> <%= view_table_head_cell (link_to('Associazione', organizations_path)) %> <%= view_table_head_cell ('Data iscrizione') %> <%= view_table_head_cell ('Data recesso') %> <%= view_table_head_cell ('Tessera') %> <%= view_table_head_cell (link_to('Ruolo associativo', membership_types_path) ) %> <%= view_table_head_cell ('Data stampa') %> <%= view_table_head_cell ('Data archiviazione') %> <%= view_table_head_cell ('Codice barcode') %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% memberships.ordered_for_person.each do |membership| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view membership, '') %> <%= view_table_cell ( iconbutton_edit edit_membership_path(membership), '') if policy(Membership).edit? %> <%#= view_table_cell ( iconbutton_delete membership, '') %> <%= view_table_cell ( iconbutton_to recesso_memberships_path, icon('sign-out-alt'), 'btn-warning btn-xs', '', @filter_params.merge(filterorganization_id: membership.organization_id, filterperson_id: membership.person_id), true ) %> <%= view_table_cell ( link_to( membership.person.dh_person_name, person_path(membership.person) ) ) %> <%= view_table_cell ( link_to( membership.organization.format_for_formselect, organization_path(membership.organization_id)) ) %> <%= view_table_cell ( membership.data_iscrizione) %> <%= view_table_cell ( membership.data_recesso) %> <%= view_table_cell ( membership.tessera) %> <%= view_table_cell ( link_to(membership.membership_type.descrizione, membership_type_path(membership.membership_type_id)) ) %> <%= view_table_cell ( membership.data_stampa) %> <%= view_table_cell ( membership.data_archiviazione) %> <%= view_table_cell ( membership.barcode_text) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %>
<% end %> <% end %>

<%= icon('chevron-up') %> Torna all'inizio della pagina