{% from 'events/notes/_note.html' import render_toggle_button %} {% macro _render_note_editor(item) -%}
  • {% if item.has_note %} {% set title = _('Edit minutes') %} {% else %} {% set title = _('Add minutes') %} {% endif %} {{- title -}}
  • {%- endmacro %} {% macro _render_dropdown(item, item_type, show_note_operations=false) -%} {%- endmacro %} {% macro render_manage_button(item, item_type, show_notes=true, toggle_notes=true, show_note_operations=false, show_button=true) -%}
    {% if toggle_notes and item.has_note %} {{ render_toggle_button(note=item.note, note_is_hidden=not show_notes) }} {% endif %} {% if show_button %}
    {{ _render_dropdown(item, item_type, show_note_operations=show_note_operations) }}
    {% endif %}
    {%- endmacro %}