update Do 6. Feb 15:01:01 CET 2020
This commit is contained in:
parent
b496f5c47a
commit
ec2b1c3a71
@ -30,6 +30,18 @@ var map = L.map('map', {
|
||||
}).addTo(map);
|
||||
|
||||
|
||||
/* ########################### */
|
||||
/* ####### Funktionen ######## */
|
||||
/* ########################### */
|
||||
|
||||
|
||||
// Split timestamp into [ Y, M, D, h, m, s ]
|
||||
console.log(einsatzdaten);
|
||||
var t1 = eisnatzdaten.zeitstempel.split(/[- :]/);
|
||||
|
||||
var start = new Date(t1[0], t1[1] - 1, t1[2], t1[3], t1[4], t1[5]);
|
||||
|
||||
|
||||
|
||||
|
||||
/* ########################### */
|
||||
|
||||
@ -1,38 +1,57 @@
|
||||
.row.no-gutters
|
||||
.col-6
|
||||
p.text-muted#alarmierungzeit 01.01.2020
|
||||
|
||||
a #{' ' + start}
|
||||
p.text-muted 01.01.2020
|
||||
.col-6
|
||||
p.text-muted.text-right 11:22:33
|
||||
.col-10
|
||||
case einsatzdaten.einsatzart
|
||||
when 'Brandeinsatz'
|
||||
#einsatz_art.align-items-center.font-weight-bold.rounded.bg-danger.p-3.mr-2
|
||||
#einsatz_stichwort.ion-md-flame #{' ' + einsatzdaten.stichwort}
|
||||
.align-items-center.font-weight-bold.rounded.bg-danger.p-3.mr-2
|
||||
.ion-md-flame #{' ' + einsatzdaten.stichwort}
|
||||
when 'Hilfeleistungseinsatz'
|
||||
#einsatz_art.align-items-center.font-weight-bold.rounded.bg-info.p-3.mr-2
|
||||
#einsatz_stichwort.ion-md-construct #{' ' + einsatzdaten.stichwort}
|
||||
.align-items-center.font-weight-bold.rounded.bg-info.p-3.mr-2
|
||||
.ion-md-construct #{' ' + einsatzdaten.stichwort}
|
||||
when 'Rettungseinsatz'
|
||||
#einsatz_art.align-items-center.font-weight-bold.rounded.bg-warning.p-3.mr-2
|
||||
#einsatz_stichwort.ion-md-medkit #{' ' + einsatzdaten.stichwort}
|
||||
.align-items-center.font-weight-bold.rounded.bg-warning.p-3.mr-2
|
||||
.ion-md-medkit #{' ' + einsatzdaten.stichwort}
|
||||
when 'Krankentransport'
|
||||
#einsatz_art.align-items-center.font-weight-bold.rounded.bg-success.p-3.mr-2
|
||||
#einsatz_stichwort.ion-md-medical #{' ' + einsatzdaten.stichwort}
|
||||
.align-items-center.font-weight-bold.rounded.bg-success.p-3.mr-2
|
||||
.ion-md-medical #{' ' + einsatzdaten.stichwort}
|
||||
when 'Sonstiges'
|
||||
#einsatz_art.align-items-center.font-weight-bold.rounded.bg-secondary.p-3.mr-2
|
||||
#einsatz_stichwort.ion-md-information-circle #{' ' + einsatzdaten.stichwort}
|
||||
.align-items-center.font-weight-bold.rounded.bg-secondary.p-3.mr-2
|
||||
.ion-md-information-circle #{' ' + einsatzdaten.stichwort}
|
||||
default
|
||||
#einsatz_art.align-items-center.font-weight-bold.rounded.bg-light.p-3.mr-2
|
||||
#einsatz_stichwort.ion-md-apps -Stichwort-
|
||||
.align-items-center.font-weight-bold.rounded.bg-light.p-3.mr-2
|
||||
.ion-md-apps -Stichwort-
|
||||
.col-2
|
||||
.align-items-center.justify-content-center.rounded.bg-light.text-info.p-3
|
||||
#sondersignal.ion-md-apps.text-center
|
||||
case einsatzdaten.sondersignal
|
||||
when 1
|
||||
.ion-md-notifications.text-center
|
||||
when 0
|
||||
.ion-md-notifications-off.text-center
|
||||
default
|
||||
.ion-md-apps.text-center
|
||||
.col-12
|
||||
div.border-top.m-3
|
||||
.card.mt-2
|
||||
.card-body.p-0
|
||||
#map.rounded(style={height: '20em'})
|
||||
//.card-body.p-0
|
||||
ul#ortsdaten.list-group.list-group-flush
|
||||
.card-body.p-0
|
||||
ul.list-group.list-group-flush
|
||||
if einsatzdaten.objekt
|
||||
li.list-group-item #{einsatzdaten.objekt}
|
||||
if einsatzdaten.ort
|
||||
li.list-group-item #{einsatzdaten.ort}
|
||||
if einsatzdaten.ortsteil
|
||||
li.list-group-item #{einsatzdaten.ortsteil}
|
||||
if einsatzdaten.strasse
|
||||
li.list-group-item #{einsatzdaten.strasse}
|
||||
if einsatzdaten.besonderheiten
|
||||
li.list-group-item.text-warning #{einsatzdaten.besonderheiten}
|
||||
unless einsatzdaten
|
||||
li.list-group-item -Objekt-
|
||||
li.list-group-item -Ort-
|
||||
li.list-group-item -Orststeil-
|
||||
@ -45,6 +64,17 @@
|
||||
h5.text-danger.text-center Alarmierte Einsatzmittel
|
||||
.card-body.p-1
|
||||
div.d-flex.flex-wrap.justify-content-between.align-items-center
|
||||
each val in einsatzdaten.einsatzmittel
|
||||
div.flex-fill.rounded.bg-light.p-2.m-1
|
||||
div.d-flex.justify-content-between
|
||||
div.pr-2 #{val.einsatzmittel}
|
||||
unless val.status == null
|
||||
div.p-2.badge.badge-success 2
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
div.flex-fill.rounded.bg-light.p-2.m-1
|
||||
div.d-flex.justify-content-between
|
||||
div.pr-2 FL CB 00/00-00
|
||||
|
||||
Loading…
Reference in New Issue
Block a user