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>
|
2016-01-10 13:47:59 +01:00
|
|
|
<translate>Agenda</translate>
|
|
|
|
</a>
|
|
|
|
<a href="" ng-click="open(item)" class="btn btn-sm btn-default">
|
|
|
|
<i class="fa fa-angle-double-left fa-lg"></i>
|
2016-01-25 21:22:22 +01:00
|
|
|
{{ item.getContentResource().verboseName | translate }}
|
2015-11-29 22:25:01 +01:00
|
|
|
</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>
|
2016-01-25 21:22:22 +01:00
|
|
|
{{ item.getContentResource().verboseName | translate }}
|
2015-11-29 22:25:01 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
2016-01-10 11:10:14 +01:00
|
|
|
<h1>{{ item.getTitle() }}</h1>
|
2016-01-13 20:27:07 +01:00
|
|
|
<h2>
|
|
|
|
<translate>List of speakers</translate>
|
|
|
|
<span ng-if="item.speaker_list_closed" class="slimlabel label label-danger"
|
|
|
|
translate>Closed</span>
|
|
|
|
</h2>
|
2015-11-29 22:25:01 +01:00
|
|
|
</div>
|
2015-03-09 15:40:54 +01:00
|
|
|
</div>
|
|
|
|
|
2016-01-13 20:27:07 +01:00
|
|
|
<div class="details listOfSpeakers">
|
2015-11-29 22:25:01 +01:00
|
|
|
<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>
|
2016-01-13 20:27:07 +01:00
|
|
|
<translate>Closed</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
|
|
|
|
2016-01-13 20:27:07 +01:00
|
|
|
<!-- Start/Stop controls -->
|
2016-01-10 10:26:20 +01:00
|
|
|
<div os-perms="agenda.can_manage">
|
|
|
|
<button ng-click="beginSpeech()"
|
2016-01-13 20:27:07 +01:00
|
|
|
class="btn btn-sm btn-primary">
|
|
|
|
<i class="fa fa-microphone"></i>
|
|
|
|
<translate>Begin next speech</translate>
|
2016-01-10 10:26:20 +01:00
|
|
|
</button>
|
|
|
|
<button ng-click="endSpeech()"
|
2016-01-13 20:27:07 +01:00
|
|
|
class="btn btn-sm btn-default">
|
|
|
|
<i class="fa fa-microphone-slash"></i>
|
|
|
|
<translate>End current speech</translate>
|
2016-01-10 10:26:20 +01:00
|
|
|
</button>
|
2015-09-04 18:24:41 +02:00
|
|
|
</div>
|
|
|
|
|
2016-01-13 20:27:07 +01:00
|
|
|
<!-- Last speakers -->
|
|
|
|
<div class="spacer">
|
|
|
|
<h3 translate>Last speakers</h3>
|
2016-01-10 10:26:20 +01:00
|
|
|
<button ng-click="showOldSpeakers = !showOldSpeakers"
|
2016-01-25 21:22:22 +01:00
|
|
|
class="btn btn-sm btn-default">
|
2016-01-13 20:27:07 +01:00
|
|
|
<translate ng-if="!showOldSpeakers">Show</translate>
|
|
|
|
<translate ng-if="showOldSpeakers">Hide</translate>
|
2016-01-10 10:26:20 +01:00
|
|
|
</button>
|
|
|
|
<div uib-collapse="!showOldSpeakers">
|
2016-01-13 20:27:07 +01:00
|
|
|
<ol class="indentation-lg">
|
2016-01-10 10:26:20 +01:00
|
|
|
<li ng-repeat="speaker in item.speakers | filter: {end_time: '!!'}">
|
|
|
|
{{ speaker.user.get_full_name() }}
|
|
|
|
<small class="grey">
|
2016-01-25 21:22:22 +01:00
|
|
|
{{ getDuration(speaker) | osSecondsToTime }} <translate>minutes</translate>
|
|
|
|
(<translate>Start time</translate>:
|
|
|
|
{{ speaker.begin_time | date:'yyyy-MM-dd HH:mm:ss' }})
|
2016-01-10 10:26:20 +01:00
|
|
|
</small>
|
|
|
|
<button os-perms="agenda.can_manage" ng-click="removeSpeaker(speaker.id)"
|
2016-01-13 20:27:07 +01:00
|
|
|
class="btn btn-default btn-xs" title="{{ 'Remove' | translate }}">
|
2016-01-10 10:26:20 +01:00
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</button>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2016-01-13 20:27:07 +01:00
|
|
|
<!-- Current speaker -->
|
|
|
|
<h3 translate class="">Current speaker</h3>
|
|
|
|
<strong class="indentation" 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() }}
|
2016-01-13 20:27:07 +01:00
|
|
|
<button os-perms="agenda.can_manage" ng-click="endSpeech()"
|
2016-01-25 21:22:22 +01:00
|
|
|
class="btn btn-default btn-sm" title="{{ 'End speech' | translate }}">
|
|
|
|
<i class="fa fa-microphone-slash"></i> <translate>Stop</translate>
|
2016-01-13 20:27:07 +01:00
|
|
|
</button>
|
2016-01-10 10:26:20 +01:00
|
|
|
<button os-perms="agenda.can_manage" ng-click="removeSpeaker(speaker.id)"
|
2016-01-25 21:22:22 +01:00
|
|
|
class="btn btn-default btn-sm" title="{{ 'Remove' | translate }}">
|
2016-01-10 10:26:20 +01:00
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</button>
|
2015-09-04 18:24:41 +02:00
|
|
|
</strong>
|
|
|
|
|
2016-01-13 20:27:07 +01:00
|
|
|
<!-- Next speakers -->
|
|
|
|
<h3 translate>Next speakers</h3>
|
|
|
|
<div ng-show="speakers.length > 0">
|
2016-02-10 17:49:44 +01:00
|
|
|
<div ui-tree="treeOptions">
|
2015-12-19 00:29:20 +01:00
|
|
|
<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() }}
|
2016-01-13 20:27:07 +01:00
|
|
|
<button os-perms="agenda.can_manage" ng-click="beginSpeech(speaker.id)"
|
2016-01-25 21:22:22 +01:00
|
|
|
class="btn btn-default btn-sm" title="{{ 'Begin speech' | translate }}">
|
|
|
|
<i class="fa fa-microphone"></i> <translate>Start</translate>
|
2016-01-13 20:27:07 +01:00
|
|
|
</button>
|
2015-12-19 00:29:20 +01:00
|
|
|
<button os-perms="agenda.can_manage" ng-click="removeSpeaker(speaker.id)"
|
2016-01-25 21:22:22 +01:00
|
|
|
class="btn btn-default btn-sm" title="{{ 'Remove' | translate }}">
|
2015-12-19 00:29:20 +01:00
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
</button>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-06-15 19:56:12 +02:00
|
|
|
|
2016-01-13 20:27:07 +01:00
|
|
|
<!-- Select speakers form -->
|
2015-12-19 00:29:20 +01:00
|
|
|
<div class="form-group spacer">
|
2016-01-18 21:09:28 +01:00
|
|
|
<uib-alert ng-show="alert.show" type="{{ alert.type }}" ng-click="alert={}" close="alert={}">
|
2016-01-10 10:26:20 +01:00
|
|
|
{{ alert.msg }}
|
2016-01-18 21:09:28 +01:00
|
|
|
</uib-alert>
|
2015-09-04 18:24:41 +02:00
|
|
|
<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>
|
2016-02-22 22:38:28 +01:00
|
|
|
<ui-select-choices repeat="user in users | filter: $select.search | limitTo: LimitUsers">
|
2015-09-04 18:24:41 +02:00
|
|
|
<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>
|
2016-01-13 20:27:07 +01:00
|
|
|
<p class="spacer">
|
|
|
|
<button ng-if="isAllowed('add')" ng-click="addSpeaker()" class="btn btn-default">
|
2015-09-04 18:24:41 +02:00
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
<translate>Add me</translate>
|
|
|
|
</button>
|
2016-01-13 20:27:07 +01:00
|
|
|
<button ng-if="isAllowed('remove')" ng-click="removeSpeaker()" class="btn btn-default">
|
2015-09-04 18:24:41 +02:00
|
|
|
<i class="fa fa-minus"></i>
|
|
|
|
<translate>Remove me</translate>
|
|
|
|
</button>
|
2015-03-09 15:40:54 +01:00
|
|
|
</div>
|
2015-11-29 22:25:01 +01:00
|
|
|
</div>
|