Sha256: 3a9d22b976e6283e5f386f4512939ce5b59d5316bc6317a58cd438909a19ccbd

Contents?: true

Size: 1.25 KB

Versions: 51

Compression:

Stored size: 1.25 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" %>
  <% end %>
<% end %>

<%= render :partial => "shared/saucy_javascript" %>

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
saucy-0.10.10 app/views/plans/edit.html.erb
saucy-0.10.9 app/views/plans/edit.html.erb
saucy-0.10.8 app/views/plans/edit.html.erb
saucy-0.12.5 app/views/plans/edit.html.erb
saucy-0.12.4 app/views/plans/edit.html.erb
saucy-0.12.3 app/views/plans/edit.html.erb
saucy-0.12.2 app/views/plans/edit.html.erb
saucy-0.12.1 app/views/plans/edit.html.erb
saucy-0.12.0 app/views/plans/edit.html.erb
saucy-0.11.5 app/views/plans/edit.html.erb
saucy-0.11.3 app/views/plans/edit.html.erb
saucy-0.11.2 app/views/plans/edit.html.erb
saucy-0.10.7 app/views/plans/edit.html.erb
saucy-0.10.6 app/views/plans/edit.html.erb
saasy-0.0.2.alpha3 app/views/plans/edit.html.erb
saasy-0.0.2.alpha2 app/views/plans/edit.html.erb
saasy-0.0.2.alpha1 app/views/plans/edit.html.erb
saucy-0.10.5 app/views/plans/edit.html.erb
saucy-0.10.4 app/views/plans/edit.html.erb
saucy-0.10.3 app/views/plans/edit.html.erb