{% load i18n cosinnus_tags %}
{% if user|is_member_in_forum %}
{% include 'cosinnus/attached/attached_objects_widget.html' with form=form form_data='{"private_upload": "1"}' hide_existing_file_field=True %}
{% else %}
{% comment %} Users can only attach files if they are members of the forum {% endcomment %}
{% group_url 'cosinnus:group-dashboard' group=SETTINGS.NEWW_FORUM_GROUP_SLUG ignoreErrors=True as blog_url %}
{% if blog_url %}
{% trans "You can only attach files and pictures to messages if you are a member of the forum. You can join it here:" %}
{% trans "Forum" %}