update Di 28. Apr 14:01:01 CEST 2020
This commit is contained in:
parent
404261ca71
commit
e0449d94ea
@ -155,7 +155,7 @@ module.exports = function(app, sql, uuidv4, app_cfg, passport, auth, waip, udp)
|
||||
// Dasboard-Uebersicht
|
||||
app.get('/dbrd', function(req, res, next) {
|
||||
sql.db_get_active_waips(function(data) {
|
||||
res.render('overview', {
|
||||
res.render('overviews/overview_dbrd', {
|
||||
public: app_cfg.public,
|
||||
title: 'Dashboard',
|
||||
user: req.user,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
extends layout
|
||||
extends ../layout
|
||||
|
||||
block content
|
||||
main(role='main')
|
||||
27
views/overviews/overview_waip.pug
Executable file
27
views/overviews/overview_waip.pug
Executable file
@ -0,0 +1,27 @@
|
||||
extends ../layout
|
||||
|
||||
block content
|
||||
main(role='main')
|
||||
.container
|
||||
.row
|
||||
each val in dataSet
|
||||
.col-12.d-flex.align-self-stretch
|
||||
.card.border-dark.mb-3.w-100
|
||||
.card-header
|
||||
case val.einsatzart
|
||||
when 'Brandeinsatz'
|
||||
h5.font-weight-bold.text-danger.ion-md-flame= ' ' + val.einsatzart + ' - ' + val.stichwort
|
||||
when 'Hilfeleistungseinsatz'
|
||||
h5.font-weight-bold.text-info.ion-md-construct= ' ' + val.einsatzart + ' - ' + val.stichwort
|
||||
when 'Rettungseinsatz'
|
||||
h5.font-weight-bold.text-warning.ion-md-medkit= ' ' + val.einsatzart + ' - ' + val.stichwort
|
||||
when 'Krankentransport'
|
||||
h5.font-weight-bold.text-success.ion-md-medical= ' ' + val.einsatzart + ' - ' + val.stichwort
|
||||
default
|
||||
h5.font-weight-bold.ion-md-information-circle= ' ' + val.einsatzart + ' - ' + val.stichwort
|
||||
.card-body.d-flex.justify-content-between
|
||||
if val.ortsteil
|
||||
a= val.ort + ', ' + val.ortsteil
|
||||
else
|
||||
p= val.ort
|
||||
a.btn.btn-primary.btn-lg.mx-2.ion-md-arrow-round-forward(href='/dbrd/' + val.uuid, role='button') Dashboard aufrufen
|
||||
Loading…
Reference in New Issue
Block a user