iya-sts
    Preparing search index...

    Draws Roles from the answer of GET /admin-api/roles: who holds each role, what requires one, the forms that change both, a preview of what would be issued, and the settings.

    A static utility class; it holds no state and takes no dependencies.

    Index
    MEMBERS_SHOWN: 10
    • Draws the page's body from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of the page's management API operation

      Returns string

      the body as HTML

    • Draws the clients that confer a role, each with a Remove form.

      Parameters

      • t: any

        the page's translator

      • one: any

        the configured role

      • listView: any

        the list view the forms carry

      Returns string

      the lines as HTML, or nothing when no client confers it

    • Draws one role's page from its view.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer of GET /admin-api/roles?role=

      Returns string

      the body as HTML

    • Draws a role's dynamic-selection forms: its membership mode and, for a dynamic role, its selection and exclusive group.

      Parameters

      • t: any

        the page's translator

      • one: any

        the configured role

      • listView: any

        the list view the forms carry

      Returns string

      the forms as HTML, or nothing for a role that cannot be dynamic

    • Draws a dynamic role's Eligibility section.

      Parameters

      • t: any

        the page's translator

      • role: any

        the role, as the drill-down's answer carries it

      • json: any

        the page's answer, eligibility composed in when asked

      • write: any

        whether the reader may write

      Returns string

      the section as HTML

    • Draws Directory → Roles → New role (#1132) from the answer of GET /admin-api/roles/new: the one create form, its required fields called out as New user's are.

      Parameters

      • ctx: any

        the render context (WebKit.context())

      • json: any

        the answer, with state after a refused create

      Returns string

      the body as HTML

    • Draws a role's Edit fold: its description, display name and member types, posted as describe-role.

      Parameters

      • t: any

        the page's translator

      • one: any

        the configured role

      • listView: any

        the list view the form carries

      Returns string

      the fold as HTML

    • Names a role's member types for people: "people", "applications".

      Parameters

      • types: any

        the role's memberTypes

      • Optionalt: any

        optional; the page's translator

      Returns any

      the words

    • Draws one row of the configured roles table: a column per member kind, the permissions, and a Delete form.

      A console role's people and groups link to Admin roles instead of carrying Remove buttons, and a console role cannot be deleted.

      Parameters

      • one: any

        the configured role

      • listView: any

        the list view the forms carry

      • memberKinds: any

        the kinds of member a role has, as the view carries them (memberKinds)

      • Optionalt: any

        optional; the page's translator. admin.ts calls this without one, and its words are then the default translator's

      Returns string

      the table row as HTML

    • Draws the hidden "back" field the roles page's forms carry.

      Parameters

      • listView: any

        the list view to return to, or nothing

      Returns string

      a hidden input as HTML