Sha256: b6927292eb2f86d626b258bee1e787adc87430999fc2a6f997ddbe5c0507cbde

Contents?: true

Size: 1.01 KB

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
saucy-0.2.21 app/views/plans/edit.html.erb
saucy-0.2.20 app/views/plans/edit.html.erb
saucy-0.2.18 app/views/plans/edit.html.erb
saucy-0.2.17 app/views/plans/edit.html.erb
saucy-0.2.16 app/views/plans/edit.html.erb
saucy-0.2.15 app/views/plans/edit.html.erb
saucy-0.2.14 app/views/plans/edit.html.erb
saucy-0.2.13 app/views/plans/edit.html.erb
saucy-0.2.12 app/views/plans/edit.html.erb
saucy-0.2.11 app/views/plans/edit.html.erb
saucy-0.2.10 app/views/plans/edit.html.erb
saucy-0.2.9 app/views/plans/edit.html.erb
saucy-0.2.8.1 app/views/plans/edit.html.erb
saucy-0.2.8 app/views/plans/edit.html.erb
saucy-0.2.7 app/views/plans/edit.html.erb