<% if not patient.pledge_sent? %>
  <%= link_to submit_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', aria: { label: t('patient.menu.submit_pledge') }, remote: true %>
<% else %>
  <%= link_to cancel_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', remote: true %>
<% end %>

<% if not patient.pledge_sent? %>
  <%= link_to submit_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', aria: { label: t('patient.menu.submit_pledge') }, remote: true %>
<% else %>
  <%= link_to cancel_pledge_button, submit_pledge_path(patient), class:'submit-pledge-button', aria: { label: t('patient.menu.cancel_pledge') }, remote: true %>
<% end %>

Add label to cancel pledge button
Add label to cancel pledge button
