Documentation
¶
Overview ¶
Package pages provides ForgeUI-based page templates for the organization plugin dashboard.
Index ¶
- func BackLink(href, text string) g.Node
- func Card(children ...g.Node) g.Node
- func CardWithHeader(headerTitle string, headerActions []g.Node, body ...g.Node) g.Node
- func ConfirmButton(formAction, method, text, confirmMessage, colorClass string, icon g.Node) g.Node
- func ConfirmDialog(message, confirmButtonText, xShowVar, onConfirm string) g.Node
- func CreateOrganizationPage(currentApp *app.App, basePath string, errorMsg string) g.Node
- func CreateTeamPage(currentApp *app.App, orgID, basePath string) g.Node
- func DangerButton(onclick, text string, icon g.Node) g.Node
- func DataTable(headers []string, rows []g.Node) g.Node
- func EditTeamPage(currentApp *app.App, orgID, teamID, basePath string) g.Node
- func EmptyState(icon g.Node, title, description string) g.Node
- func ErrorMessage(xShowCondition string) g.Node
- func FormField(id, label, fieldType, name, placeholder string, required bool, helpText string) g.Node
- func FormatDate(t time.Time) string
- func FormatDateTime(t time.Time) string
- func FormatTimeAgo(t time.Time) string
- func IconButton(href string, icon g.Node, title, colorClass string) g.Node
- func InvitationsPage(currentApp *app.App, orgID, basePath string) g.Node
- func LoadingSpinner() g.Node
- func MembersPage(currentApp *app.App, orgID, basePath string) g.Node
- func OrganizationDetailPage(currentApp *app.App, orgID, basePath string) g.Node
- func OrganizationSettingsPage(currentApp *app.App, basePath string) g.Node
- func OrganizationsListPage(currentApp *app.App, basePath string) g.Node
- func PageHeader(title, description string, actions ...g.Node) g.Node
- func Pagination(currentPage, totalPages int, baseURL string) g.Node
- func PrimaryButton(href, text string, icon g.Node) g.Node
- func QuickLinkCard(title, description, href string, icon g.Node) g.Node
- func RoleBadge(role string) g.Node
- func RoleTemplateFormPage(currentApp *app.App, templateID, basePath string, isEdit bool) g.Node
- func RolesPage(currentApp *app.App, orgID, basePath string) g.Node
- func SearchInput(placeholder, currentValue, formAction string) g.Node
- func SecondaryButton(href, text string, icon g.Node) g.Node
- func SelectField(id, label, name string, required bool, options []SelectOption, helpText string) g.Node
- func StatsCard(label, xDataValue, iconColor string) g.Node
- func StatusBadge(status string) g.Node
- func StringPtr(s string) *string
- func TableCell(content g.Node) g.Node
- func TableCellActions(actions ...g.Node) g.Node
- func TableCellSecondary(content g.Node) g.Node
- func TableRow(cells ...g.Node) g.Node
- func TeamsPage(currentApp *app.App, orgID, basePath string) g.Node
- func TextareaField(id, label, name, placeholder string, rows int, required bool, helpText string) g.Node
- func UpdateOrganizationPage(currentApp *app.App, orgID, basePath string) g.Node
- func XIDToString(id xid.ID) string
- type SelectOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CardWithHeader ¶
CardWithHeader creates a card with a header section.
func ConfirmButton ¶
ConfirmButton creates a button that requires confirmation.
func ConfirmDialog ¶
ConfirmDialog renders a confirmation dialog using Alpine.js.
func CreateOrganizationPage ¶
CreateOrganizationPage renders the create organization form page.
func CreateTeamPage ¶
CreateTeamPage renders the create team form page.
func DangerButton ¶
DangerButton creates a danger/destructive action button using ForgeUI.
func EditTeamPage ¶
EditTeamPage renders the edit team form page.
func EmptyState ¶
EmptyState renders an empty state message using ForgeUI.
func ErrorMessage ¶
ErrorMessage renders an error message.
func FormField ¶
func FormField(id, label, fieldType, name, placeholder string, required bool, helpText string) g.Node
FormField renders a form field with label and input using ForgeUI.
func FormatDate ¶
FormatDate formats a time.Time to a readable string.
func FormatDateTime ¶
FormatDateTime formats a time.Time to a readable string with time.
func FormatTimeAgo ¶
FormatTimeAgo returns a human-readable "time ago" string.
func IconButton ¶
IconButton creates a small icon button.
func InvitationsPage ¶
InvitationsPage renders the organization invitations management page.
func MembersPage ¶
MembersPage renders the organization members management page.
func OrganizationDetailPage ¶
OrganizationDetailPage renders the organization detail/overview page.
func OrganizationSettingsPage ¶
OrganizationSettingsPage renders the organization settings page with ForgeUI components.
func OrganizationsListPage ¶
OrganizationsListPage renders the organizations list page with dynamic data loading.
func PageHeader ¶
PageHeader renders a standard page header with title, description, and optional actions.
func Pagination ¶
Pagination renders pagination controls.
func PrimaryButton ¶
PrimaryButton creates a primary action button using ForgeUI.
func QuickLinkCard ¶
QuickLinkCard renders a quick access card.
func RoleTemplateFormPage ¶
RoleTemplateFormPage renders the create/edit role template form page.
func SearchInput ¶
SearchInput renders a search input field using ForgeUI.
func SecondaryButton ¶
SecondaryButton creates a secondary action button using ForgeUI.
func SelectField ¶
func SelectField(id, label, name string, required bool, options []SelectOption, helpText string) g.Node
SelectField renders a select dropdown field.
func StatusBadge ¶
StatusBadge renders a badge for status (active, pending, etc.)
func TableCellActions ¶
TableCellActions creates a table cell with action buttons.
func TableCellSecondary ¶
TableCellSecondary creates a secondary table cell with muted text.
func TextareaField ¶
func TextareaField(id, label, name, placeholder string, rows int, required bool, helpText string) g.Node
TextareaField renders a textarea form field.
func UpdateOrganizationPage ¶
UpdateOrganizationPage renders the update organization form page.
Types ¶
type SelectOption ¶
SelectOption represents an option for a select field.