mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
hide reserve button on machine details page is machine is disabled
This commit is contained in:
parent
a4bcad3059
commit
90fe4e313b
@ -15,7 +15,11 @@
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-4 b-t hide-b-md">
|
||||
<section class="heading-actions wrapper">
|
||||
<a ng-click="reserveMachine(machine, $event)" class="btn btn-lg btn-warning bg-white b-2x rounded m-t-xs" ng-if="!isAuthorized('admin')" translate>{{ 'book_this_machine' }}</a>
|
||||
<a ng-click="reserveMachine(machine, $event)"
|
||||
class="btn btn-lg btn-warning bg-white b-2x rounded m-t-xs"
|
||||
ng-if="!isAuthorized('admin')"
|
||||
ng-hide="machine.disabled"
|
||||
translate>{{ 'book_this_machine' }}</a>
|
||||
|
||||
<a ui-sref="app.admin.machines_edit({id: machine.id})" ng-if="isAuthorized('admin')" class="btn btn-lg btn-warning bg-white b-2x rounded m-t-xs"><i class="fa fa-edit"></i> {{ 'edit' | translate }}</a>
|
||||
<a ng-click="delete(machine)" ng-if="isAuthorized('admin')" class="btn btn-lg btn-danger b-2x rounded no-b m-t-xs"><i class="fa fa-trash-o"></i></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user