-
-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy path_note.html.haml
More file actions
13 lines (13 loc) · 817 Bytes
/
_note.html.haml
File metadata and controls
13 lines (13 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
.modal.fade{ id: "#{note.persisted? ? "edit-note-modal-#{note.id}" : 'note-modal'}", 'aria-labelledby': 'modal-title', 'aria-hidden': 'true', role: 'dialog' }
.modal-dialog
.modal-content
.modal-header
%h5.modal-title#modal-title
= note.persisted? ? "Update note for #{member.full_name}" : "Add a note for #{member.full_name}"
%button.btn-close{ type: 'button', 'data-bs-dismiss': 'modal', 'aria-label': 'Close' }
.modal-body
= simple_form_for [:admin, note], html: { class: 'form-inline' } do |f|
= f.input :note, label: false, input_html: { rows: 3 }, placeholder: 'e.g. very enthusiastic student.'
= f.hidden_field :member_id, value: @member.id
.text-right
= f.button :button, 'Save note', class: 'btn btn-primary mb-0'