Sha256: 17974d5c7510fb094ed2e485fb74eaf6c878b913f37189723d794ed3bf4a2796

Contents?: true

Size: 1.99 KB

Versions: 2

Compression:

Stored size: 1.99 KB

Contents

<% if @account.present? %>
  <dl class="dl-horizontal">
    <dt>Id:</dt>
    <dd><%= @account.account_id %>&nbsp;</dd>
    <dt>Name:</dt>
    <dd><%= @account.name %>&nbsp;</dd>
    <dt>Email:</dt>
    <dd><%= @account.email %>&nbsp;</dd>
    <dt>Bill cycle day:</dt>
    <dd><%= @account.bill_cycle_day.day_of_month_local %> (user timezone) / <%= @account.bill_cycle_day.day_of_month_utc %> (UTC)</dd>
    <dt>Currency:</dt>
    <dd><%= @account.currency %>&nbsp;</dd>
    <dt>Timezone:</dt>
    <dd><%= @account.timezone %>&nbsp;</dd>
    <dt>Address 1:</dt>
    <dd><%= @account.address1 %>&nbsp;</dd>
    <dt>Address 2:</dt>
    <dd><%= @account.address2 %>&nbsp;</dd>
    <dt>Company:</dt>
    <dd><%= @account.company %>&nbsp;</dd>
    <dt>State:</dt>
    <dd><%= @account.state %>&nbsp;</dd>
    <dt>Country:</dt>
    <dd><%= @account.country %>&nbsp;</dd>
    <dt>Phone:</dt>
    <dd><%= @account.phone %>&nbsp;</dd>
    <dt>External key:</dt>
    <dd><%= @account.external_key %>&nbsp;</dd>
    <%= render :partial => "kaui/tags/tags_table",
               :locals => { :tags => @tags, :tags_url_or_path => kaui_engine.edit_account_tags_path(:params => { :account_id => @account.account_id }) } %>
  </dl>
  <% if @payment_methods.present? %>
    <%= render :partial => "kaui/payment_methods/payment_methods_table", :locals => { :account_id => @account.account_id, :payment_methods => @payment_methods } %>
  <% end %>
  <%= link_to "Add payment method", kaui_engine.add_payment_method_account_path(@account.account_id), :class => "btn btn-mini" %>
  <% @bundles.each do |bundle| %>
    <% subs = @subscriptions_by_bundle_id[bundle.bundle_id] %>
    <% if subs.present? %>
      <h4><%= link_to Kaui.bundle_key_display_string.call(bundle.external_key), Kaui.bundle_home_path.call(bundle.external_key) if bundle.external_key.present? %>&nbsp;</h4>
      <%= render :partial => "kaui/subscriptions/subscriptions_table", :locals => { :subscriptions => subs } %>
    <% end %>
  <% end %>
<% else %>
  <p>Account not found</p>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kaui-0.1.0 app/views/kaui/accounts/show.html.erb
kaui-0.0.9 app/views/kaui/accounts/show.html.erb