<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% 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 %> <%= IncludeAsset.js '/client/js/nonprofits/supporter_form/page.js' %> <% end %>

<%= image_tag @nonprofit.logo_url(:normal).to_s %> <% if params[:title] %>

<%= params[:title] %>

<% else %>

Register your info with <%= @nonprofit.name %>

<% end %> <% if params[:tags] %>

<%= params[:tags].split(',').map(&:titleize).join(", ") %>

<% end %> <% if params[:message] %>

<%= params[:message] %>

<% end %>

<% if params[:thankyou] %> <%= params[:thankyou] %> <% else %> Thank you! Your information was successfully saved <% end %>

<% 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| %> <% end %> <% (params[:fields] || '').split(',').each do |f| %> <% if params['desc_' + f] %>

<%= params['desc_' + f] %>

<% end %> <% end %>

<%= render 'components/forms/submit_button' %>