* root: initial rename * web: rename custom element prefix * root: rename external functions with pb_ prefix * root: fix formatting * root: replace domain with goauthentik.io * proxy: update path * root: rename remaining prefixes * flows: rename file extension * root: pbadmin -> akadmin * docs: fix image filenames * lifecycle: ignore migration files * ci: copy default config from current source before loading last tagged * *: new sentry dsn * tests: fix missing python3.9-dev package * root: add additional migrations for service accounts created by outposts * core: mark system-created service accounts with attribute * policies/expression: fix pb_ replacement not working * web: fix last linting errors, add lit-analyse * policies/expressions: fix lint errors * web: fix sidebar display on screens where not all items fit * proxy: attempt to fix proxy pipeline * proxy: use go env GOPATH to get gopath * lib: fix user_default naming inconsistency * docs: add upgrade docs * docs: update screenshots to use authentik * admin: fix create button on empty-state of outpost * web: fix modal submit not refreshing SiteShell and Table * web: fix height of app-card and height of generic icon * web: fix rendering of subtext * admin: fix version check error not being caught * web: fix worker count not being shown * docs: update screenshots * root: new icon * web: fix lint error * admin: fix linting error * root: migrate coverage config to pyproject
140 lines
6.3 KiB
HTML
140 lines
6.3 KiB
HTML
{% extends "administration/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load authentik_utils %}
|
|
|
|
{% block content %}
|
|
<section class="pf-c-page__main-section pf-m-light">
|
|
<div class="pf-c-content">
|
|
<h1>
|
|
<i class="pf-icon pf-icon-blueprint"></i>
|
|
{% trans 'Property Mappings' %}
|
|
</h1>
|
|
<p>{% trans "Control how authentik exposes and interprets information." %}
|
|
</p>
|
|
</div>
|
|
</section>
|
|
<section class="pf-c-page__main-section pf-m-no-padding-mobile">
|
|
<div class="pf-c-card">
|
|
{% if object_list %}
|
|
<div class="pf-c-toolbar">
|
|
<div class="pf-c-toolbar__content">
|
|
{% include 'partials/toolbar_search.html' %}
|
|
<div class="pf-c-toolbar__bulk-select">
|
|
<ak-dropdown class="pf-c-dropdown">
|
|
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
|
|
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
|
|
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
|
|
</button>
|
|
<ul class="pf-c-dropdown__menu" hidden>
|
|
{% for type, name in types.items %}
|
|
<li>
|
|
<ak-modal-button href="{% url 'authentik_admin:property-mapping-create' %}?type={{ type }}">
|
|
<button slot="trigger" class="pf-c-dropdown__menu-item">
|
|
{{ name|verbose_name }}<br>
|
|
<small>
|
|
{{ name|doc }}
|
|
</small>
|
|
</button>
|
|
<div slot="modal"></div>
|
|
</ak-modal-button>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</ak-dropdown>
|
|
<button role="ak-refresh" class="pf-c-button pf-m-primary">
|
|
{% trans 'Refresh' %}
|
|
</button>
|
|
</div>
|
|
{% include 'partials/pagination.html' %}
|
|
</div>
|
|
</div>
|
|
<table class="pf-c-table pf-m-compact pf-m-grid-xl" role="grid">
|
|
<thead>
|
|
<tr role="row">
|
|
<th role="columnheader" scope="col">{% trans 'Name' %}</th>
|
|
<th role="columnheader" scope="col">{% trans 'Type' %}</th>
|
|
<th role="cell"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody role="rowgroup">
|
|
{% for property_mapping in object_list %}
|
|
<tr role="row">
|
|
<td role="cell">
|
|
<span>
|
|
{{ property_mapping.name }}
|
|
</span>
|
|
</td>
|
|
<td role="cell">
|
|
<span>
|
|
{{ property_mapping|verbose_name }}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<ak-modal-button href="{% url 'authentik_admin:property-mapping-update' pk=property_mapping.pk %}">
|
|
<ak-spinner-button slot="trigger" class="pf-m-secondary">
|
|
{% trans 'Edit' %}
|
|
</ak-spinner-button>
|
|
<div slot="modal"></div>
|
|
</ak-modal-button>
|
|
<ak-modal-button href="{% url 'authentik_admin:property-mapping-delete' pk=property_mapping.pk %}">
|
|
<ak-spinner-button slot="trigger" class="pf-m-danger">
|
|
{% trans 'Delete' %}
|
|
</ak-spinner-button>
|
|
<div slot="modal"></div>
|
|
</ak-modal-button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<div class="pf-c-pagination pf-m-bottom">
|
|
{% include 'partials/pagination.html' %}
|
|
</div>
|
|
{% else %}
|
|
<div class="pf-c-toolbar">
|
|
<div class="pf-c-toolbar__content">
|
|
{% include 'partials/toolbar_search.html' %}
|
|
</div>
|
|
</div>
|
|
<div class="pf-c-empty-state">
|
|
<div class="pf-c-empty-state__content">
|
|
<i class="pf-icon pf-icon-blueprint pf-c-empty-state__icon" aria-hidden="true"></i>
|
|
<h1 class="pf-c-title pf-m-lg">
|
|
{% trans 'No Property Mappings.' %}
|
|
</h1>
|
|
<div class="pf-c-empty-state__body">
|
|
{% if request.GET.search != "" %}
|
|
{% trans "Your search query doesn't match any property mappings." %}
|
|
{% else %}
|
|
{% trans 'Currently no property mappings exist. Click the button below to create one.' %}
|
|
{% endif %}
|
|
</div>
|
|
<ak-dropdown class="pf-c-dropdown">
|
|
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
|
|
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
|
|
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
|
|
</button>
|
|
<ul class="pf-c-dropdown__menu" hidden>
|
|
{% for type, name in types.items %}
|
|
<li>
|
|
<ak-modal-button href="{% url 'authentik_admin:property-mapping-create' %}?type={{ type }}">
|
|
<button slot="trigger" class="pf-c-dropdown__menu-item">
|
|
{{ name|verbose_name }}<br>
|
|
<small>
|
|
{{ name|doc }}
|
|
</small>
|
|
</button>
|
|
<div slot="modal"></div>
|
|
</ak-modal-button>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</ak-dropdown>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|