<%= Decreto.label %>

<%= page_entries_info @decretos %>, <%= select_per_page(params, session) %>
<% if @decretos %> <%= will_paginate @decretos %> <%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell ('N') %> <%= view_table_head_cell ('Data') %> <%= view_table_head_cell ('Tipo') %> <%= view_table_head_cell ('Scadenza') %> <%= view_table_head_cell ('Obsoleta') %> <%= view_table_head_cell ('Subn') %> <%= view_table_head_cell ('Titolo1') %> <%= view_table_head_cell ('Titolo2') %> <%= view_table_head_cell ('Testo') %> <%= view_table_head_cell ('Tag') %> <%= view_table_head_cell ('Testo formattato') %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% @decretos.each do |decreto| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view decreto, nil) %> <%= view_table_cell ( iconbutton_edit edit_decreto_path(decreto),nil) %> <%#= view_table_cell ( iconbutton_delete decreto, nil) %> <%= view_table_cell ( decreto.n) %> <%= view_table_cell ( decreto.data.present? ? decreto.data.to_dmy : nil ) %> <%= view_table_cell ( decreto.tipo) %> <%= view_table_cell ( decreto.scadenza) %> <%= view_table_cell ( decreto.obsoleta) %> <%= view_table_cell_ellipsis(decreto.subn, 30) %> <%= view_table_cell_ellipsis(decreto.titolo1,40) %> <%= view_table_cell_ellipsis(decreto.titolo2,40) %> <%= view_table_cell_ellipsis(decreto.testo,50) %> <%= view_table_cell_ellipsis(decreto.tag,50) %> <%= view_table_cell_ellipsis(decreto.testo_formattato,50) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %> <%= will_paginate @decretos %> <% end %>