Sha256: 78332d0559b1c8cb53c8fee4037a082e93aa09f19119948377e989a78c7b129f

Contents?: true

Size: 1.52 KB

Versions: 19

Compression:

Stored size: 1.52 KB

Contents

<% if @subscription.present? %>
  <div class="page-header">
    <h2>Subscription <%= @subscription.subscription_id %></h2>
  </div>
  <dl class="dl-horizontal">
    <dt>Category</dt>
    <dd><%= @subscription.product_category.downcase.capitalize if @subscription.product_category.present? %></dd>
    <dt>Product</dt>
    <dd><%= @subscription.product_name.downcase.capitalize if @subscription.product_name.present? %></dd>
    <dt>Period</dt>
    <dd><%= @subscription.billing_period.downcase.capitalize if @subscription.billing_period.present? %></dd>
    <dt>Charged through</dt>
    <dd> <%= format_date(@subscription.charged_through_date, @account.timezone).html_safe if @subscription.charged_through_date.present? %>
    <dt>Price List</dt>
    <dd><%= @subscription.price_list %></dd>
    <dt>Start Date</dt>
    <dd> <%= format_date(@subscription.start_date, @account.timezone).html_safe if @subscription.start_date.present? %>
  </dl>
  <hr/>
  <%= link_to "Change", kaui_engine.edit_subscription_path(@subscription.subscription_id), :class => "btn btn-mini" %>
  <%= link_to "Cancel", kaui_engine.subscription_path(@subscription.subscription_id), :method => :delete, :confirm => "Are you sure?", :class => "btn btn-mini" %>
  <%= link_to "Add Addons", kaui_engine.new_subscription_path(:params => { :bundle_id => @subscription.bundle_id, :base_subscription => @subscription.product_name, :product_category => "ADD_ON" }), :class => "btn btn-mini" %>
<% else %>
  <p>Subscription not found</p>
<% end %>
<%= link_to 'Back', :back, :class => 'btn' %>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
kaui-0.6.6 app/views/kaui/subscriptions/show.html.erb
kaui-0.6.5 app/views/kaui/subscriptions/show.html.erb
kaui-0.6.4 app/views/kaui/subscriptions/show.html.erb
kaui-0.6.3 app/views/kaui/subscriptions/show.html.erb
kaui-0.6.2 app/views/kaui/subscriptions/show.html.erb
kaui-0.6.1 app/views/kaui/subscriptions/show.html.erb
kaui-0.6.0 app/views/kaui/subscriptions/show.html.erb
kaui-0.5.3 app/views/kaui/subscriptions/show.html.erb
kaui-0.5.2 app/views/kaui/subscriptions/show.html.erb
kaui-0.5.1 app/views/kaui/subscriptions/show.html.erb
kaui-0.5.0 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.9 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.8 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.7 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.6 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.5 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.4 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.3 app/views/kaui/subscriptions/show.html.erb
kaui-0.4.2 app/views/kaui/subscriptions/show.html.erb