2016-09-12 11:05:34 +02:00
|
|
|
<div class="btn-group" style="min-width:{{ projectors.length > 1 ? '54' : '34' }}px;" uib-dropdown
|
2016-10-31 17:10:21 +01:00
|
|
|
uib-tooltip="{{ 'Projector' | translate }} {{ model.isProjected(arg)[0] || '' }}"
|
|
|
|
tooltip-enable="model.isProjected(arg).length"
|
2016-09-12 11:05:34 +02:00
|
|
|
os-perms="core.can_manage_projector">
|
|
|
|
<button type="button" class="btn btn-default btn-sm"
|
2016-10-17 08:05:40 +02:00
|
|
|
ng-click="model.project(defaultProjectorId, arg)"
|
2016-10-31 17:10:21 +01:00
|
|
|
ng-class="{ 'btn-primary': inArray(model.isProjected(arg), defaultProjectorId) }">
|
2016-09-12 11:05:34 +02:00
|
|
|
<i class="fa fa-video-camera"></i>
|
2018-04-18 09:24:54 +02:00
|
|
|
{{ content | translate }}
|
2016-09-12 11:05:34 +02:00
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-default btn-sm slimDropDown"
|
2016-10-31 17:10:21 +01:00
|
|
|
ng-class="{ 'btn-primary': (model.isProjected(arg).length && !inArray(model.isProjected(arg), defaultProjectorId)) }"
|
2016-09-12 11:05:34 +02:00
|
|
|
ng-if="projectors.length > 1"
|
|
|
|
uib-dropdown-toggle>
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
2016-10-17 10:10:13 +02:00
|
|
|
<ul class="dropdown-menu" ng-if="projectors.length > 1">
|
2016-12-19 10:40:55 +01:00
|
|
|
<li role="menuitem" ng-repeat="projector in projectors | orderBy:'id'">
|
2016-10-17 08:05:40 +02:00
|
|
|
<a href="" ng-click="model.project(projector.id, arg)"
|
2016-10-31 17:10:21 +01:00
|
|
|
ng-class="{ 'projected': inArray(model.isProjected(arg), projector.id) }">
|
|
|
|
<i class="fa fa-video-camera" ng-show="inArray(model.isProjected(arg), projector.id)"></i>
|
2016-11-29 11:46:38 +01:00
|
|
|
{{ projector.name | translate }}
|
2016-09-29 15:32:58 +02:00
|
|
|
<span ng-if="defaultProjectorId == projector.id">(<translate>Default</translate>)</span>
|
2016-09-12 11:05:34 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|