Liking cljdoc? Tell your friends :D

wagoe.admin.core.ui.layout

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.
raw docstring

admin-forbidden-pageclj

(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
sourceraw docstring

admin-homeclj

(admin-home entities entity-configs & [stats user])

dashboard for the groups dashboard-groups gives user.

`dashboard` for the groups `dashboard-groups` gives `user`.
sourceraw docstring

admin-layoutclj

(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
sourceraw docstring

admin-not-found-pageclj

(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
sourceraw docstring

admin-shellclj

content in the shell. opts: :user, :page-title, :logo-url.

`content` in the shell. `opts`: :user, :page-title, :logo-url.
sourceraw docstring

build-table-urlclj

(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
sourceraw docstring

create-config-errorclj

(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
sourceraw docstring

dashboardclj

(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.
sourceraw docstring

dashboard-groupsclj

(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`.
sourceraw docstring

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close