houdini/app/views/settings/_autocomplete.html.erb
Bradley M. Kuhn 22adb4d5fd Relicense all .erb files under new project license.
The primary license of the project is changing to:
  AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later

with some specific files to be licensed under the one of two licenses:
   CC0-1.0
   LGPL-3.0-or-later

This commit is one of the many steps to relicense the entire codebase.

Documentation granting permission for this relicensing (from all past
contributors who hold copyrights) is on file with Software Freedom
Conservancy, Inc.
2018-03-25 15:10:40 -04:00

29 lines
1.4 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<!-- settings/autocomplete -->
<header class='pane-header'>
<h3>Address Autocomplete</h3>
</header>
<div class='pane-inner'>
<p class='pastelBox--yellow u-padding--10 u-marginBottom--30'>Make it easier for your supporters to enter their addresses and get more accurate address information by enabling the address autocomplete feature (screenshot below). Checking the box below will enable the feature on all of your donation, campaign and event forms.</p>
<form autosubmit class='u-marginBottom--10' data-reload method='put' action='/nonprofits/<%= @nonprofit.id %>.json'>
<input type='hidden' name='nonprofit[autocomplete_supporter_address]' value='false'>
<input type='checkbox' name='nonprofit[autocomplete_supporter_address]' <%= @nonprofit.autocomplete_supporter_address ? 'checked=checked' : '' %> id='autocomplete-checkbox'>
<label for='autocomplete-checkbox'>Enable address autocomplete</label>
<div class='u-marginTop--15'>
<button type='submit' class='button u-marginTop--10' data-loading='Saving...'>
Save</button>
</div>
</form>
<hr>
<div class='browserBorder u-marginTop--10 u-maxWidth--400'>
<%= render 'components/browser_buttons' %>
<img src='<%= asset_path 'screenshots/address-autocomplete.gif' %>'>
</div>
</div>