mirror of
https://github.com/discourse/discourse.git
synced 2025-01-10 02:05:48 +08:00
a879bcdc35
This converts the `<AdminPageHeader />` component and the `<AdminPageSubheader />` components into new components that can be used outside of admin, and updates the CSS classes. Also introduces a `<DPageActionButton />` component and child components for the header action buttons. I have to keep the old admin-only components around for now until plugins are updated, then we can remove it, and remove the re-exports that are done within admin-page-action-button.gjs
28 lines
826 B
Handlebars
28 lines
826 B
Handlebars
<div class="admin-user_fields admin-config-page">
|
|
<DPageHeader
|
|
@titleLabel={{i18n "admin.user_fields.title"}}
|
|
@descriptionLabel={{i18n "admin.user_fields.help"}}
|
|
@hideTabs={{true}}
|
|
@learnMoreUrl="https://meta.discourse.org/t/creating-and-configuring-custom-user-fields/113192"
|
|
>
|
|
<:breadcrumbs>
|
|
<DBreadcrumbsItem @path="/admin" @label={{i18n "admin_title"}} />
|
|
<DBreadcrumbsItem
|
|
@path="/admin/customize/user_fields"
|
|
@label={{i18n "admin.user_fields.title"}}
|
|
/>
|
|
</:breadcrumbs>
|
|
<:actions as |actions|>
|
|
<actions.Primary
|
|
@route="adminUserFields.new"
|
|
@label="admin.user_fields.add"
|
|
/>
|
|
</:actions>
|
|
</DPageHeader>
|
|
|
|
<div class="admin-config-page__main-area">
|
|
<div class="user-fields">
|
|
{{outlet}}
|
|
</div>
|
|
</div>
|
|
</div> |