mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
- Added CSV export functionality with escape handling. - Implemented JSON export functionality. - Created utility functions for retrieving column labels and row values. - Established a filtering system with state management and filter application. - Refactored sorting logic into dedicated modules for better maintainability. - Deprecated old filtering and sorting files, redirecting to new module structure. - Introduced form field builders and validation utilities, also refactored into single-function files.
26 lines
742 B
Lua
26 lines
742 B
Lua
-- User create dialog
|
|
-- Single function module for admin user dialogs
|
|
|
|
---@class RenderCreate
|
|
local M = {}
|
|
|
|
---Render create user dialog
|
|
---@return UIComponent
|
|
function M.render_create()
|
|
return {
|
|
type = "dialog",
|
|
props = {
|
|
title = "Create User",
|
|
size = "medium"
|
|
},
|
|
children = {
|
|
{ type = "text_field", props = { label = "Username", name = "username", required = true } },
|
|
{ type = "text_field", props = { label = "Email", name = "email", type = "email", required = true } },
|
|
{ type = "password_field", props = { label = "Password", name = "password", required = true } },
|
|
{ type = "select", props = { label = "Role", name = "role", options = {"user", "admin"} } }
|
|
}
|
|
}
|
|
end
|
|
|
|
return M
|