-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
159 lines (152 loc) · 4.57 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
ui <- navbarPage(
theme = bs_theme(version = 4, bootswatch = "minty"),
collapsible = TRUE,
windowTitle = "Adesão ao Programa Nacional de Redução das Filas - Planos Estaduais",
title = div(bs_button(icon("bars"), button_type = "primary") %>%
bs_attach_collapse("lateral_filtros"),
tags$text("Programa Nacional de Redução das Filas - Planos Estaduais"),
style = "color: rgb(19,81,180);
font-weight: 600;"),
header = absolutePanel(
fixed = TRUE,
style = "
background-color: rgba(255,255,255,0.2);
z-index: 800;
padding: 0px;
",
top = 20,
left = "1%",
width = "100%",
height = "40px",
tags$style("
position: absolute;
top: 1px;
left: 30px;
"
),
bsplus::bs_collapse(
"lateral_filtros",
show = F,
content = uiOutput(
"barra_ferramentas")
)),
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "geralb.css")
),
tags$style("
.cbcontainer {
display: inline-block;
}
.menorbarra {
font-size: 0.7em;
}
.checkbox {
text-align: right;
display: inline-block;
}
.checkbox input {
float: bottom;
position: relative !important;
margin: 5px !important;
}
.checkbox label {
padding-left: 0px !important;
}
"),
# footer contém o painel de créditos.
footer = absolutePanel(
fixed = TRUE,
style = "
background-color: rgba(255,255,255,0.2);
z-index: 100;
padding: 0px
",
bottom = 2,
right = "3vw",
width = 460,
height = "5vh",
tags$table(
tags$tr(
tags$td(
img(src = "ms_marca.png",
height = "60vh")
),
# tags$td(
# img(src = "https://grupo.pro.br/cgmind-simbolo.png",
# height = "20px",
# style = "
# -webkit-filter: grayscale(20%);
# filter: grayscale(20%)
# ")
# ),
tags$td(
"CGMIND-SAES | ",
span("©", style = "
display: inline-block;
text-align: right;
margin: 0px;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: 'FlipH'
"
),
"CC-BY-NC-SA 4.0",
style = "font-size: 8px;"
),
tags$td(paste("Atualizado em:",data_atualiza),style = "font-size:10px")
)
)
),
tabsetPanel(
id="principal",
#style = "max-height:90vh; overflow-y: auto;",
tabPanel(
"Adesão e Plano inicial",
flowLayout(theme=bslib::bs_theme(version = 4, bootswatch = "minty"),lang="pt-br",
column(width=3,flashCardOutput("total_elab",width="200px",height="143px")),
column(width=3,flashCardOutput("total_cib",width="200px",height="143px"),offset=1),
column(width=3,flashCardOutput("total_plano",width="200px",height="143px"),offset=1),
column(width=3,flashCardOutput("plano_analise",width="200px",height="143px"),offset=2),
column(width=3,flashCardOutput("plano_ajustes",width="200px",height="143px"),offset=2),
column(width=3,flashCardOutput("plano_aprovado",width="200px",height="143px"),offset=2),
column(12,tags$br())),
#column(12,tags$h2("Detalhe dos planos em elaboração")),
fluidRow(column(10,
DT::DTOutput("tabeladrac"),height="auto")
,
column(1,tags$a(bs_button(icon("file-pdf")),target="_blank",href="relatorios/relatorio_adesao.pdf",
download=paste0(system(paste("date -r",propostas[2],'"+%Y-%m-%d"'),intern=T),"-relatorio_de_adesao_pnrf.pdf"))))
),
tabPanel(
"Filas",
fluidRow(
column(6,DT::DTOutput("top_filas")),
column(6, ggiraphOutput("donut_subgrupo"))
),
fluidRow(
column(3,flashCardOutput("reducao_geral",width="200px",height="143px")),
column(6,DT::DTOutput("menores_filas")))
),
tabPanel(
"Planos Estaduais",
fluidRow(
tags$br()
)
),
tabPanel(
"Resultados s/ótica MS",
fluidRow(
# column(6,shinycssloaders::withSpinner(flashCardOutput("total_elab"))
# )
)),
tabPanel(
"Gestão",
fluidRow( fileInput("atualiza","Insira novo relatório SAIPS", buttonLabel = "Navegar...",
placeholder = "Nenhum arquivo selecionado",width="340px")
)
)
)
)