Sha256: 3543f729370f173767cf52c51dec447cfbcbea90c292b3e13e929edafd6890f3

Contents?: true

Size: 843 Bytes

Versions: 8

Compression:

Stored size: 843 Bytes

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 %>
        <%= form.label :plan_id, render(plan), :value => plan.id %>
        <%= form.radio_button :plan_id, plan.id, :disabled => !@account.can_change_plan_to?(plan) %>
      <% end %>
    <% end -%>
  <% end %>

  <% if !@account.credit_card -%>
    <h5 class="legend">Billing Information</h5>
    <%= render :partial => 'billings/form', :locals => { :form => form } %>
  <% end -%>

  <%= form.buttons do %>
    <%= form.commit_button "Upgrade" %>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
saucy-0.2.6.1 app/views/plans/edit.html.erb
saucy-0.2.6 app/views/plans/edit.html.erb
saucy-0.2.5 app/views/plans/edit.html.erb
saucy-0.2.4.1 app/views/plans/edit.html.erb
saucy-0.2.4 app/views/plans/edit.html.erb
saucy-0.2.3 app/views/plans/edit.html.erb
saucy-0.2.2 app/views/plans/edit.html.erb
saucy-0.2.1 app/views/plans/edit.html.erb