web/admin: allow editing of invitations

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#2583
This commit is contained in:
Jens Langhammer 2022-03-26 18:21:14 +01:00
parent 7d3841e85f
commit 933919c647
11 changed files with 69 additions and 0 deletions

View file

@ -193,6 +193,7 @@ msgstr "Ereignis"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5487,6 +5488,7 @@ msgstr "Aktuell!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5528,6 +5530,10 @@ msgstr "Ablauf aktualisieren"
msgid "Update Group"
msgstr "Gruppe aktualisieren"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "Aktualisieren Sie den LDAP-Anbieter"

View file

@ -178,6 +178,7 @@ msgstr "Action"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5598,6 +5599,7 @@ msgstr "Up-to-date!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5639,6 +5641,10 @@ msgstr "Update Flow"
msgid "Update Group"
msgstr "Update Group"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr "Update Invitation"
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "Update LDAP Provider"

View file

@ -180,6 +180,7 @@ msgstr "Acción"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5481,6 +5482,7 @@ msgstr "¡Actuales!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5522,6 +5524,10 @@ msgstr "Flujo de actualización"
msgid "Update Group"
msgstr "Grupo de actualización"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "Actualizar proveedor LDAP"

View file

@ -183,6 +183,7 @@ msgstr "Action"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5539,6 +5540,7 @@ msgstr "À jour !"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5580,6 +5582,10 @@ msgstr "Mettre à jour le flux"
msgid "Update Group"
msgstr "Mettre à jour le groupe"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "Mettre à jour le fournisseur LDAP"

View file

@ -180,6 +180,7 @@ msgstr "Akcja"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5478,6 +5479,7 @@ msgstr "Aktualny!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5519,6 +5521,10 @@ msgstr "Aktualizuj przepływ"
msgid "Update Group"
msgstr "Aktualizuj grupę"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "Aktualizuj dostawcę LDAP"

View file

@ -178,6 +178,7 @@ msgstr ""
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5578,6 +5579,7 @@ msgstr ""
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5619,6 +5621,10 @@ msgstr ""
msgid "Update Group"
msgstr ""
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr ""

View file

@ -180,6 +180,7 @@ msgstr "Eylem"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5483,6 +5484,7 @@ msgstr "Güncel!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5524,6 +5526,10 @@ msgstr "Akışı Güncelle"
msgid "Update Group"
msgstr "Güncelleme Grubu"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "LDAP Sağlayıcısını Güncelle"

View file

@ -182,6 +182,7 @@ msgstr "操作"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5474,6 +5475,7 @@ msgstr "最新!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5515,6 +5517,10 @@ msgstr "更新流程"
msgid "Update Group"
msgstr "更新组"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "更新 LDAP 提供程序"

View file

@ -182,6 +182,7 @@ msgstr "操作"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5474,6 +5475,7 @@ msgstr "最新!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5515,6 +5517,10 @@ msgstr "更新流程"
msgid "Update Group"
msgstr "更新组"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "更新 LDAP 提供程序"

View file

@ -182,6 +182,7 @@ msgstr "操作"
#: src/pages/property-mappings/PropertyMappingListPage.ts
#: src/pages/providers/ProviderListPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/system-tasks/SystemTaskListPage.ts
#: src/pages/tenants/TenantListPage.ts
@ -5474,6 +5475,7 @@ msgstr "最新!"
#: src/pages/sources/plex/PlexSourceViewPage.ts
#: src/pages/sources/saml/SAMLSourceViewPage.ts
#: src/pages/stages/StageListPage.ts
#: src/pages/stages/invitation/InvitationListPage.ts
#: src/pages/stages/prompt/PromptListPage.ts
#: src/pages/tenants/TenantListPage.ts
#: src/pages/tokens/TokenListPage.ts
@ -5515,6 +5517,10 @@ msgstr "更新流程"
msgid "Update Group"
msgstr "更新组"
#: src/pages/stages/invitation/InvitationListPage.ts
msgid "Update Invitation"
msgstr ""
#: src/pages/providers/ldap/LDAPProviderViewPage.ts
msgid "Update LDAP Provider"
msgstr "更新 LDAP 提供程序"

View file

@ -68,6 +68,7 @@ export class InvitationListPage extends TablePage<Invitation> {
new TableColumn(t`ID`, "pk"),
new TableColumn(t`Created by`, "created_by"),
new TableColumn(t`Expiry`),
new TableColumn(t`Actions`),
];
}
@ -98,6 +99,14 @@ export class InvitationListPage extends TablePage<Invitation> {
html`${item.pk}`,
html`${item.createdBy?.username}`,
html`${item.expires?.toLocaleString() || t`-`}`,
html` <ak-forms-modal>
<span slot="submit"> ${t`Update`} </span>
<span slot="header"> ${t`Update Invitation`} </span>
<ak-invitation-form slot="form" .instancePk=${item.pk}> </ak-invitation-form>
<button slot="trigger" class="pf-c-button pf-m-plain">
<i class="fas fa-edit"></i>
</button>
</ak-forms-modal>`,
];
}