2021-10-28 13:24:34 +00:00
|
|
|
{% extends theme('base.html') %}
|
2023-03-28 18:37:16 +00:00
|
|
|
{% import 'macro/form.html' as fui %}
|
2020-08-17 13:49:48 +00:00
|
|
|
|
2023-03-16 18:30:30 +00:00
|
|
|
{%- block title -%}
|
|
|
|
{%- trans %}Edit a client{% endtrans -%}
|
|
|
|
{%- endblock -%}
|
2023-03-10 00:02:36 +00:00
|
|
|
|
2023-03-15 16:27:32 +00:00
|
|
|
{% block submenu %}
|
2023-09-08 07:05:51 +00:00
|
|
|
<a class="item" href="{{ url_for('core.admin.mail_index') }}">
|
|
|
|
<i class="user mail icon"></i>
|
|
|
|
{% trans %}Emails{% endtrans %}
|
|
|
|
</a>
|
|
|
|
<a class="active item" href="{{ url_for('oidc.clients.index') }}">
|
|
|
|
<i class="th list icon"></i>
|
|
|
|
{% trans %}Clients{% endtrans %}
|
|
|
|
</a>
|
|
|
|
<a class="item" href="{{ url_for('oidc.clients.add') }}">
|
|
|
|
<i class="plus icon"></i>
|
|
|
|
{% trans %}Add a client{% endtrans %}
|
|
|
|
</a>
|
|
|
|
<a class="item" href="{{ url_for('oidc.tokens.index') }}">
|
|
|
|
<i class="key icon"></i>
|
|
|
|
{% trans %}Tokens{% endtrans %}
|
|
|
|
</a>
|
|
|
|
<a class="item" href="{{ url_for('oidc.authorizations.index') }}">
|
|
|
|
<i class="user secret icon"></i>
|
|
|
|
{% trans %}Codes{% endtrans %}
|
|
|
|
</a>
|
2023-03-15 16:27:32 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2020-08-17 13:49:48 +00:00
|
|
|
{% block content %}
|
2023-03-15 16:27:32 +00:00
|
|
|
<div class="ui top attached segment">
|
|
|
|
<h2 class="ui center aligned header">
|
2021-12-20 22:57:27 +00:00
|
|
|
{% trans %}Edit a client{% endtrans %}
|
2023-03-15 16:27:32 +00:00
|
|
|
</h2>
|
2020-10-31 17:22:24 +00:00
|
|
|
|
2023-03-15 16:27:32 +00:00
|
|
|
<div class="ui form">
|
|
|
|
<form id="readonly">
|
|
|
|
<div class="field">
|
|
|
|
<label>{% trans %}ID{% endtrans %}</label>
|
|
|
|
<div class="ui cornor labeled input">
|
|
|
|
<input type="text" value="{{ client.client_id }}" readonly name="client_id">
|
|
|
|
<div class="ui corner label" title="{{ _("This field is not editable") }}">
|
|
|
|
<i class="lock icon"></i>
|
2021-12-06 13:20:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-15 16:27:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label>{% trans %}Secret{% endtrans %}</label>
|
|
|
|
<div class="ui cornor labeled input">
|
|
|
|
<input type="text" value="{{ client.client_secret }}" readonly name="client_secret">
|
|
|
|
<div class="ui corner label" title="{{ _("This field is not editable") }}">
|
|
|
|
<i class="lock icon"></i>
|
2021-12-06 13:20:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-15 16:27:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label>{% trans %}Issued at{% endtrans %}</label>
|
|
|
|
<div class="ui cornor labeled input">
|
|
|
|
<input type="text" value="{{ client.client_id_issued_at }}" readonly name="client_id_issued_at">
|
|
|
|
<div class="ui corner label" title="{{ _("This field is not editable") }}">
|
|
|
|
<i class="lock icon"></i>
|
2021-12-06 13:20:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-15 16:27:32 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2020-08-17 13:49:48 +00:00
|
|
|
|
2023-03-28 21:12:54 +00:00
|
|
|
{% call fui.render_form(form, csrf=false) %}
|
2023-03-28 18:37:16 +00:00
|
|
|
{{ fui.render_fields(form) }}
|
2020-11-23 16:32:40 +00:00
|
|
|
|
2023-03-15 16:27:32 +00:00
|
|
|
<div class="ui right aligned container">
|
|
|
|
<div class="ui stackable buttons">
|
2023-07-06 16:43:37 +00:00
|
|
|
<button type="submit" class="ui right floated negative basic button confirm" name="action" value="confirm-delete" id="confirm-delete" formnovalidate>
|
2023-03-15 16:27:32 +00:00
|
|
|
{{ _("Delete the client") }}
|
|
|
|
</button>
|
|
|
|
<button type="submit" class="ui right floated primary button" name="action" value="edit" id="edit">
|
|
|
|
{{ _("Edit") }}
|
|
|
|
</button>
|
2022-11-16 17:23:06 +00:00
|
|
|
</div>
|
2023-03-15 16:27:32 +00:00
|
|
|
</div>
|
2023-03-28 21:12:54 +00:00
|
|
|
{% endcall %}
|
2020-08-17 13:49:48 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|