{% extends "base.html" %} {% load opencve_extras %} {% load crispy_forms_tags %} {% block title %}Edit Organization - {{ block.super }}{% endblock %} {% block navbar_title%}Edit Organization{% endblock %} {% block content %}
{% include "messages.html" %}
{% if new_token %}

Token created

The token {{ new_token_name }} has been created
Warning: This token will only be displayed once. Make sure to copy it now before closing this page.
Use this token in the Authorization header: Authorization: Bearer {{ new_token }}
{% endif %}

General

{% crispy form %}

Memberships

New member

{% crispy members_form %}

Members

{% for member in members %} {% if member.user %} {% if member.date_joined %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
Name Email Role
{% if member.user %}{{ member.user.username }}{% else %}-{% endif %} {% if member.user %}{{ member.user.email }}{% else %}{{ member.email }}{% endif %} invitedpending signup

API Tokens

{% csrf_token %} {% crispy token_form %}

{% for token in api_tokens %} {% empty %} {% endfor %}
Name Description Created At Last Used Created By Status
{{ token.name }} {% if token.description %}{{ token.description }}{% else %}-{% endif %} {{ token.created_at|date:"Y-m-d H:i" }} {% if token.last_used_at %}{{ token.last_used_at|date:"Y-m-d H:i" }}{% else %}Never{% endif %} {% if token.created_by %}{{ token.created_by.username }}{% else %}Deleted user{% endif %} {% if token.is_active %} Active {% else %} Revoked {% if token.revoked_at %}
Revoked on {{ token.revoked_at|date:"Y-m-d H:i" }} {% if token.revoked_by %} by {{ token.revoked_by.username }} {% endif %} {% endif %} {% endif %}
{% if token.is_active %} {% endif %}
No API tokens created yet.
{% endblock %}