Admin nav contribution, page layout, error pages, and URL utilities.
Pure Hiccup generators for the admin chrome: the admin's contribution to
the sidebar of the shell in wagoe.shared.ui.core.shell, the dashboard
home, 403/404 error pages and the build-table-url helper.
Admin nav contribution, page layout, error pages, and URL utilities. Pure Hiccup generators for the admin chrome: the admin's contribution to the sidebar of the shell in `wagoe.shared.ui.core.shell`, the dashboard home, 403/404 error pages and the `build-table-url` helper.
(admin-forbidden-page reason & [user])403 Forbidden page for admin access denial.
Args: reason: Why access was denied, shown instead of the generic message user: Current user (optional)
Returns: Hiccup page structure
403 Forbidden page for admin access denial. Args: reason: Why access was denied, shown instead of the generic message user: Current user (optional) Returns: Hiccup page structure
(admin-home entities entity-configs & [stats user])dashboard for the groups dashboard-groups gives user.
`dashboard` for the groups `dashboard-groups` gives `user`.
(admin-layout content opts)A complete admin page: content in the shell.
Args: content: Main content (Hiccup structure) opts: Map with :user, :current-entity, :entity-configs, :flash
Returns: Complete HTML page structure with new admin shell
A complete admin page: `content` in the shell. Args: content: Main content (Hiccup structure) opts: Map with :user, :current-entity, :entity-configs, :flash Returns: Complete HTML page structure with new admin shell
(admin-not-found-page entity-name user)404 Not Found page for admin entities.
Args: entity-name: Entity that was not found user: Current user
Returns: Hiccup page structure
404 Not Found page for admin entities. Args: entity-name: Entity that was not found user: Current user Returns: Hiccup page structure
content in the shell. opts: :user, :page-title, :logo-url.
`content` in the shell. `opts`: :user, :page-title, :logo-url.
(build-table-url entity-name opts)Build table URL with query parameters.
Args: entity-name: Keyword entity name opts: Map with :page, :page-size, :sort, :dir, :search, etc.
Returns: URL string with query parameters
Build table URL with query parameters. Args: entity-name: Keyword entity name opts: Map with :page, :page-size, :sort, :dir, :search, etc. Returns: URL string with query parameters
(create-config-error entity-name entity-config)Page content for an entity whose config leaves a NOT NULL column off the create form (BOU-494), or splits it over two tables with no create flow of its own, so no record of it can be created.
Args: entity-name: Keyword entity name entity-config: Its config, carrying :create-config-errors
Page content for an entity whose config leaves a NOT NULL column off the create form (BOU-494), or splits it over two tables with no create flow of its own, so no record of it can be created. Args: entity-name: Keyword entity name entity-config: Its config, carrying :create-config-errors
(dashboard groups stats)(dashboard groups stats {:keys [activity extra-cards] :as opts})Admin dashboard home page content: a section per group of groups (the
sidebar's, see dashboard-groups), an entity as a tile, any other page as
a compact link. stats maps an entity to {:count n :summary [..]}; a nil
count shows "—". opts: :activity for the recent-activity panel (see
activity-panel), :extra-cards, Hiccup cards after the sections (the
deprecated :dashboard-extra-cards), and :entity-configs, :display and
:now to format summaries and times.
Admin dashboard home page content: a section per group of `groups` (the
sidebar's, see `dashboard-groups`), an entity as a tile, any other page as
a compact link. `stats` maps an entity to {:count n :summary [..]}; a nil
count shows "—". `opts`: :activity for the recent-activity panel (see
`activity-panel`), :extra-cards, Hiccup cards after the sections (the
deprecated `:dashboard-extra-cards`), and :entity-configs, :display and
:now to format summaries and times.(dashboard-groups entities entity-configs user)The sidebar's groups for user, which the dashboard has a section each of.
Outside a request, the admin's own items for entities.
The sidebar's groups for `user`, which the dashboard has a section each of. Outside a request, the admin's own items for `entities`.
(nav entities entity-configs)The admin's sidebar contribution (wagoe.platform.core.http.nav): an item
per entity not marked :sidebar-hidden, which the platform places in the
group of its module.
The admin's sidebar contribution (`wagoe.platform.core.http.nav`): an item per entity not marked :sidebar-hidden, which the platform places in the group of its module.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |