{% 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 %}
{%- endmacro %} {%- macro _render_dropdown_option(opt, item, item_type) -%} {%- if opt == 'event_edit' -%} {%- trans -%}Edit Event{%- endtrans -%} {%- elif opt == 'event_clone' -%} {%- trans -%}Clone Event{%- endtrans -%} {%- elif opt == 'notes_edit' -%} {% set note_item = item.session if item_type == 'SESSION_BLOCK' else item %} {{ _render_note_editor(note_item) }} {%- elif opt == 'notes_compile' -%} {%- elif opt == 'attachments_edit' -%} {% set attachment_item = item.session if item_type == 'SESSION_BLOCK' else item %} {%- trans %}Material editor{% endtrans -%} {%- elif opt == 'session_block_edit' -%} {%- trans -%}Edit session block{%- endtrans -%} {%- elif opt == 'session_timetable_edit' -%} {%- trans -%}Edit session timetable{%- endtrans -%} {%- elif opt == 'session_protection_edit' -%} {%- trans -%}Edit session protection{%- endtrans -%} {%- elif opt == 'contribution_edit' -%} {%- trans -%}Edit contribution{%- endtrans -%} {%- elif opt == 'contribution_subcontributions_edit' -%} {%- trans -%}Manage subcontributions{%- endtrans -%} {%- elif opt == 'contribution_protection_edit' -%} {%- trans -%}Edit protection{%- endtrans -%} {%- elif opt == 'subcontribution_edit' -%} {%- trans -%}Edit subcontribution{%- endtrans -%} {%- else -%} ERROR: unknown option "{{ opt }}" {%- endif -%} {%- endmacro -%} {% macro render_manage_button(item, item_type, show_notes=true, toggle_notes=true, show_note_operations=false, anchor=none) -%} {%- endmacro %}