Sha256: 8aebb237b190cc2a518016decc5013c40588b536b64923f0e84a841edde64e82

Contents?: true

Size: 1.93 KB

Versions: 9

Compression:

Stored size: 1.93 KB

Contents

<div class="page-header">
  <h2>Subscription <%= @subscription.subscription_id %></h2>
</div>
<dl class="dl-horizontal">
  <dt>Category</dt>
  <dd><%= humanized_product_category(@subscription) || '&nbsp;'.html_safe %></dd>
  <dt>Product</dt>
  <dd><%= humanized_product_name(@subscription) || '&nbsp;'.html_safe %></dd>
  <dt>Period</dt>
  <dd><%= humanized_billing_period(@subscription) || '&nbsp;'.html_safe %></dd>
  <dt>Charged through</dt>
  <dd><%= humanized_charged_through_date(@subscription, @account) || '&nbsp;'.html_safe %>
  <dt>Price list</dt>
  <dd><%= humanized_price_list(@subscription) || '&nbsp;'.html_safe %></dd>
  <dt>Start date</dt>
  <dd><%= humanized_start_date(@subscription, @account) || '&nbsp;'.html_safe %></dd>
  <dt>Cancelled date</dt>
  <dd><%= humanized_cancelled_date(@subscription, @account) || '&nbsp;'.html_safe %></dd>
  <dt>Billing start date</dt>
  <dd><%= humanized_billing_start_date(@subscription, @account) || '&nbsp;'.html_safe %></dd>
  <dt>Billing end date</dt>
  <dd><%= humanized_billing_end_date(@subscription, @account) || '&nbsp;'.html_safe %></dd>
</dl>
<hr/>
<% if is_future_cancelled?(@subscription) %>
    <%= link_to 'Reinstate', kaui_engine.reinstate_subscription_path(:id => sub.subscription_id), :method => :put, :class => 'btn btn-mini' %>
<% elsif is_cancelled?(@subscription) %>
    <%= 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_product_name => @subscription.product_name, :product_category => 'ADD_ON'}), :class => 'btn btn-mini' %>
<% end %>
&nbsp;
<%= link_to 'Go to bundle', kaui_engine.bundle_path(@subscription.bundle_id), :class => 'btn btn-mini' %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kaui-0.9.0 app/views/kaui/subscriptions/show.html.erb
kaui-0.8.4 app/views/kaui/subscriptions/show.html.erb
kaui-0.8.3 app/views/kaui/subscriptions/show.html.erb
kaui-0.8.2 app/views/kaui/subscriptions/show.html.erb
kaui-0.8.1 app/views/kaui/subscriptions/show.html.erb
kaui-0.8.0 app/views/kaui/subscriptions/show.html.erb
kaui-0.7.2 app/views/kaui/subscriptions/show.html.erb
kaui-0.7.1 app/views/kaui/subscriptions/show.html.erb
kaui-0.7.0 app/views/kaui/subscriptions/show.html.erb