{% extends "cosinnus_file/base.html" %} {% load i18n static cosinnus_tags widget_tweaks thumbnail %} {% block extrahead %} {{ block.super }} {% endblock extrahead %} {% block page_title %} {% trans "Files" %} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }} {% include "cosinnus_file/breadcrumb_file.html" with folder=current_folder breadcrumb_template="cosinnus_file/breadcrumb_file.html" %} {% endblock %} {% block leftnav %} {% include "cosinnus/leftnav_hierarchic_listview.html" %} {% endblock leftnav %} {% block content %}
{% include 'cosinnus/common/filter_controls.html' %} {% if user|can_create_objects_in:group %} {% comment %} Removed old upload button for now {% with obj_form=form.forms.obj %}
{% csrf_token %} {{ obj_form.non_field_errors }}
  • {{ obj_form.file.errors }} {% captureas placeholder %}{% trans "Upload a file or document." %}{% endcaptureas %} {% render_field obj_form.file class+="form-control next-button-is-for-sending" placeholder=placeholder id="fileToUpload" %}
{% endwith %} {% endcomment %}
{% csrf_token %} {% with cur_folder=current_folder.id %} {% with '{"on_success": "render_object", "direct_upload": "1", "target_folder": "'|addstr:cur_folder|addstr:'"}' as file_form_data %} {% include 'cosinnus/attached/file_upload_button.html' with form_data=file_form_data style="large" %} {% endwith %} {% endwith %}
{% endif %}
{% for file in objects %} {% include 'cosinnus_file/single_file_detailed.html' with file=file %} {% empty %} {% include 'cosinnus/common/empty_button.html' with message="No files have been uploaded yet." %} {% endfor %}
{% include 'cosinnus/hierarchy/move_element_modal.html' %} {% endblock content %}