<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% profile = nil if profile.nil? # weird hack so erb doesn't throw an exception when profile is not passed in %> <% required ||= {} %> <% show_anon = true if show_anon.nil? %> <% # we need to generate a unique id for the "anonymous" checkbox if this form is included multiple times throughout a page %> <% unique_id_token = SecureRandom.uuid %>
value='<%= profile && profile.user.email %>' placeholder='Email <%= required[:email] ? "(required)" : nil %>'>
<%= render 'nonprofits/supporters/fieldset', cssClass: 'col-8', profile: profile, name: 'name', placeholder: 'Full name', required: required[:name] %> <%= render 'nonprofits/supporters/fieldset', cssClass: 'col-right-4', profile: profile, name: 'phone', placeholder: 'Phone' %>
<%= render 'supporters/manual_address_fields', profile: profile %> <% if !@nonprofit.no_anon && show_anon %>
>
<% end %>