-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest_ui.R
49 lines (47 loc) · 2.33 KB
/
manifest_ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
manifest_panel <- div(
style = "min-width: 240px; max-width: 240px;",
wellPanel( # sidebar
# conditionalPanel(condition = "input.mtabs == 'Passed QC'",
# radioButtons("dataSource", "Data Source", choices = c("QC", "Data"), selected = "QC"),
# actionButton("getPassedSamples", "Load Passed Samples")),
# textOutput("debug"),
conditionalPanel(condition = "input.mtabs == 'Manifest'",
fileInput("template", "Upload Manifest Template", multiple = FALSE,
accept = c(".csv", ".xls", ".xlsx", "text/csv", "text/comma-separated-values,text/plain", "application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")),
# conditionalPanel(condition = "output.templateUploaded",
# numericInput("tmp_skip", "Skip lines:", 0, min = 0),
# p("Align Data and Manifest Columns"),
# splitLayout(
# selectInput("m_id_col_1", "Manifest Col", choices = NULL),
# selectInput("m_id_col_2", "Data Col", choices = NULL)
# )),
conditionalPanel(condition = "output.templateUploaded",
numericInput("tmp_skip", "Skip lines:", 0, min = 0)),
),
uiOutput("manifest_controls")
))
manifest_tabs <- div(
style="display:inline-block; min-width: 400px; padding-left:25px; padding-top:10px",
tabsetPanel(
id = "mtabs", type = "pills",
tabPanel( "Imported Data", br(), DT::dataTableOutput("passedQC") ),
tabPanel( "Manifest", br(), DT::dataTableOutput("manifestTable")),
tabPanel( "Plate Layout", br(),
div(DT::dataTableOutput("layoutKey"), style = "font-size:80%"),
DT::dataTableOutput("plateLayout")),
tabPanel( "Layout Facets", uiOutput("facet_UI"))
))
manifest_ui <- tabPanel(
titlePanel("Plate Samples"),
splitLayout(
cellWidths = c("40%", "20%", "20%", "20%"),
titlePanel("Plating & Manifest"),
radioButtons("m_disp", "Display", selected = "head", inline = TRUE, choices = c(Head = "head", All = "all")),
downloadButton("downloadManifest", "Get Manifest"),
downloadButton("manifestReport", "Get Manifest Report"),
tags$style(type = 'text/css', "#m_disp { margin-top: 15px; }"),
tags$style(type = 'text/css', "#downloadManifest { margin-top: 20px; }"),
tags$style(type = 'text/css', "#manifestReport { margin-top: 20px; }")
),
flowLayout(manifest_panel, manifest_tabs))