Sha256: d3a3b94369ec3fd8a8a5236428a94cf3824fad499d06e5ffe811bb378b95601e

Contents?: true

Size: 675 Bytes

Versions: 5

Compression:

Stored size: 675 Bytes

Contents

<h2>Change your payment details</h2>
<hr>

<div class="card card-block">
<% if @card.present? %>
  <p class="card-text">
    <%= @card.brand %><br>
    Card: **** **** **** <%= @card.last4 %><br>
    Expiry: <%= "#{@card.exp_month}/#{@card.exp_year}" %>
  </p>
<% else %>
  <p class="card-text">You do not have a card on file.</p>
<% end %>
</div>

<%= link_to 'Use a new card', new_account_card_path, class: 'btn btn-secondary' %>
<% if @can_delete_card %>
  <%= link_to 'Remove card', account_card_path, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %>
<% end %>
<%= link_to 'Cancel', account_subscription_path, class: 'btn btn-secondary' %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tang-0.2.2 app/views/tang/account/cards/show.html.erb
tang-0.2.1 app/views/tang/account/cards/show.html.erb
tang-0.2.0 app/views/tang/account/cards/show.html.erb
tang-0.1.0 app/views/tang/account/cards/show.html.erb
tang-0.0.9 app/views/tang/account/cards/show.html.erb