Sha256: 24fb489ee185836dfa3b14fa899f87d0cf4557fb94aaac61108ffa7b2d8ed1f8

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

<%= render 'nav' %>

<h1>Listing Plans</h1>

<table>
  <thead>
    <tr>
      <th>Plan</th>
      <th>Cost</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @plans.each do |plan| %>
      <tr>
        <td><%= plan.name %></td>
        <td><%= "#{plan_cost(plan)}" %></td>
        <td><%= link_to 'Show', tang.admin_plan_path(plan) %></td>
        <td><%= link_to 'Edit', tang.edit_admin_plan_path(plan) %></td>
        <td><%= link_to 'Destroy', tang.admin_plan_path(plan), method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Plan', tang.new_admin_plan_path %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tang-0.0.1 app/views/tang/admin/plans/index.html.erb