Sha256: b78e2dae12b72bf81e6d086ca0cab3fdfae2cec9e4997c7dadd5f6ea56c159cd

Contents?: true

Size: 1.63 KB

Versions: 5

Compression:

Stored size: 1.63 KB

Contents

<div class="page-header">
  <h2>Payment methods</h2>
</div>
<table class="table table-condensed table-striped">
  <thead>
    <tr>
      <th>Type</th>
      <th>Card Type</th>
      <th>Account Name</th>
      <th>Mask Number / Baid</th>
      <th>Expiration Date</th>
      <th>Default Method</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% if payment_methods.present? && !payment_methods.nil? %>
      <% payment_methods.each do |payment_method| %>
        <tr>
          <td><%= payment_method.type %></a></td>
          <td><%= payment_method.card_type %></a></td>
          <td><%= payment_method.card_holder_name %><%= payment_method.email %></a></td>
          <td><%= payment_method.mask_number %><%= payment_method.baid %></td>
          <td><%= payment_method.expiration_dt %></td>
          <td>
            <% if payment_method.is_default %>
              <i class="icon-ok"></i>
            <% else %>
              <%= link_to "Make Default", kaui_engine.set_default_payment_method_account_path(payment_method.account_id, :params => { :payment_method_id => payment_method.payment_method_id }), :method => :put, :confirm => "Are you sure you want to make this payment method default?", :class => "btn btn-mini" %>
            <% end %>
          </td>
          <td>
            <% unless payment_method.is_default %>
              <%= link_to "Delete", kaui_engine.payment_method_path(payment_method.payment_method_id), :method => :delete, :confirm => "Are you sure you want to delete this payment method?", :class => "btn btn-mini" %>
            <% end %>
          </td>
        </tr>
      <% end %>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaui-0.1.4 app/views/kaui/payment_methods/_payment_methods_table.html.erb
kaui-0.1.3 app/views/kaui/payment_methods/_payment_methods_table.html.erb
kaui-0.1.2 app/views/kaui/payment_methods/_payment_methods_table.html.erb
kaui-0.1.0 app/views/kaui/payment_methods/_payment_methods_table.html.erb
kaui-0.0.9 app/views/kaui/payment_methods/_payment_methods_table.html.erb