{% extends "ndf/base.html" %} {% load i18n %} {% load cache %} {% load ndf_tags %} {% block title %} Upload Document {% endblock %} {% block head %} {% endblock %} {% block style %} #tags_error{ color: red; } div.tags{ /*padding: 5px 10px; */ margin: 2px 5px; /*color: white;*/ font-size: 1em; border: solid thin #FFD400; } i.remove-tag{ padding-left: 8px; font-size: 1.1em; cursor: pointer; } {% endblock %} {% block meta_content %}

{% trans "Uploading" %}

{% trans "You can upload files of any format to your group library." %}

{% endblock %} {% block related_content %} {% if user.is_authenticated %} {% user_access_policy groupid request.user as user_access %} {% if user_access == "allow" %}

  {% trans "New File" %}
{% endif %} {% endif %} {% endblock %} {% block body_content %} {% get_group_name groupid as group_name_tag %} {% if user.is_authenticated %}
{% csrf_token %}
{% trans "Upload File" %}
{% trans "Select Language" %} {% cache 600 upload_doc_language request.LANGUAGE %}
{% endcache %}
{% trans "Add Description" %} {% include "ndf/html_editor.html" with var_name="content_org" var_value=node.content|default_if_none:"" node_id=node.pk var_placeholder="Describe the file" %}

{% trans "Add Tag" %}:

{% trans 'Add Tag' %}
{% trans 'Non empty tags can have only alphanumeric characters, dash(-) and spaces.' %}
{% for each_tag in node.tags %}
{{each_tag}}
{% endfor %}
Visibility
{% if node.created_by == request.user.pk %}
{% else %} {% if not node %}

{% endif %} {% endif %}
{% else %}

{% trans "You are not an authorised user. Please login to upload files." %}

{% endif %} {% endblock %} {% block script %} // {% endblock %}