{% 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 folder %} {{ _("Back to Folder")}} {% else %} {{ _("Back to Dashboard")}} {% endif %}

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

{% if document %} {{ _("Update document information or upload a new version")}} {% else %} {{ _("Upload a new document to the reference library")}} {% 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 }}
  • {{ _("File Size:") }} {{ document.file_size|filesizeformat }}
  • {{ _("Version:") }} {{ document.version }}
  • {{ _("Uploaded:") }} {{ document.created_at|date:"M d, Y H:i" }}
{% endif %}

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

{% if form.file.errors %}
{% for error in form.file.errors %} {{ error }} {% endfor %}
{% endif %} {% trans "Supported formats:" %} PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, TXT, JPG, PNG
{% trans "Maximum file size:" %} 50 MB
{% if document %}
{% endif %}
{{ _("Document Information")}}
{% if form.title.errors %}
{% for error in form.title.errors %} {{ error }} {% endfor %}
{% endif %}
{% if form.folder.errors %}
{% for error in form.folder.errors %} {{ error }} {% endfor %}
{% endif %}
{{ _("Use tags to categorize and search documents easily")}}
{{ _("Access Control")}}
{% for choice in form.access_roles %}
{{ choice.tag }}
{% empty %}

{{ _("No access roles available")}}

{% endfor %} {{ _("Select roles that can access this document")}}
{{ _("Document Guidelines")}}

{{ _("Upload important documents, policies, procedures, and reference materials for easy access by your team.")}}


  • {{ _("Use descriptive titles in both languages")}}
  • {{ _("Add clear descriptions")}}
  • {{ _("Choose the right document type")}}
  • {{ _("Set appropriate visibility levels")}}
  • {{ _("Use tags for easy searching")}}
  • {{ _("Upload new versions when updating")}}
{% if document %}
{{ _("Current Document")}}
  • {{ _("Created:") }} {{ document.created_at|date:"M d, Y H:i" }}
  • {{ _("Updated:") }} {{ document.updated_at|date:"M d, Y H:i" }}
  • {{ _("Version:") }} {{ document.version }}
  • {{ _("File Size:") }} {{ document.file_size|filesizeformat }}
{% endif %}
{% if folder %} {{ _("Cancel")}} {% else %} {{ _("Cancel")}} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}