2015-01-30 11:58:36 +01:00
|
|
|
<h1>{{ item.get_title }}</h1>
|
2015-03-09 15:40:54 +01:00
|
|
|
|
|
|
|
<div id="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 overview</translate>
|
|
|
|
</a>
|
2015-06-25 10:19:38 +02:00
|
|
|
<!-- 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 }}">
|
2015-03-09 15:40:54 +01:00
|
|
|
<i class="fa fa-video-camera"></i>
|
|
|
|
</a>
|
|
|
|
<!-- edit -->
|
|
|
|
<a ui-sref="agenda.item.detail.update({id: item.id })" os-perms="agenda.can_manage"
|
|
|
|
class="btn btn-default btn-sm"
|
|
|
|
title="{{ 'Edit' | translate}}">
|
|
|
|
<i class="fa fa-pencil"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2015-06-25 10:19:38 +02:00
|
|
|
<div class="white-space-pre-line">{{ item.text }}</div>
|
2015-03-09 15:40:54 +01:00
|
|
|
|
|
|
|
<div os-perm="agenda.can_manage">
|
|
|
|
<h3 os-perm="agenda.can_manage" translate>Duration</h3>
|
|
|
|
{{ item.duration }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div os-perm="agenda.can_manage">
|
|
|
|
<h3 os-perm="agenda.can_manage" translate>Comment</h3>
|
2015-06-25 10:19:38 +02:00
|
|
|
<div class="white-space-pre-line">{{ item.comment }}</div>
|
2015-03-09 15:40:54 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2015-06-15 19:56:12 +02:00
|
|
|
<h3 translate>List of speakers
|
|
|
|
<span ng-if="item.speakerListClosed" class="label label-danger" translate>closed</span>
|
|
|
|
<span os-perms="agenda.can_manage">
|
|
|
|
<button ng-if="item.speakerListClosed" ng-click="closeList(false)"
|
|
|
|
class="btn btn-sm btn-default" translate>
|
|
|
|
Open list
|
|
|
|
</button>
|
|
|
|
<button ng-if="!item.speakerListClosed" ng-click="closeList(true)"
|
|
|
|
class="btn btn-sm btn-default" translate>
|
|
|
|
Close list
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</h3>
|
|
|
|
|
2015-03-09 15:40:54 +01:00
|
|
|
<!-- TODO:
|
|
|
|
* project list
|
|
|
|
* show old/current/next speakers
|
2015-06-15 19:56:12 +02:00
|
|
|
* start/stop speech
|
2015-03-09 15:40:54 +01:00
|
|
|
* button 'put/remove me on/from the list'
|
|
|
|
* check permissions
|
|
|
|
-->
|
2015-06-15 19:56:12 +02:00
|
|
|
<ol>
|
|
|
|
<li ng-repeat="speaker in item.speaker_set">
|
|
|
|
{{ (users | filter: {id: speaker.user})[0].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>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
<div os-perms="agenda.can_manage" class="form-group col-sm-6">
|
|
|
|
<alert ng-show="alert.show" type="{{ alert.type }}" ng-click="alert={}" close="alert={}">{{alert.msg}}</alert>
|
|
|
|
<div class="input-group">
|
|
|
|
<ui-select ng-model="speaker.selected" ng-change="addSpeaker(speaker.selected.id)">
|
2015-03-09 15:40:54 +01:00
|
|
|
<ui-select-match placeholder="{{ 'Select or search a participant...' | translate }}">
|
2015-06-15 19:56:12 +02:00
|
|
|
{{ $select.selected.get_full_name() }}
|
2015-03-09 15:40:54 +01:00
|
|
|
</ui-select-match>
|
2015-06-15 19:56:12 +02:00
|
|
|
<ui-select-choices repeat="user in users | filter: $select.search">
|
|
|
|
<div ng-bind-html="user.get_full_name() | highlight: $select.search"></div>
|
2015-03-09 15:40:54 +01:00
|
|
|
</ui-select-choices>
|
|
|
|
</ui-select>
|
2015-06-15 19:56:12 +02:00
|
|
|
<span class="input-group-btn">
|
|
|
|
<a ng-click="speaker={}" class="btn btn-default">
|
|
|
|
<i class="fa fa-times-circle"></i>
|
|
|
|
</a>
|
|
|
|
</span>
|
2015-03-09 15:40:54 +01:00
|
|
|
</div>
|
|
|
|
</div>
|