Sha256: cd368c14cb0147e19652feaf6473dbf7bafd09815d25066940d512f6b0041e51
Contents?: true
Size: 1.57 KB
Versions: 14
Compression:
Stored size: 1.57 KB
Contents
<%= content_for :header do -%> <h2>Upgrade Your Plan</h2> <% end -%> <%= semantic_form_for @account, :url => account_plan_path(@account) do |form| %> <%= form.inputs :class => "radio optional" do %> <% @plans.each do |plan| -%> <%= content_tag_for :li, plan, :class => "#{plan.name.parameterize} #{'disabled' if !@account.can_change_plan_to?(plan)}" do %> <div> <%= render(plan) %> </div> <%= form.label :plan_id, "Choose plan", :value => plan.id %> <%= form.radio_button :plan_id, plan.id, :disabled => !@account.can_change_plan_to?(plan), "data-free" => plan.free? %> <% if !@account.can_change_plan_to?(plan) -%> <p class="disabled"><%= t(".plan-disabled", :default => "Too big for %{name}.", :name => plan.name) %></p> <% end -%> <% end %> <% end -%> <% end %> <% if !@account.credit_card -%> <div class="billing_information" style="<%= 'display: none' if @account.plan.free? %>"> <h5 class="legend">Billing Information</h5> <%= render :partial => 'billings/form', :locals => { :form => form } %> </div> <% end -%> <%= form.buttons do %> <%= form.commit_button "Upgrade" %> <% if @account.expired? %> <li> <%= link_to t(".delete.expired", :default => "No thanks, just delete my account"), @account, :method => :delete, :confirm => "Are you sure? All data will be irreversibly deleted." %> </li> <% end %> <% end %> <% end %> <%= render :partial => "shared/saucy_javascript" %>
Version data entries
14 entries across 14 versions & 1 rubygems