2015-11-29 22:25:01 +01:00
|
|
|
|
<div class="header">
|
|
|
|
|
<div class="title">
|
|
|
|
|
<div class="submenu">
|
|
|
|
|
<a ui-sref="agenda.item.list" class="btn btn-sm btn-default">
|
|
|
|
|
<i class="fa fa-angle-double-left fa-lg"></i>
|
|
|
|
|
<translate>Back to agenda</translate>
|
|
|
|
|
</a>
|
2015-12-09 20:02:08 +01:00
|
|
|
|
<!-- project list of speakers -->
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<a os-perms="core.can_manage_projector" class="btn btn-default btn-sm"
|
2015-12-09 20:02:08 +01:00
|
|
|
|
ng-class="{ 'btn-primary': item.isListOfSpeakersProjected() }"
|
|
|
|
|
ng-click="item.projectListOfSpeakers()">
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<i class="fa fa-video-camera"></i>
|
|
|
|
|
<translate>List of speakers</translate>
|
|
|
|
|
</a>
|
|
|
|
|
<!-- project -->
|
|
|
|
|
<a os-perms="core.can_manage_projector" class="btn btn-default btn-sm"
|
|
|
|
|
ng-class="{ 'btn-primary': item.isProjected() }"
|
|
|
|
|
ng-click="item.project()"
|
|
|
|
|
title="{{ 'Project item' | translate }}">
|
|
|
|
|
<i class="fa fa-video-camera"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<h1>{{ item.title }}</h1>
|
|
|
|
|
<h2><translate>List of speakers</translate></h2>
|
|
|
|
|
</div>
|
2015-03-09 15:40:54 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<div class="details">
|
|
|
|
|
<div class="pull-right">
|
|
|
|
|
<span os-perms="agenda.can_manage">
|
|
|
|
|
<button ng-if="item.speaker_list_closed" ng-click="closeList(false)"
|
2015-11-30 20:52:02 +01:00
|
|
|
|
class="btn btn-sm btn-default">
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<i class="fa fa-toggle-off"></i>
|
2015-11-30 20:52:02 +01:00
|
|
|
|
<translate>Close</translate>
|
2015-11-29 22:25:01 +01:00
|
|
|
|
</button>
|
|
|
|
|
<button ng-if="!item.speaker_list_closed" ng-click="closeList(true)"
|
2015-11-30 20:52:02 +01:00
|
|
|
|
class="btn btn-sm btn-default">
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<i class="fa fa-toggle-on"></i>
|
2015-11-30 20:52:02 +01:00
|
|
|
|
<translate>Open</translate>
|
2015-11-29 22:25:01 +01:00
|
|
|
|
</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
2015-06-15 19:56:12 +02:00
|
|
|
|
|
2015-03-09 15:40:54 +01:00
|
|
|
|
<!-- TODO:
|
2015-09-04 18:24:41 +02:00
|
|
|
|
* show only 'add me' OR 'remove me' button
|
2015-03-09 15:40:54 +01:00
|
|
|
|
-->
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<button class="btn btn-default btn-sm" ng-click="showOldSpeakers = !showOldSpeakers">
|
2015-09-04 18:24:41 +02:00
|
|
|
|
Show all old speakers
|
|
|
|
|
</button>
|
2015-11-29 22:25:01 +01:00
|
|
|
|
<div uib-collapse="!showOldSpeakers">
|
2015-09-04 18:24:41 +02:00
|
|
|
|
<h3 translate>Old speakers:</h3>
|
|
|
|
|
<ol>
|
|
|
|
|
<li ng-repeat="speaker in item.speakers | filter: {end_time: '!!'}">
|
|
|
|
|
{{ speaker.user.get_full_name() }}
|
|
|
|
|
<small class="grey">
|
|
|
|
|
[{{speaker.begin_time | date:'yyyy-MM-dd HH:mm:ss'}} –
|
|
|
|
|
{{speaker.end_time | date:'yyyy-MM-dd HH:mm:ss'}}]
|
|
|
|
|
</small>
|
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h3 translate>Current speaker:</h3>
|
|
|
|
|
<strong ng-repeat="speaker in item.speakers | filter: {end_time: null, begin_time: '!!'}">
|
2015-07-06 09:19:42 +02:00
|
|
|
|
{{ speaker.user.get_full_name() }}
|
2015-09-04 18:24:41 +02:00
|
|
|
|
</strong>
|
|
|
|
|
|
|
|
|
|
<h3 translate>Next speakers:</h3>
|
2016-01-10 00:56:04 +01:00
|
|
|
|
<div class="row" ng-show="speakers.length > 0">
|
2015-12-19 00:29:20 +01:00
|
|
|
|
<div ui-tree="treeOptions" class="col-sm-6">
|
|
|
|
|
<ol ui-tree-nodes="" ng-model="speakers">
|
|
|
|
|
<li ng-repeat="speaker in speakers | filter: {begin_time: null}" ui-tree-node>
|
2016-01-10 00:52:37 +01:00
|
|
|
|
<i os-perms="agenda.can_manage" ui-tree-handle="" class="fa fa-arrows-v"></i>
|
2015-12-19 00:29:20 +01:00
|
|
|
|
{{ $index + 1 }}.
|
|
|
|
|
{{ speaker.user.get_full_name() }}
|
|
|
|
|
<button os-perms="agenda.can_manage" ng-click="removeSpeaker(speaker.id)"
|
|
|
|
|
class="btn btn-default btn-xs">
|
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button os-perms="agenda.can_manage" ng-click="beginSpeech(speaker.id)"
|
|
|
|
|
class="btn btn-default btn-xs">
|
|
|
|
|
<i class="fa fa-play"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-06-15 19:56:12 +02:00
|
|
|
|
|
2015-12-19 00:29:20 +01:00
|
|
|
|
<div class="form-group spacer">
|
2015-09-04 18:24:41 +02:00
|
|
|
|
<alert ng-show="alert.show" type="{{ alert.type }}" ng-click="alert={}" close="alert={}">
|
|
|
|
|
{{alert.msg}}
|
|
|
|
|
</alert>
|
|
|
|
|
<div os-perms="agenda.can_manage" class="input-group">
|
2016-01-09 19:27:02 +01:00
|
|
|
|
<ui-select ng-model="speakerSelectBox.selected" ng-change="addSpeaker(speakerSelectBox.selected.id)">
|
2015-12-11 20:04:05 +01:00
|
|
|
|
<ui-select-match placeholder="{{ 'Select or search a participant ...' | translate }}">
|
2015-09-04 18:24:41 +02:00
|
|
|
|
{{ $select.selected.get_full_name() }}
|
|
|
|
|
</ui-select-match>
|
|
|
|
|
<ui-select-choices repeat="user in users | filter: $select.search">
|
|
|
|
|
<div ng-bind-html="user.get_full_name() | highlight: $select.search"></div>
|
|
|
|
|
</ui-select-choices>
|
|
|
|
|
</ui-select>
|
|
|
|
|
<span class="input-group-btn">
|
2016-01-09 19:27:02 +01:00
|
|
|
|
<a ng-click="speakerSelectBox={}" class="btn btn-default">
|
2015-09-04 18:24:41 +02:00
|
|
|
|
<i class="fa fa-times-circle"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<p os-perm="agenda.can_be_speaker">
|
|
|
|
|
<button ng-click="addSpeaker()" class="btn btn-default">
|
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
<translate>Add me</translate>
|
|
|
|
|
</button>
|
|
|
|
|
<button ng-click="removeSpeaker()" class="btn btn-default">
|
|
|
|
|
<i class="fa fa-minus"></i>
|
|
|
|
|
<translate>Remove me</translate>
|
|
|
|
|
</button>
|
|
|
|
|
<p os-perms="agenda.can_manage">
|
|
|
|
|
<button ng-click="beginSpeech()"
|
|
|
|
|
class="btn btn-primary">
|
|
|
|
|
<i class="fa fa-play"></i>
|
|
|
|
|
<translate>Start next speaker</translate>
|
|
|
|
|
</button>
|
|
|
|
|
<button ng-click="endSpeech()"
|
|
|
|
|
class="btn btn-default">
|
|
|
|
|
<i class="fa fa-stop"></i>
|
|
|
|
|
<translate>Stop current speaker</translate>
|
|
|
|
|
</button>
|
2015-03-09 15:40:54 +01:00
|
|
|
|
</div>
|
2015-11-29 22:25:01 +01:00
|
|
|
|
</div>
|