{% extends "base.html" %} {% load django_bootstrap5 %} {% load humanize %} {% load i18n %} {% load static %} {% block title %} {% if secret %} {% blocktrans with secret.name as name %}Edit '{{ name }}'{% endblocktrans %} {% else %} {% blocktrans %}Add {{ pretty_content_type }}{% endblocktrans %} {% endif %} {% endblock %} {% block content %}

{% if secret %} {% blocktrans with secret.name as name %}Edit {{ pretty_content_type }} '{{ name }}' {% endblocktrans %} {% else %} {% blocktrans %}Add {{ pretty_content_type }}{% endblocktrans %} {% endif %}

{% if form.non_field_errors %}
{% endif %}
{% csrf_token %}

{% translate "Basic information" %}

{% bootstrap_field form.name layout="horizontal" label_class="searchable" placeholder="My secret..." %} {% bootstrap_field form.description layout="horizontal" label_class="searchable" placeholder="(optional)" %}

{% translate "Secret information" %}

{% block content_type_fields %}{% endblock %}

{% translate "Access control" %}

{{ form.access_policy }}

{% blocktranslate %} Discoverable means the secret will show up in search results for all users, but they will not have access unless someone shared this secret with them.

Everyone will let all users access the secret without the need to grant access.

Hidden will reveal the existence of the secret and its contents only to users who have been granted access. {% endblocktranslate %}

{{ form.needs_changing_on_leave }}

{{ form.needs_changing_on_leave.help_text }}

{% if not secret %}

{% translate "Grant initial access" %}

{% bootstrap_field form.shared_groups_on_create layout="horizontal" %}
{% bootstrap_field form.grant_description layout="horizontal" %}
{% endif %}
{% endblock %} {% block additionalJS %} {% if not secret %} {% endif %} {% endblock %}