Sha256: 9c5869945e687ba0e6eb59fbedbd2900af762946d330764b0d88d08b54c0eb6d

Contents?: true

Size: 1.31 KB

Versions: 53

Compression:

Stored size: 1.31 KB

Contents

<% provide(:title, 'Plans') %>

<div class="next-grid">
  <div class="next-grid__cell">
    <div class="next-card">
      <% unless @plans.empty? %>
      <table class="table">
        <thead>
          <tr>
            <th>Name</th>
            <th>Status</th>
            <th>Plan Type</th>
            <th>Trial Period</th>
            <th>Amount</th>
            <th>Currency</th>
            <th>Interval</th>
            <th>Interval Count</th>
            <th></th>
          </tr>
        </thead>
        <tbody>
          <% @plans.each do |plan| %>
          <tr>
            <td><%= link_to(plan.name, edit_admin_plan_path(plan)) %></td>
            <td><%= plan.status %></td>
            <td><%= plan.plan_type %></td>
            <td><%= plan.trial_period_days %></td>
            <td><%= plan.amount %></td>
            <td><%= plan.currency %></td>
            <td><%= plan.interval %></td>
            <td><%= plan.interval_count %></td>
            <td><%= link_to 'Delete', admin_plan_path(plan), action: 'destroy', method: :delete,  data: {confirm: "About to delete plan: #{plan.name}. Are you sure?"} %></td>
          </tr>
          <% end %>
        </tbody>
      </table>
      <% end %>
    </div>
    <hr/>
    <%= link_to 'Create new plan', new_admin_plan_path, { class: 'btn btn-primary' } %>
  </div>
</div>

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.0 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.1 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.2 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.3 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.4 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.5 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.6 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.7 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.8 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.9 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.10 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.9.11 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.10.0 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.10.1 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.10.2 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.10.3 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.10.4 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.10.5 app/views/disco_app/admin/plans/index.html.erb
disco_app-0.11.0 app/views/disco_app/admin/plans/index.html.erb