/
ui_info.R
110 lines (110 loc) · 2.86 KB
/
ui_info.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
fluidPage(
style = "max-width:800px",
fluidRow(
column(
width = 8,
radioButtons(
"info_mode", NULL,
c("增加/Add" = "add", "修改/Modify" = "modify", "删除/Delete" = "delete"),
inline = TRUE)
),
column(
width = 4,
conditionalPanel(
"input.info_mode != 'add'",
selectizeInput(
"info_target",
NULL,
choices = NULL
)
)
)
),
conditionalPanel(
"input.info_mode != 'delete'",
bsPanel(
theme = "default",
header = "Info Panel",
fluidRow(
column(
width = 6,
selectizeInput("info_class", "类别/Class",
choices = NULL,
options = list(create = TRUE))
),
column(
width = 6,
selectizeInput("info_class_en", "英文类别/Class_EN",
choices = NULL,
options = list(create = TRUE))
)
),
fluidRow(
column(
width = 6,
textInput("info_name", "名称/Name")
),
column(
width = 6,
textInput("info_name_en", "英文名称/Name_EN")
)
),
fluidRow(
column(
width = 6,
selectizeInput("info_area", "区域/Area",
choices = NULL,
options = list(create = TRUE))
),
column(
width = 6,
selectizeInput("info_country", "国家/Country",
choices = NULL,
options = list(create = TRUE))
)
),
fluidRow(
column(
width = 6,
numericInput("info_lng", "经度/LNG", 0, -180, 180, 0.01)
),
column(
width = 6,
numericInput("info_lat", "纬度/LAT", 0, -180, 180, 0.01)
)
),
fluidRow(
column(
width = 12,
tags$label(
class = "control-label", `for` = "info_area",
style = "display:block",
"地址/Address"
),
tags$style(type = "text/css", "textarea {width:100%}"),
tags$textarea(id = 'info_address',
placeholder = 'Type your address here', rows = 2, width = "100%")
)
),
fluidRow(
column(
width = 12,
tags$label(
class = "control-label", `for` = "info_website",
style = "display:block",
"网址/Website"
),
tags$style(type = "text/css", "textarea {width:100%; max-width:800px;}"),
tags$textarea(id = 'info_website',
placeholder = 'Type your website here', rows = 2, width = "100%")
)
)
)
),
fluidRow(
column(
width = 12,
actionButton("info_submit", "提交/Submit")
)
)
)