web/admin: add notes for users and groups (#5459)
* web/admin: add notes for users and groups Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix unrelated typo Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -134,6 +134,20 @@ export class GroupViewPage extends AKElement {
|
||||
</ak-forms-modal>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-9-col-on-xl pf-m-9-col-on-2xl"
|
||||
>
|
||||
<div class="pf-c-card__title">${t`Notes`}</div>
|
||||
<div class="pf-c-card__body">
|
||||
${Object.hasOwn(this.group?.attributes || {}, "notes")
|
||||
? html`${this.group.attributes?.notes}`
|
||||
: html`
|
||||
<p>
|
||||
${t`Edit the notes attribute of this group to add notes here. Markdown is supported.`}
|
||||
</p>
|
||||
`}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-12-col-on-xl pf-m-12-col-on-2xl"
|
||||
>
|
||||
|
@ -280,7 +280,21 @@ export class UserViewPage extends AKElement {
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-12-col-on-xl pf-m-12-col-on-2xl"
|
||||
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-3-col-on-xl pf-m-3-col-on-2xl"
|
||||
>
|
||||
<div class="pf-c-card__title">${t`Notes`}</div>
|
||||
<div class="pf-c-card__body">
|
||||
${Object.hasOwn(this.user?.attributes || {}, "notes")
|
||||
? html`${this.user.attributes?.notes}`
|
||||
: html`
|
||||
<p>
|
||||
${t`Edit the notes attribute of this user to add notes here. Markdown is supported.`}
|
||||
</p>
|
||||
`}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-9-col-on-xl pf-m-9-col-on-2xl"
|
||||
>
|
||||
<div class="pf-c-card__title">${t`Changelog`}</div>
|
||||
<div class="pf-c-card__body">
|
||||
|
@ -44,8 +44,8 @@ export interface UIConfig {
|
||||
};
|
||||
locale: string;
|
||||
defaults: {
|
||||
userPath: string,
|
||||
},
|
||||
userPath: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DefaultUIConfig implements UIConfig {
|
||||
|
Reference in New Issue
Block a user