-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuiStatusItemConfig.R
66 lines (66 loc) · 3.84 KB
/
uiStatusItemConfig.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
uiStatusItemConfig <- function(){
tabPanel(icon('wrench'),
value = 'config',
br(),
fluidRow(
column(3,
selectInput('extStatusList',
'Auswertungen:',
statTabUiList,
multiple=TRUE,
selectize=FALSE),
htmlOutput('extStatusItemDeleteError',
style='color:red'),
actionButton('delExtStatusList', 'Entfernen',
icon('trash')),
actionButton('loadExtStatusList', 'Download',
icon('download'))),
column(8,
textInput('extStatusItemName',
'Name:'),
tags$label('Ansicht (ui.R):'),
br(),
tags$textarea(id='extStatusItemUi',
rows=5, cols=80),
br(),
tags$label('Logik (server.R):'),
br(),
tags$textarea(id='extStatusItemLogic',
rows=5, cols=80),
br(),
htmlOutput('extStatusItemError',
style='color:red'),
actionButton('addExtStatusItem',
'Hinzufügen', icon('plus')),
actionButton('updateExtStatusItem',
'Aktualisieren', icon('edit'))
)
),
bsModal('loadExtStatusListDialog',
'Erweiterungen laden',
'loadExtStatusList',
size = 'small',
selectInput('extStatusView',
'Quelle:',
c('SAM'='sam', 'Github'='github'),
selectize=FALSE),
conditionalPanel(
condition = 'input.extStatusView == \"sam\"',
selectInput('extStatusListSam',
'Auswahl:',
c('Visual #1', 'Visual #2'),
multiple=TRUE, selectize=FALSE),
actionButton('addExtStatusItemSam', 'Hinzufügen', icon('plus'))),
conditionalPanel(
condition = 'input.extStatusView == \"github\"',
textInput('extStatusItemGithub',
'Pfad:',
value = 'https://github.com/OwnYourData/extensions/tree/master/sample'),
htmlOutput('extStatusItemGithubError', style='color:red'),
htmlOutput('extStatusItemGithubSuccess', style='color:green'),
actionButton('addExtStatusItemGithub', 'Hinzufügen', icon('plus')),
helpText('Im angegebenen Verzeichnis werden die Dateien oyd.json, ext_ui.R und ext_server.R ausgelesen.'))
),
uiOutput('loadExtStatusListDialogCloseScript')
)
}