Use new payment-tile for a few interface elements
authorClinton Ebadi <clinton@unknownlamer.org>
Tue, 25 Mar 2014 05:41:02 +0000 (01:41 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Tue, 25 Mar 2014 05:41:02 +0000 (01:41 -0400)
money.mlt
payment.mlt

index af404c5..c6f92e3 100644 (file)
--- a/money.mlt
+++ b/money.mlt
@@ -630,7 +630,9 @@ Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToI
 <!--h3>Your balance: $<% #amount bal %></h3-->
 
 <% if (iff Group.inGroupName "money" then $"lookback" = "" else $"audit" <> "") then %><h3>Sum of all active balances: $<% Balance.sumOwnedBalances () %></h3><% end %>
-
+<div>
+<div class="payment-tile">
+  <h3>Financial Information</h3>
 <a href="money?cmd=list">List all transactions</a><br>
 <a href="money?cmd=primary">List primary transactions</a><br>
 <a href="money?cmd=bals">List active balances</a><br>
@@ -643,8 +645,9 @@ Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToI
 
 <a href="?cmd=delinq">Drop pledges of delinquent members</a><br>
 <a href="?lookback=20">Switch to regular member view</a><br>
-
-<br><b><u>New transaction:</u></b><br>
+</div>
+<div class="payment-tile">
+  <h3>New Transaction</h3>
 <a href="money?cmd=bill">Bill for the co-op</a><br>
 <a href="money?cmd=pay">Payment from member</a><br>
 <a href="money?cmd=dues">Monthly dues</a><br>
@@ -653,20 +656,27 @@ Co-op balance: $<% #amount (Balance.lookupBalance (valOf (Balance.balanceNameToI
 <br>
 <a href="money?cmd=equalize">Equalize balances</a><br>
 <br>
-
+</div>
+<div>
+<div class="payment-tile">
 <h3>Look up a PayPal e-mail address</h3>
 
 <form method="post">
 <input type="hidden" name="cmd" value="paypal">
 <input name="email"> <input type="submit" value="Look up">
 </form>
+</div>
+
 
+<div class="payment-tile">
 <h3>Look up a Real Name</h3>
 
 <form method="post">
 <input type="hidden" name="cmd" value="realname">
 <input name="rname"> <input type="submit" value="Look up">
 </form>
+</div>
+</div>
 
 <h3>Apply Stripe Payments</h3>
 
index 4a7aea8..73a6243 100644 (file)
@@ -17,11 +17,17 @@ days.</p>
 <script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
 <script src="https://checkout.stripe.com/checkout.js"></script>
 
-<p>Remember that we credit member balances for payments <b>after subtracting service fees</b>. This means that, to increase your balance by a particular amount, you must make a <b>larger</b> payment than just that amount.</p>
+<p>Remember that we credit member balances for payments <b>after subtracting service fees</b>. This means that, to increase your balance by a particular amount, you must make a <b>larger</b> payment
+than just that amount. Stripe and Paypal have equal fees (for US
+residents); You can calculate the amount <em>x</em> to send from the amount <em>y</em> you want us to receive with this formula: <tt><em>x</em> = (<em>y</em> +
+  0.30) / (1 - 0.029)</tt>.</p>
 
+<div class="payment-tile">
 <h4>Add to your balance with <a href="https://paypal.com">PayPal</a></h4>
 
-<p>You should consult <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_display-fees-outside">the PayPal fees page</a> to figure out how much extra to send. We have a business account, which means, for example, a 2.9% plus 30 cent fee for payments from the USA. This means that you can calculate the amount <em>x</em> to send from the amount <em>y</em> you want us to receive with this formula: <em>x</em> = (<em>y</em> + .3) / (1 - .029). The fees may be different for other countries.</p>
+<p>Payal fees are 2.9% + $0.30 for payments from the US. The fees for
+other countries may be different, consult <a href="https://www.paypal.com/us/cgi-bin/webscr?cmd=_display-fees-outside">the PayPal fees page</a> if
+  needed.</p>
 
 <form method="GET" action="https://www.paypal.com/cgi-bin/webscr">
   <input type="hidden" name="cmd" value="_xclick" />
@@ -48,10 +54,11 @@ days.</p>
 <% switch #paypal you of
    NONE => %><p>You haven't set a PayPal e-mail address.  If you are going to send a payment by PayPal, please <a href="pref">set a PayPal e-mail address on the Preferences page</a> first to ensure that you are credited promptly and accurately.</p><%
 end %>
-
+</div>
+<div class="payment-tile">
 <h4>Add to your balance with <a href="https://stripe.com/">Stripe</a></h4>
 
-<p>Stripe fees are $0.30 + 2.9% for each transaction regardless of country.</p>
+<p>Stripe fees are 2.9% + $0.30 for each transaction regardless of country.</p>
 
 <form id="stripeForm" action="/stripe/stripe-payment.cgi" method="POST">
   <select id="stripeDuesEasy">
@@ -97,4 +104,4 @@ end %>
    });
   </script>
 </form>
-
+</div>