{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% if document %}{{ _("Edit Document") }}{% else %}{{ _("Upload Document") }}{% endif %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if document %} {% else %} {% endif %}

{% if document %}{{ _("Edit Document")}}{% else %}{{ _("Upload Document")}}{% endif %}

{% if document %}{{ _("Update document information")}}{% else %}{{ _("Upload a new document")}}{% endif %}

{% csrf_token %} {% if messages %} {% for message in messages %} {% endfor %} {% endif %} {% if form.non_field_errors %}
{% trans "Please fix the following errors:" %}
    {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{{ _("Document File")}}
{% if document %}
{{ _("Current File")}}
  • {{ _("Filename:") }} {{ document.filename }}
  • {{ _("Size:") }} {{ document.file_size|filesizeformat }}
  • {{ _("Version:") }} {{ document.version }}
{% endif %}

{% trans "Drag & drop your file here" %}
{% trans "or click to browse" %}

{% trans "Supported: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, JPG, PNG (Max 50MB)" %}
{% if document %}
{% endif %}
{{ _("Document Information")}}
{{ _("Access Control")}}
{% for choice in form.access_roles %}
{{ choice.tag }}
{% endfor %}
{{ _("Guidelines")}}
  • {{ _("Use descriptive titles")}}
  • {{ _("Add clear descriptions")}}
  • {{ _("Set appropriate visibility")}}
  • {{ _("Use tags for searching")}}
{% if document %}
{{ _("Current Document")}}
  • {{ _("Created:") }} {{ document.created_at|date:"M d, Y" }}
  • {{ _("Updated:") }} {{ document.updated_at|date:"M d, Y" }}
  • {{ _("Version:") }} {{ document.version }}
{% endif %}
{{ _("Cancel")}}
{% endblock %} {% block extra_js %} {% endblock %}