{% 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, anchor=none) -%}
    {% if toggle_notes and item.has_note %} {% set req = request.args.get('note') %} {% set note_id = item.note.id|string %} {{ render_toggle_button(item.note, note_is_hidden=(req != note_id and not show_notes), anchor=anchor) }} {% endif %} {% if show_button %}
    {{ _render_dropdown(item, item_type, show_note_operations=show_note_operations) }}
    {% endif %}
    {%- endmacro %}