{% load i18n static cosinnus_tags widget_tweaks %} {% if notes %} {% for note in notes %}
{% if user|has_write_access:note %} {% captureas modal_id %}deleteNote_{{note.pk}}{% endcaptureas %} {% captureas title %}{% trans "Delete note" %}{% endcaptureas %} {% captureas label %}{% trans "Do you really want to delete this note?" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:note:delete' group=note.group slug=note.slug%}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=modal_id label=label title=title form_action=action %} {% endif %}
{% if may_reflect and not reflectable_groups %} {# Simplification so we don't overload the page with modals: For reflecting in lists we link to the detail page and open the modal #}
{% endif %} {% include 'cosinnus/media_tags_readonly.html' with object=note %} {% include 'cosinnus_note/note_comments.html' with note=note %} {% endfor %} {% else %}
{% endif %}