File tree 2 files changed +3
-2
lines changed
lang/en-US/admin/hardware
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 103
103
'error ' => 'Request was not successful, please try again. ' ,
104
104
'success ' => 'Requested successfully submitted. ' ,
105
105
'canceled ' => 'Request successfully canceled. ' ,
106
+ 'cancel ' => 'Cancel this item request ' ,
106
107
],
107
108
108
109
];
Original file line number Diff line number Diff line change @@ -547,9 +547,9 @@ function genericCheckinCheckoutFormatter(destination) {
547
547
// This is only used by the requestable assets section
548
548
function assetRequestActionsFormatter (row , value ) {
549
549
if (value .assigned_to_self == true ){
550
- return ' <button class="btn btn-danger btn-sm btn-block disabled" data-tooltip="true" title="Cancel this item request ">{{ trans (' button.cancel' ) } } </button>' ;
550
+ return ' <button class="btn btn-danger btn-sm btn-block disabled" data-tooltip="true" title="{{ trans ( ' admin/hardware/message.requests.cancel ' ) } } ">{{ trans (' button.cancel' ) } } </button>' ;
551
551
} else if (value .available_actions .cancel == true ) {
552
- return ' <form action="{{ config (' app.url' ) } } /account/request-asset/' + value .id + ' /cancel" method="POST">@csrf <button class="btn btn-danger btn-block btn-sm" data-tooltip="true" title="Cancel this item request ">{{ trans (' button.cancel' ) } } </button></form>' ;
552
+ return ' <form action="{{ config (' app.url' ) } } /account/request-asset/' + value .id + ' /cancel" method="POST">@csrf <button class="btn btn-danger btn-block btn-sm" data-tooltip="true" title="{{ trans ( ' admin/hardware/message.requests.cancel ' ) } } ">{{ trans (' button.cancel' ) } } </button></form>' ;
553
553
} else if (value .available_actions .request == true ) {
554
554
return ' <form action="{{ config (' app.url' ) } } /account/request-asset/' + value .id + ' " method="POST">@csrf <button class="btn btn-block btn-primary btn-sm" data-tooltip="true" title="{{ trans (' general.request_item' ) } } ">{{ trans (' button.request' ) } } </button></form>' ;
555
555
}
You can’t perform that action at this time.
0 commit comments