2018-03-25 13:20:54 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
							 
						 
					
						
							
								
									
										
										
										
											2018-03-25 13:30:42 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								<div class='modal' id='newPayoutModal'>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									<%= render 'common/modal_header', title: 'New Payout' %>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									<div class='modal-body'>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-23 16:35:27 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										<p>Use this form to make a payout right now of your available balance (<strong><%= print_currency @available_total, @nonprofit.currency_symbol %></strong>).</p>
							 
						 
					
						
							
								
									
										
										
										
											2018-03-25 13:30:42 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<p>You will receive a receipt of all donations after this payout.</p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<p>Payouts usually take 1-3 days to complete.</p>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<table class='table--striped'>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<thead>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												<tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													<th>Total Payout <small>(before fees)</small></th>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													<th>Connected Account</th>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</thead>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<tbody>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												<tr>
							 
						 
					
						
							
								
									
										
										
										
											2018-07-23 16:35:27 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													<td><%= print_currency @available_total, @nonprofit.currency_symbol %></td>
							 
						 
					
						
							
								
									
										
										
										
											2018-03-25 13:30:42 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													<td>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														<% if @nonprofit.bank_account %>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
															<%= @nonprofit.bank_account.name %>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														<% else %>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
															You must connect a bank account.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														<% end %>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														<br>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														<a class='button--tiny edit' href='/settings?p=payouts&s=settings-pane'>settings</a>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													</td>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</tr>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</tbody>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</table>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										<form class='u-centered u-padding--10' action='/nonprofits/<%=@nonprofit.id%>/payouts.json' method='post'>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<!--= on 'submit' (create_payout form_object) -->
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											<%= render 'components/forms/submit_button', button_text: 'Create Payout' %>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</form>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</div>
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</div>