houdini/app/views/components/forms/_slug_field.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

17 lines
892 B
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<!-- partial start components/forms/slug_field -->
<!-- fundraiser is event or campaign or nonprofit -->
<% fundraiser_name = fundraiser.class.name.downcase %>
<% full_url = 'https://commitchange.com' + url %>
<section>
<fieldset>
<label>URL Slug. This sets the URL path of your <%= fundraiser_name %>. Use only letters and hyphens.</label>
<p><small>Note that changing the <%= fundraiser_name %>'s slug will break any old links you might have shared</small></p>
<p class='u-color--grey'><%= full_url %>/<strong><%= fundraiser.slug %></strong></p>
<input data-slug-default='<%=fundraiser.name%>' class='js-sanitizeSlug' type='text' name='<%= fundraiser_name %>[slug]' value='<%= fundraiser.slug %>'>
</fieldset>
</section>
<!-- partial end components/forms/slug_field -->