-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
120 lines (119 loc) · 4.65 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# ui ####
ui <- dashboardPage(
# Dashboard Header
dashboardHeader(
# Creating Title
title = tagList(
# Title when sidebar is expanded
span(class = "logo-lg", "Meal Planner"),
# Title when sidebar is collapsed
'MP'
)
),
# Dashboard Sidebar
dashboardSidebar(
sidebarMenu(id = 'tabs',
menuItem('Planner', tabName = 'planner', icon = icon('bullseye')),
menuItem('Shopping List', tabName = 'shoppinglist', icon = icon('bullseye')),
menuItem('Recipes', tabName = 'recipes', icon = icon('bullseye')),
menuItem('Add a Recipe', tabName = 'addarecipe', icon = icon('bullseye'))
)
),
# Dashboard Body
dashboardBody(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "treasury.css?version=1")
),
tabItems(
# Planner
tabItem(
tabName = 'planner',
column(
width = 12,
fluidRow(
box(
id = 'planner',
width = 12,
title = 'Weekly Meal Planner',
uiOutput('sunMealPlan'), uiOutput('monMealPlan'), uiOutput('tueMealPlan'), uiOutput('wedMealPlan'), uiOutput('thuMealPlan'), uiOutput('friMealPlan'), uiOutput('satMealPlan'),
column(
width = 12,
fluidRow(
useSweetAlert(),
column(
width = 4,
fluidRow(
actionButton(
inputId = 'savePlanAction',
label = 'Save',
width = '100%'
)
)
),
column(
width = 4,
fluidRow(
actionButton(
inputId = 'clearPlanAction',
label = 'Clear',
width = '100%'
)
)
),
column(
width = 4,
fluidRow(
actionButton(
inputId = 'randomPlanAction',
label = 'Random',
width = '100%'
)
)
)
)
)
)
)
)
),
# Shopping List ####
tabItem(
tabName = 'shoppinglist',
column(
width = 12,
fluidRow(
column(
width = 6,
actionButton(
inputId = 'importMealPlan',
label = 'Import Current Meal Plan',
width = '100%'
)
),
column(
width = 6,
actionButton(
inputId = 'saveShoppingList',
label = 'Save Shopping List',
width = '100%'
)
)
),
fluidRow(
DTOutput('shoppingListDT')
)
)
),
# Recipes ####
tabItem(
tabName = 'recipes',
column(
width = 12,
fluidRow(
DTOutput('recipesDT')
)
)
)
)
)
)