<%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell (CommitmentTransaction.human_attribute_name(:commitment_id)) %> <%= view_table_head_cell (CommitmentTransaction.human_attribute_name(:date)) %> <%= view_table_head_cell (CommitmentTransaction.human_attribute_name(:amount)) %> <%= view_table_head_cell (CommitmentTransaction.human_attribute_name(:reference_year)) %> <%= view_table_head_cell (CommitmentTransaction.human_attribute_name(:notes)) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% commitment_transactions.each do |commitment_transaction| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view commitment_transaction) %> <%= view_table_cell ( iconbutton_edit edit_commitment_path(commitment_transaction)) %> <%#= view_table_cell ( iconbutton_delete commitment_transaction) %> <%= view_table_cell ( commitment_transaction.commitment_id ? link_to( commitment_transaction.commitment.format_for_formselect, commitment_path(commitment_transaction.commitment_id) ) : nil) %> <%= view_table_cell ( commitment_transaction.date.to_dmy) %> <%= view_table_cell_right ( money_format_zero(commitment_transaction.amount) ) %> <%= view_table_cell ( commitment_transaction.reference_year) %> <%= view_table_cell ( commitment_transaction.notes) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %>