-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuiStart.R
More file actions
60 lines (59 loc) · 4.56 KB
/
uiStart.R
File metadata and controls
60 lines (59 loc) · 4.56 KB
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
# dialog with assisstant to configure connection to PIA and other items
# last update:2016-10-29
uiStart <- function(){
bsModal('startConfig', 'Assistent zur Konfiguration', 'launchDialog', size='large',
bsCollapse(id = "collapse", open = "Willkommen",
bsCollapsePanel("Willkommen (Schritt 1 von 4)",
value="Willkommen",
"Dieser Assistent hilft dir dabei die App einzurichten. Klicke auf 'Weiter', um zum nächsten Schritt zu gelangen!",
br(),br(),
actionButton("p1next", "Weiter"),
style = "primary"),
bsCollapsePanel("Datentresor (Schritt 2 von 4)",
value="PIA",
"Trage hier die Verbindungdaten zu deinem Datentresor und den darin gespeicherten Daten ein. Du findest diese Informationen im Datentresor bei jeder App unter 'Details'.",
br(),br(),
fluidRow(
column(6,
textInput('modalPiaUrl', 'URL:'),
textInput('modalPiaId', 'ID:'),
textInput('modalPiaSecret', 'Secret:')
),
column(6,
uiOutput('currentToken'),
conditionalPanel(
condition = "output.currentToken != ''",
actionButton('disconnectPIA', 'Verbindung zum Datentresor trennen',
icon('chain-broken'))
),
br(),
uiOutput('connectError')
)
),
br(),
actionButton('p2prev', 'Zurück'),
actionButton('p2next', 'Speichern & Weiter'),
style = "info"),
bsCollapsePanel("Email-Konfiguration - Optional (Schritt 3 von 4)",
value = "Email",
"Falls du ein eigenes Emailkonto zum Versenden und Empfangen von Emails verwenden möchtest, kannst du hier die notwendigen Verbindungsdaten eingeben. Falls die Konfiguration leer bleibt, wird der Emailserver von OwnYourData verwendet.",
br(),br(),
textInput('modalMailerAddress', 'Mail Server:'),
numericInput('modalMailerPort', 'Port:', 0),
textInput('modalMailerUser', 'Benutzer:'),
passwordInput('modalMailerPassword', 'Passwort'),
br(),
actionButton('p3prev', 'Zurück'),
actionButton('p3next', 'Speichern & Weiter'),
actionButton('p3skip', 'Überspringen'),
style = "info"),
bsCollapsePanel("Fertig (Schritt 4 von 4)",
value="Fertig",
"Gratulation! Du hast alle notwendigen Einstellungen vorgenommen und kannst nun die App verwenden. Solltest du später eine Änderung vornehmen wollen, findest du alle Konfigurationsmöglichkeiten im Bereich 'Einstellungen'.",
br(),br(),
actionButton('p4prev', 'Zurück'),
actionButton('p4close', 'Fertig'),
style = "info")
)
)
}