summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/subscriptions/index.html.erb
blob: 2037de35ba413189391b69d166b902db8fc8d47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<h2 class="mbs">Subscriptions</h2>
<br>
<br>
<div id="last"> Lastest Subscriptions:
  <% if params[:search] == "active" %>
    <%= render :partial => "subscriptions/subscription_details" %>
    <%# Add destroy, route %>
    <%=link_to "Unsubscribe", :show_subscription, class: "button" %>
  </div>
  <br>
  <% else %>
    <p> No subscriptions </p>
    <p>Choose subcription:</p>
    <br>
    <ul class="nav nav-tabs nav-stacked">
      <% @subscriptions.each do |subscription| %>
        <li>
        <div class="btn-group">
          <button class="btn"> <%= subscription.name %>
            <%= subscription.price %> </button>
        </div>
        <div>
          <%=link_to "Subscribe", :show_subscription, class: "button" %>
        </div> <br>
        </li>
      <% end %>
    <% end %>
</ul>