summaryrefslogtreecommitdiff
path: root/engines/billing/app/views/payments
diff options
context:
space:
mode:
Diffstat (limited to 'engines/billing/app/views/payments')
-rw-r--r--engines/billing/app/views/payments/_customer_form.html.erb13
-rw-r--r--engines/billing/app/views/payments/new.html.erb2
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">