diff --git a/server/routing.js b/server/routing.js index 7383295..ee9a559 100755 --- a/server/routing.js +++ b/server/routing.js @@ -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, diff --git a/views/overview.pug b/views/overviews/overview_dbrd.pug similarity index 96% rename from views/overview.pug rename to views/overviews/overview_dbrd.pug index 4f4d825..f8c2252 100755 --- a/views/overview.pug +++ b/views/overviews/overview_dbrd.pug @@ -1,4 +1,4 @@ -extends layout +extends ../layout block content main(role='main') diff --git a/views/overviews/overview_waip.pug b/views/overviews/overview_waip.pug new file mode 100755 index 0000000..f8c2252 --- /dev/null +++ b/views/overviews/overview_waip.pug @@ -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