diff --git a/app.js b/app.js index e2faed7..b9dc0ed 100644 --- a/app.js +++ b/app.js @@ -183,10 +183,18 @@ var app = new Vue({ deep: true } }, + + computed: { + groupedTermine() { + return _.groupBy(this.shifts, e => e.Datum); + } + }, + methods: { updateArten(value){ this.selectedRule.Arten = value; }, + updateTitel(value){ this.selectedRule.Titel = value; }, diff --git a/index.html b/index.html index 5bd859e..d0afa39 100644 --- a/index.html +++ b/index.html @@ -37,15 +37,15 @@
-
-
-

Termine

+
+
+

Termine

@@ -59,14 +59,14 @@
- {{s.FormattedDatum}} + {{s.FormattedDatum}} {{s.Wochentag}} {{s.VEventTitle}} - {{ s.Ort }} + location_on{{ s.Ort }} {{s.Beginn}} - {{s.Ende}} @@ -254,6 +254,7 @@ style="display:none;"> + diff --git a/js/shift.js b/js/shift.js index cd9fd2b..c24e024 100644 --- a/js/shift.js +++ b/js/shift.js @@ -265,7 +265,9 @@ Shift.thaw = function (jsonShift) { art: jsonShift._kind, name: jsonShift._name, datum: begin, - beschreibung: jsonShift._description + beschreibung: jsonShift._description, + ort: jsonShift._ort, + }); shift.id = jsonShift.id; shift.Dauer = moment.duration(jsonShift._duration);