% @page_title = "Edit Subscription: #{@subscription.subscription_id}" %>
<%= form_for(@subscription, :url => subscription_path(@subscription.subscription_id), :html => { :method => :put, :class => "form-horizontal" }) do |f| %>
<%= f.hidden_field :subscription_id %>
<%= f.label :product_name, "New product:", :class => "control-label" %>
<%= select :subscription, :product_name, @products.collect { |p| ["#{p.product_name} #{p.billing_period}".humanize, p.id] }, { :include_blank => true }, { :class => 'input-xlarge' } %>
<%= f.label :start_date, 'Change Date:', :class => "control-label" %>
<%= text_field :subscription, :start_date, :value => nil ,:class => 'input-xlarge date-picker' %>
<%= f.submit "Change", :class => 'btn btn-primary' %>
<%= link_to 'Show', kaui_engine.subscription_path(@subscription.subscription_id), :class => 'btn' %>
<%= link_to 'Back', :back, :class => 'btn' %>
<% end %>