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

31 lines
1.2 KiB
Text

<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<div class='modal' id='noteModal'>
<%= render 'common/modal_header', title: 'Supporter Note' %>
<form>
<!--= on 'submit' (ajax_supporter_notes.update form_object) -->
<section class='modal-body'>
<p><small><!--= put (readable_date current_note.date) --></small></p>
<textarea name='content' rows='10'></textarea>
<!--= set_attr_if (not current_note.is_editing) 'readonly' '' -->
<!--= set_value current_note.content -->
<input name='id' type='hidden'>
<!--= set_value current_note.id -->
</section>
<footer class='modal-footer'>
<a class='button--small red u-marginRight--10'>
<!--= on 'click' (confirm 'Are you sure?' (ajax_supporter_notes.delete current_note.id) -->
Delete
</a>
<a class='button--small edit u-marginLeft--10'>
<!--= hide_if current_note.is_editing -->
<!--= on 'click' (def 'current_note.is_editing' true) -->
Make Editable
</a>
<button class='button--small' type='submit'>
<!--= show_if current_note.is_editing -->
Save Edits </button>
</footer>
</form>
</div>