-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
93 lines (78 loc) · 3.05 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
require("shiny")
require("png")
require("shinydashboard")
require("dplyr")
require("RPostgreSQL")
require("dplyr")
require("data.table")
require("jsonlite")
# Define UI for application that draws a histogram
header <- dashboardHeader(title = "Strategy Bulk Upload"
)
body <- dashboardBody(
fluidRow(
column(width = 9,
box(width = NULL, height = 570,solidHeader = TRUE,
imageOutput("image1")),
box(title = "Attributes Not in Global Taxonomy", width = NULL, height = NULL,
verbatimTextOutput("att_zeros")),
box(title = "Values Not in Global Taxonomy", width = NULL, height = NULL,
verbatimTextOutput("val_zeros"))
),
column(width = 3,
box(width = NULL, status = "warning",
fileInput("file1", "Choose CSV File",
multiple = FALSE,
accept = c("text/csv",
"text/comma-separated-values,text/plain",
".csv")),
p(class = "text-muted",
paste("Note: Input file assumes all attributes and values",
"exist in the Global Taxonomy. If attributes/values are not,",
"they need to be manually entered.")),
p(class = "text-muted",
paste("If 0 attributes/values are returned that you know exist in the",
"Global Taxonomy, this is likely a database issue. Please resolve",
"with Dev Team immediately.")
),
actionButton("run", label = "Run", style="color: #fff;background-color: #FF8521;font-style: bold")
),
box(width = NULL, status = "warning",
selectInput("dataset", "Choose dataset for download:",
choices = c(
"IDs",
"JSON"
),
selected = "JSON"
),
downloadButton("downloadData", "Download"),
p(class = "text-muted", br(),
paste("IDs is the strategy mapping dataset containing all attribute and value IDs.")
),
p(class = "text-muted",
paste("JSON File is the final JSON code used for bulk upload, however, **FIRST ROW MUST BE DELETED FIRST**.")
)
)
)
),
tags$head(tags$style(HTML('
.main-header .logo {
font-family: "Verdana";
font-weight: bold;
font-size: 14px;
}
')))
)
ui= dashboardPage(
header,
dashboardSidebar(disable = TRUE),
body,skin = "green"
)