saucy/app/views/contributions/delete.html.erb

29 lines
1.3 KiB
Plaintext

<p style="color: green"><%= notice %></p>
<h1><%= t('contributions.delete.title') %></h1>
<p><%= t('contributions.delete.confirmation_message') %></p>
<table>
<tr><td><%= t('members.attributes.display_name') %></td><td><%= @contribution.member.display_name %></td></tr>
<tr><td><%= t('members.attributes.email') %></td><td><%= @contribution.member.email %></td></tr>
<tr><td><%= t('members.attributes.category') %></td><td><%= @contribution.member.category %></td></tr>
<tr><td><%= t('members.attributes.identification_number') %></td><td><%= @contribution.member.identification_number %></td></tr>
<tr><td><%= t('members.attributes.address') %></td><td><%= simple_format @contribution.member.address %></td></tr>
<tr><td><%= t('members.attributes.joined_on') %></td><td><%= @contribution.member.joined_on %></td></tr>
<tr><td><%= t('members.attributes.expires_on') %></td><td><%= @contribution.member.expires_on %></td></tr>
<tr><td><%= t('members.attributes.status') %></td><td><%= @contribution.member.status %></td></tr>
</table>
<%= form_with model: @contribution, method: :delete do |form| %>
<div>
<%= form.submit t('contributions.delete.actions.submit') %>
</div>
<div>
<%= link_to t('contributions.delete.actions.go_back'), members_path %>
</div>
<% end %>