diff options
author | claucece <soficeli0@gmail.com> | 2015-09-16 00:13:01 -0500 |
---|---|---|
committer | claucece <soficeli0@gmail.com> | 2015-10-05 22:34:21 -0500 |
commit | 234cb9af5f11953f93910e79143fcb842e924248 (patch) | |
tree | 1aa27a027b13c43df1634d405f562ea2d2316b73 /engines/billing/app/views/payments | |
parent | 0a8b671803c9517ea06d1f6c003db3bf16aed1d2 (diff) |
added payment_info, _customer_form, sucess instances
Diffstat (limited to 'engines/billing/app/views/payments')
-rw-r--r-- | engines/billing/app/views/payments/_customer_form.html.erb | 13 | ||||
-rw-r--r-- | engines/billing/app/views/payments/new.html.erb | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engines/billing/app/views/payments/_customer_form.html.erb b/engines/billing/app/views/payments/_customer_form.html.erb new file mode 100644 index 0000000..2e8a3b1 --- /dev/null +++ b/engines/billing/app/views/payments/_customer_form.html.erb @@ -0,0 +1,13 @@ +<p>Please enter your personal info:</p> +<div class="mb1"> + <%= text_field_tag :first_name, "",placeholder: "First Name", class: "radius" %> +</div> +<div class="mb1"> + <%= text_field_tag :last_name, "",placeholder: "Last Name", class: "radius" %> +</div> +<div class="mb1"> + <%= text_field_tag :company, "",placeholder: "Company", class: "radius" %> +</div> +<div class="mb1"> + <%= text_field_tag :phone, "",placeholder: "Phone", class: "radius" %> +</div> diff --git a/engines/billing/app/views/payments/new.html.erb b/engines/billing/app/views/payments/new.html.erb index 86a1d64..3cdda01 100644 --- a/engines/billing/app/views/payments/new.html.erb +++ b/engines/billing/app/views/payments/new.html.erb @@ -2,6 +2,8 @@ <p>Please enter your donation details (this is a donation and will not be applied towards your account):</p> <br> <%= form_tag confirm_payment_path, id: "checkout-form" do %> + # add migration to user first. Not sure about the anonymous part. + # <%= render 'customer_form' unless current_user.has_payment_info? && current_user.where.not.is_anonymous? %> <div id="payment-form"></div> <div id='coinbase-container-id'></div> <input type="text" name="amount" placeholder="Enter amount"> |