houdini/app/views/nonprofits/supporters/_custom_fields_inputs.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

36 lines
1.3 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<!-- partial start: nonprofits/supporters/custom_fields_input -->
<% bulk = false if bulk.nil? %>
<div class='layout--two--repeat'>
<!--= the scope of the below repeat is set in the parent element -->
<div class='field u-relative <%= bulk ? "u-marginBottom--20" : "" %>'>
<!--= repeat this -->
<% if bulk %>
<button toggle='remove'>
<!--= add_class_if (this.remove) 'toggledOn' -->
<!--= on 'click' (if (this.remove)
(def 'this.remove' false) (def 'this.remove' true)) -->
</button>
<% end %>
<label>
<!--= add_class_if (this.remove) 'u-strike' -->
<!--= put this.name -->
</label>
<span>
<!--= hide_if this.remove -->
<input type='hidden' name='remove'><!--= set_value this.remove -->
<input type='hidden' name='id'><!--= set_value this.id -->
<input type='text' name='val'><!--= set_value this.value -->
</span>
<span>
<!--= show_if this.remove -->
<span class='customField-remove'>
<strong class='u-color--red'>Remove</strong>
from <!--= put (custom_fields.bulk.action_recipient) -->
</span>
<input type='text' class='removeField'>
</span>
</div>
</div>
<!-- partial end: nonprofits/supporters/custom_fields_input -->