adding permission checks
This commit is contained in:
parent
8c4b38f018
commit
794db79511
@ -1041,6 +1041,7 @@ img {
|
|||||||
width: 65%;
|
width: 65%;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
float: left;
|
float: left;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col2 .projectorSelector > div > div > button {
|
.col2 .projectorSelector > div > div > button {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="submenu">
|
<div class="submenu" os-perms="core.can_manage_projector">
|
||||||
<!-- New -->
|
<!-- New -->
|
||||||
<button class="btn btn-primary" ng-bootbox-prompt="{{ 'Please enter a name for the new projector' | translate }}"
|
<button class="btn btn-primary" ng-bootbox-prompt="{{ 'Please enter a name for the new projector' | translate }}"
|
||||||
ng-bootbox-prompt-action="createProjector(result)">
|
ng-bootbox-prompt-action="createProjector(result)">
|
||||||
@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<div class="projectorContainer">
|
<div class="projectorContainer" os-perms="core.can_manage_projector">
|
||||||
|
|
||||||
<div ng-repeat="projector in projectors | orderBy: 'id'">
|
<div ng-repeat="projector in projectors | orderBy: 'id'">
|
||||||
<div>
|
<div>
|
||||||
@ -130,7 +130,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<!-- projector control buttons -->
|
<!-- projector control buttons -->
|
||||||
<div os-perms="core.can_manage_projector" class="nobr">
|
<div class="nobr">
|
||||||
<!-- edit -->
|
<!-- edit -->
|
||||||
<a ng-click="editCurrentSlide(projector)"
|
<a ng-click="editCurrentSlide(projector)"
|
||||||
ng-disabled="!projector.getStateForCurrentSlide()"
|
ng-disabled="!projector.getStateForCurrentSlide()"
|
||||||
|
@ -48,20 +48,20 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div os-perms="core.can_manage_projector">
|
||||||
<button class="btn btn-sm" ng-click="active_projector.toggleBlank()" ng-hide="projectors.length > 1"
|
<button class="btn btn-sm" ng-click="active_projector.toggleBlank()" ng-hide="projectors.length > 1"
|
||||||
ng-class="active_projector.blank ? 'btn-primary' : 'btn-default'">
|
ng-class="active_projector.blank ? 'btn-primary' : 'btn-default'">
|
||||||
<i class="fa" ng-class="active_projector.blank ? 'fa-square' : 'fa-square-o'"></i>
|
<i class="fa" ng-class="active_projector.blank ? 'fa-square' : 'fa-square-o'"></i>
|
||||||
<translate>Blank</translate>
|
<translate>Blank</translate>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<a class="btn btn-primary btn-sm manageBtn" ui-sref="manage-projectors">
|
<a os-perms="core.can_manage_projector" class="btn btn-primary btn-sm manageBtn" ui-sref="manage-projectors">
|
||||||
<i class="fa fa-cog fa-lg"></i>
|
<i class="fa fa-cog fa-lg"></i>
|
||||||
<translate>Manage</translate>
|
<translate>Manage</translate>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-group nobr" ng-show="projectors.length > 1">
|
<div class="btn-group nobr" ng-show="projectors.length > 1" os-perms="core.can_manage_projector">
|
||||||
<button class="btn btn-sm" ng-class="broadcast == active_projector.id ? 'btn-primary' : 'btn-default'"
|
<button class="btn btn-sm" ng-class="broadcast == active_projector.id ? 'btn-primary' : 'btn-default'"
|
||||||
ng-click="active_projector.toggleBroadcast()" ng-disabled="broadcast > 0 && broadcast != active_projector.id">
|
ng-click="active_projector.toggleBroadcast()" ng-disabled="broadcast > 0 && broadcast != active_projector.id">
|
||||||
<i class="fa" ng-class="broadcast == active_projector.id ? 'fa-star' : 'fa-star-o'"></i>
|
<i class="fa" ng-class="broadcast == active_projector.id ? 'fa-star' : 'fa-star-o'"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user