{% extends "projects/temporary_access_list.html" %} {% load trans blocktrans from i18n %} {% load as_crispy_field as_crispy_errors from crispy_forms_tags %} {% block project_edit_content_subheader %} {% endblock project_edit_content_subheader %} {% block project_edit_content %} {% if object.pk %}
{% if object.access_type == "http_header_token" %} {% blocktrans trimmed %} Add this HTTP header to requests to allow access to your documentation. {% endblocktrans %} {% elif object.access_type == "password" %} {% blocktrans trimmed %} Share this link and the configured password to allow access to your documentation. {% endblocktrans %} {% else %} {% blocktrans trimmed %} Be careful sharing this link. Anyone that has this link will be able to access your documentation. {% endblocktrans %} {% endif %}
{% if object.access_type == "http_header_token" %} {% else %} {% endif %}
{% endif %}
{% csrf_token %} {# Manually reprodce the logic behind semantic-ui/uni_form.html as we need some wrapping elements. Don't do this if you don't have to. #}
{{ form|as_crispy_errors }} {% for field in form %} {% if field == form.password %}
{{ field|as_crispy_field }}
{% elif field == form.versions %}
{{ field|as_crispy_field }}
{% else %} {{ field|as_crispy_field }} {% endif %} {% endfor %}
{% endblock project_edit_content %}