diff --git a/angular_app/event-detail.html b/angular_app/event-detail.html index 20b3f34..b55b3df 100644 --- a/angular_app/event-detail.html +++ b/angular_app/event-detail.html @@ -1,24 +1,24 @@ -
+
- Title - + Title +
- Short description - + Short description +
- Begin time - + Begin time +
- End time - + End time +
diff --git a/angular_app/events-list.html b/angular_app/events-list.html index f8c9f19..fade54b 100644 --- a/angular_app/events-list.html +++ b/angular_app/events-list.html @@ -2,12 +2,19 @@
- Search: - Sort by: - +
+
+ + +
+
+ + +
+
diff --git a/angular_app/js/app.js b/angular_app/js/app.js index 17cbc81..ffb8f39 100644 --- a/angular_app/js/app.js +++ b/angular_app/js/app.js @@ -15,6 +15,12 @@ */ +String.prototype.getTime = function() { + var ms = Date.parse(this); + return new Date(ms); +}; + + /* Register our fantastic app. */ var eventManApp = angular.module('eventManApp', [ 'ngRoute', diff --git a/angular_app/js/services.js b/angular_app/js/services.js index 84e995f..e9b4c7b 100644 --- a/angular_app/js/services.js +++ b/angular_app/js/services.js @@ -14,6 +14,18 @@ eventManServices.factory('Event', ['$resource', return angular.fromJson(data).events; } }, + get: {method: 'GET', + transformResponse: function(data, headers) { + data = angular.fromJson(data); + if (data && data['begin-datetime']) { + data['begin-datetime'] = data['begin-datetime'].getTime(); + } + if (data && data['end-datetime']) { + data['end-datetime'] = data['end-datetime'].getTime(); + } + return data; + } + }, update: {method: 'PUT'} }); }] diff --git a/angular_app/person-detail.html b/angular_app/person-detail.html index c3f422f..fb8e30b 100644 --- a/angular_app/person-detail.html +++ b/angular_app/person-detail.html @@ -1,19 +1,19 @@ -
+
- Name - + Name +
- Surname - + Surname +
- Email - + Email +
diff --git a/angular_app/persons-list.html b/angular_app/persons-list.html index 1585087..4c41ac2 100644 --- a/angular_app/persons-list.html +++ b/angular_app/persons-list.html @@ -2,12 +2,19 @@
- Search: - Sort by: - + +
+ + +
+
+ + +
+