Skip to contents

Creates the modal dialog for the multi-step artwork submission wizard. Step 1 contains required fields (name, collection, files). Step 2 contains optional fields (additional variants, artwork story). Respects demo mode by disabling collection creation and submission buttons.

Usage

new_art_modal_ui(id)

Arguments

id

Character scalar. Shiny namespace ID for the module. Used by [shiny::NS()] to create unique element IDs and prevent conflicts with other modules or the parent app. Must match between UI and server calls.

Value

A [shiny::modalDialog()] containing the two-step wizard with file upload inputs, collection picker, and submit/cancel buttons.

See also

* [modUploadUI()] for main module UI * [modUploadServer()] for server logic that displays this modal * [validator_step_1()] and [validator_step_2()] for input validation

Other ui-builders: buildAboutArtUI()

Examples

if (FALSE) { # \dontrun{
# Typically called internally by modUploadServer
# when user clicks the Add button
observeEvent(input$btn_add, {
  showModal(new_art_modal_ui("upload"))
})
} # }