{% load i18n cosinnus_tags widget_tweaks %} {% if not no_imports %} {{ form.forms.media_tag.media }} {% endif %} {% if not media_tags_label %}{% trans "Additional options" as media_tags_label %}{% endif %} {% if not media_tags_legend %}{% trans "Attach files, add a location, mark topics and adjust visibility settings" as media_tags_legend %}{% endif %}
{% include 'cosinnus/fields/default_field.html' with legend=media_tags_legend label=media_tags_label %}
{% if not disable_persons %}
{% if not persons_label %}{% trans "Tag persons" as persons_label %}{% endif %} {% trans "Tag persons" as persons_placeholder %} {% include 'cosinnus/fields/media_tag_field.html' with field=form.forms.media_tag.persons label=persons_label icon="fa-user" placeholder=persons_placeholder %}
{% endif %} {% if not disable_tags %}
{% if not tags_label %}{% trans "Select tags" as tags_label %}{% endif %} {% trans "Select tags" as tags_placeholder %} {% include 'cosinnus/fields/media_tag_field.html' with field=form.forms.media_tag.tags label=tags_label icon="fa-tags" placeholder=tags_placeholder %}
{% endif %} {% if not disable_location %} {% captureas loc_html %} {% trans "Place or adress" as loc_placeholder %} {% render_field form.forms.media_tag.location placeholder=loc_placeholder class+="font14px" %} {{ form.forms.media_tag.location_lat }} {{ form.forms.media_tag.location_lon }}
{% endcaptureas %}
{% if not loc_label %}{% trans "Location" as loc_label %}{% endif %} {% include 'cosinnus/fields/media_tag_field.html' with field_html=loc_html label=loc_label legend=loc_legend icon="fa-map-marker" %}
{% endif %} {% if form.forms.obj.attached_objects and not disable_files %}
{% if not files_label %}{% trans "Upload a file or image or attach an existing one" as files_label %}{% endif %} {% captureas files_html %} {% include 'cosinnus/attached/attached_objects_widget.html' with form=form.forms.obj %} {% endcaptureas %} {% include 'cosinnus/fields/media_tag_field.html' with field_html=files_html label=files_label legend=files_legend icon="fa-paperclip" %}
{% endif %} {% if not disable_topics %}
{% if not topics_label %}{% trans "Select topic" as topics_label %}{% endif %} {% trans "Select topic" as topics_placeholder %} {% include 'cosinnus/fields/media_tag_field.html' with field=form.forms.media_tag.topics label=topics_label icon="fa-lightbulb-o" placeholder=topics_placeholder %}
{% endif %} {% if not disable_visibility %}
{% if not visibility_label %}{% trans "Visibility" as visibility_label %}{% endif %} {% trans "Visibility" as visibility_placeholder %} {% include 'cosinnus/fields/media_tag_field.html' with field=form.forms.media_tag.visibility label=visibility_label icon="fa-globe" placeholder=visibility_placeholder help_popup="helptext_51_objectprivacy" %}
  1. {% trans "This item will be posted as publicly visible! This means that anyone on the internet can access and see it, and it may potentially be included in search engine results." %} {% trans "If you do not wish this, you can change this item's visibility setting below." %}
{% endif %} {% if SETTINGS.COSINNUS_FACEBOOK_INTEGRATION_ENABLED and do_include_facebook_button %}
{% if not fb_label %}{% trans "Facebook-Integration" as fb_label %}{% endif %} {% captureas fb_html %} {% include 'cosinnus/utils/facebook_integration.html' %} {% endcaptureas %} {% include 'cosinnus/fields/media_tag_field.html' with field_html=fb_html label=fb_label icon="fa-facebook-square" %}
{% endif %} {% if not show_all %}
{% include 'cosinnus/fields/default_field.html' with legend=media_tags_legend label=media_tags_label %}
{% endif %}