700c86a24c
- Added ListView, DetailView, UpdateForm and connection to agenda item for MotionBlock. - Added slide and projection default. - Added custom manager for motion blocks. - Enabled current list of speakers slide and overlay for motion block.
33 lines
781 B
JavaScript
33 lines
781 B
JavaScript
(function () {
|
|
|
|
'use strict';
|
|
|
|
angular.module('OpenSlidesApp.motions.motionBlockProjector', [])
|
|
|
|
|
|
// MotionBlock projector elements
|
|
|
|
.config([
|
|
'slidesProvider',
|
|
function(slidesProvider) {
|
|
slidesProvider.registerSlide('motions/motion-block', {
|
|
template: 'static/templates/motions/slide_motion_block.html',
|
|
});
|
|
}
|
|
])
|
|
|
|
.controller('SlideMotionBlockCtrl', [
|
|
'$scope',
|
|
'Motion',
|
|
'MotionBlock',
|
|
function($scope, Motion, MotionBlock) {
|
|
// 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;
|
|
MotionBlock.bindOne(id, $scope, 'motionBlock');
|
|
}
|
|
]);
|
|
|
|
}());
|