{% extends "cosinnus_file/base.html" %} {% load i18n static cosinnus_tags widget_tweaks %} {% block page_title %} {{object.title}} {% trans "Files" %} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }} {% include "cosinnus_file/breadcrumb_file.html" with folder=object.container breadcrumb_template="cosinnus_file/breadcrumb_file.html" %}
  • {{ object.title }}
  • {% endblock %} {% block leftnav %} {% include "cosinnus/leftnav_hierarchic_itemview.html" %} {% endblock leftnav %} {% block content %} {% if form.forms.obj.errors or form.forms.media_tag.errors %}

    {% trans "There was an error in one of the fields you entered. Please correct it before saving!" %}

    {% endif %}
    {% csrf_token %} {{ form.forms.obj.non_field_errors }} {{ form.forms.media_tag.non_field_errors }}
    {% trans "File title" as title_label %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.title label=title_label placeholder=title_label first=True %} {# SimpleMDE Description Field (gets initialized in extrahead) #} {% trans "Description" as description_placeholder %} {% trans "File description" as description_label %} {% include 'cosinnus/fields/default_field.html' with field=form.forms.obj.note legend=description_legend label=description_label placeholder=description_placeholder large_field=True %} {% if object.is_image %} {% trans "Preview" as prev_label %} {% include 'cosinnus/fields/default_field.html' with label=prev_label %} {% endif %} {% if object.creator %} {% trans "Uploaded by" as creat_label %} {% include 'cosinnus/fields/default_field.html' with label=creat_label %} {% with creator=object.creator %}

    {{ creator|full_name }}

    {% endwith %} {% endif %} {% if object.sourcefilename %} {% trans "Original filename" as name_label %} {% include 'cosinnus/fields/default_field.html' with label=name_label %} {% with creator=object.creator %}

    {{ object.sourcefilename }}

    {% endwith %} {% endif %} {% include 'cosinnus/media_tags.html' %}
    {% if user|has_write_access:object %} {% captureas label %}{% blocktrans with title=object.title %}Do you really want to delete file „{{ title }}“?{% endblocktrans %}{% endcaptureas %} {% captureas title %}{% trans "Delete file" %}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id="deleteModal" label=label title=title form_action="./delete/" %} {% endif %} {% endblock content %}