summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/subscriptions/index.html.erb
diff options
context:
space:
mode:
authorclaucece <soficeli0@gmail.com>2015-09-23 23:57:44 -0500
committerclaucece <soficeli0@gmail.com>2015-10-05 22:39:31 -0500
commit577c1f3e92040ab79fcd67b818c7dc8531aaa211 (patch)
tree56698cbde7812d5e3edbf1a1adcc15f384b3cd92 /engines/billing/app/views/subscriptions/index.html.erb
parent5a4f0fa64d36df1d60bdd693580e10ce55949b6a (diff)
add subs_index and start show
Diffstat (limited to 'engines/billing/app/views/subscriptions/index.html.erb')
-rw-r--r--engines/billing/app/views/subscriptions/index.html.erb36
1 files changed, 23 insertions, 13 deletions
diff --git a/engines/billing/app/views/subscriptions/index.html.erb b/engines/billing/app/views/subscriptions/index.html.erb
index b47fae6..2037de3 100644
--- a/engines/billing/app/views/subscriptions/index.html.erb
+++ b/engines/billing/app/views/subscriptions/index.html.erb
@@ -1,19 +1,29 @@
<h2 class="mbs">Subscriptions</h2>
<br>
<br>
-<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 "Checkout", :show_subscription, class: "button" %>
- </div>
- </li>
+<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>