{# .. screenshot:: |canaille|/admin/client/edit/client :context: admin :align: right :width: 275px The client addition page. The client edition template. Displays a form to edit a :class:`~canaille.oidc.basemodels.Client`. :param form: The client creation form. :type form: :class:`~canaille.oidc.endpoints.forms.ClientAddForm`. :param client: The edited client. :type client: :class:`~canaille.oidc.basemodels.Client` #} {% extends theme('base.html') %} {% import 'macro/form.html' as fui %} {%- block title -%} {%- trans %}Edit an application{% endtrans -%} {%- endblock -%} {% block script %} {% endblock %} {% block submenu %} {% trans %}Applications{% endtrans %} {% if user.can_manage_oidc %} {% trans %}Tokens{% endtrans %} {% endif %} {% endblock %} {% block content %} {% if management_token %}

{% trans %}Management token{% endtrans %}

{% trans %}This token can be used to edit the application details through the OAuth 2.0 Dynamic Client Registration Management Protocol.{% endtrans %} {% trans %}Read more…{% endtrans %}

{% call fui.render_form(form, id="managementtokenform") %}
{% call fui.render_button(form.action, "new-management-token", class_="ui teal right labeled icon button copy-button", id="new-management-token") %} {% trans %}Renew{% endtrans %} {% endcall %}
{% endcall %}
{% endif %}

{% trans %}Edit an application{% endtrans %} {% if client.trusted %} {% trans %}Trusted{% endtrans %} {% endif %} {% if client.secret_expired %} {% trans %}Expired secret{% endtrans %} {% endif %}

{% call fui.render_form(form) %}
{% call fui.render_button(form.action, "new-client-secret", class_="ui teal right labeled icon button", id="new-client-secret", formnovalidate=True) %} {% trans %}Renew{% endtrans %} {% endcall %}
{{ form.owners() }} {{ form.client_secret_expires_at() }} {{ fui.render_fields(form, exclude=["client_secret_expires_at", "owners"]) }}
{% if user.can_manage_oidc and not client.owners %} {% call fui.render_button(form.action, "new-access-token", class_="ui right floated button", id="new-access-token") %} {{ _("New access token") }} {% endcall %} {% endif %} {% call fui.render_button(form.action, "confirm-delete", class_="ui right floated negative basic button confirm", id="confirm-delete", formnovalidate=True) %} {{ _("Delete the client") }} {% endcall %} {% call fui.render_button(form.action, "edit", class_="ui right floated primary button", id="edit") %} {{ _("Edit") }} {% endcall %}
{% endcall %}
{% endblock %}