| 
									
										
										
										
											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
										 |  |  | <% content_for(:dont_track_ga) {'true'} %> | 
					
						
							|  |  |  | <% content_for(:hide_nav_beacon) {'true'} %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%= content_for :stylesheets do %> | 
					
						
							|  |  |  | 	<%= stylesheet_link_tag 'nonprofits/supporter_form/page' %> | 
					
						
							|  |  |  | <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <% content_for :javascripts do %> | 
					
						
							| 
									
										
										
										
											2019-12-04 16:22:48 -06:00
										 |  |  | 	<%= javascript_pack_tag 'i18n', 'page__nonprofits__supporter_form' %> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  | <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div class='u-centered'> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class='u-width--400 u-margin--auto'> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							| 
									
										
										
										
											2020-05-15 14:01:59 -05:00
										 |  |  |     <% if @nonprofit.logo.attached? %> | 
					
						
							|  |  |  |       <%= image_tag url_for(@nonprofit.logo_by_size(:normal)) %> | 
					
						
							|  |  |  |     <% end %> | 
					
						
							| 
									
										
										
										
											2018-03-25 13:30:42 -04:00
										 |  |  |     <% if params[:title] %> | 
					
						
							|  |  |  |       <h4><%= params[:title] %></h4> | 
					
						
							|  |  |  |     <% else %> | 
					
						
							|  |  |  |       <h4>Register your info with <%= @nonprofit.name %></h4> | 
					
						
							|  |  |  |     <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <% if params[:tags] %> | 
					
						
							|  |  |  |       <p> <%= params[:tags].split(',').map(&:titleize).join(", ") %> </p> | 
					
						
							|  |  |  |     <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <% if params[:message] %> | 
					
						
							|  |  |  |       <p> <%= params[:message] %></p> | 
					
						
							|  |  |  |     <% end %> | 
					
						
							|  |  |  |     <hr> | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     <p class='finishedMessage hide'> | 
					
						
							|  |  |  |       <% if params[:thankyou] %> | 
					
						
							|  |  |  |         <%= params[:thankyou] %> | 
					
						
							|  |  |  |       <% else %> | 
					
						
							|  |  |  |         Thank you! Your information was successfully saved | 
					
						
							|  |  |  |       <% end %> | 
					
						
							|  |  |  |     </p> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <form class='js-submit'> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <% required = (params[:required] || '').split(',') %> | 
					
						
							|  |  |  |     <%= render 'supporters/fields', show_anon: false, required: {name: required.include?('name'), email: required.include?('email')}, profile: current_user ? current_user.profile : nil %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <% (params[:tags] || '').split(',').each do |t| %> | 
					
						
							|  |  |  |       <input type='hidden' name='tag_<%=t%>' value=1> | 
					
						
							|  |  |  |     <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <% (params[:fields] || '').split(',').each do |f| %> | 
					
						
							|  |  |  |       <label><%= f.titleize %></label> | 
					
						
							|  |  |  |       <% if params['desc_' + f] %> | 
					
						
							|  |  |  |         <p class='u-small u-textAlign--left'><%= params['desc_' + f] %></p> | 
					
						
							|  |  |  |       <% end %> | 
					
						
							|  |  |  |       <input type='text' name='field_<%= f %>' placeholder='<%= f.titleize %>'> | 
					
						
							|  |  |  |     <% end %> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class='u-centered u-marginTop--10'> | 
					
						
							|  |  |  |       <p class='error'> | 
					
						
							|  |  |  |         <!--= show_if info_step_error --> | 
					
						
							|  |  |  |         <!--= put info_step.error --> | 
					
						
							|  |  |  |       </p> | 
					
						
							|  |  |  |       <%= render 'components/forms/submit_button' %> | 
					
						
							|  |  |  |     </form> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 |