2015-10-21 22:44:07 +02:00
|
|
|
(function () {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular.module('OpenSlidesApp.users.projector', ['OpenSlidesApp.users'])
|
|
|
|
|
2016-01-17 21:16:04 +01:00
|
|
|
.config([
|
|
|
|
'slidesProvider',
|
|
|
|
function(slidesProvider) {
|
|
|
|
slidesProvider.registerSlide('users/user', {
|
|
|
|
template: 'static/templates/users/slide_user.html',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
])
|
2015-10-21 22:44:07 +02:00
|
|
|
|
2016-01-17 21:16:04 +01:00
|
|
|
.controller('SlideUserCtrl', [
|
|
|
|
'$scope',
|
|
|
|
'User',
|
|
|
|
function($scope, User) {
|
|
|
|
// Attention! Each object that is used here has to be dealt on server side.
|
|
|
|
// Add it to the coresponding get_requirements method of the ProjectorElement
|
|
|
|
// class.
|
|
|
|
var id = $scope.element.id;
|
|
|
|
User.bindOne(id, $scope, 'user');
|
|
|
|
}
|
|
|
|
]);
|
2015-10-21 22:44:07 +02:00
|
|
|
|
|
|
|
}());
|