diff --git a/admin/static/js/app.js b/admin/static/js/app.js index 72da807d..5ac12d09 100644 --- a/admin/static/js/app.js +++ b/admin/static/js/app.js @@ -94,6 +94,9 @@ angular.module("FICApp") .factory("Teams", function($resource) { return $resource("/api/teams.json") }) + .factory("TeamHistory", function($resource) { + return $resource("/api/teams/:teamId/history.json", { teamId: '@id' }) + }) .factory("TeamStats", function($resource) { return $resource("/api/teams/:teamId/stats.json", { teamId: '@id' }) }) @@ -678,6 +681,9 @@ angular.module("FICApp") $location.url("/teams/" + $scope.team.id + "/stats"); } }) + .controller("TeamHistoryController", function($scope, TeamHistory, $routeParams) { + $scope.history = TeamHistory.query({ teamId: $routeParams.teamId }); + }) .controller("TeamStatsController", function($scope, TeamStats, $routeParams) { $scope.teamstats = TeamStats.get({ teamId: $routeParams.teamId }); $scope.teamstats.$promise.then(function(res) { diff --git a/admin/static/views/exercice.html b/admin/static/views/exercice.html index 201a0c8d..f61516ac 100644 --- a/admin/static/views/exercice.html +++ b/admin/static/views/exercice.html @@ -83,7 +83,7 @@
-
+
diff --git a/admin/static/views/team-edit.html b/admin/static/views/team-edit.html index 50f22d48..078cdc43 100644 --- a/admin/static/views/team-edit.html +++ b/admin/static/views/team-edit.html @@ -7,6 +7,8 @@ +
+
@@ -38,7 +40,35 @@
-
+ +
+
+
+ Membres + + + Add member +
+
+
+ This team has no member! +
+
+
+ +
+ +
+
+ +
+
+
+
+ + +
@@ -57,30 +87,25 @@
-
-
-
-
- Membres - - - Add member -
-
-
- This team has no member! -
-
-
- -
- -
-
- -
-
-
-
-
+
+ +
+ + + + + + + +
{{ row.time | date:"mediumTime" }}
{{ row.kind }}
+ + {{ row.primary_title }} + + {{ row.primary }} + + : {{ row.secondary_title }} + + (coeff x{{ row.secondary }}) + : {{ row.secondary }} +
+