<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%> <% 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 %> <%= javascript_pack_tag 'i18n', 'page__nonprofits__supporter_form' %> <% end %>

<% if @nonprofit.logo.attached? %> <%= image_tag rails_storage_proxy_url(@nonprofit.logo_by_size(:normal)) %> <% end %> <% 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' %>