app/views/share_withdrawals/new.html.haml
- content_for(:head) do
= javascript_tag("OneClickOrgs.maximum_share_withdrawal = #{@maximum_share_withdrawal}")
= javascript_include_tag(:share_withdrawals)
%h2 Withdraw shares
%p
You currently have
= pluralize(current_user.shares_count, "share.", "shares.")
= form_for(@share_withdrawal) do |form|
%p
= form.label :amount, "How many shares would you like to withdraw?"
= form.text_field :amount
#terminate_membership{:style => "display: none;"}
%p
If you continue with this withdrawal, you will no longer hold the minimum number of
shares, and your membership will be terminated. Are you sure you wish to continue?
%p
= form.check_box :certification, :class => 'inline'
= form.label :certification, "Yes, I wish to terminate my membership."
.clear
%p
= form.submit "Apply to withdraw shares"