File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
lang/en-US/admin/hardware Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 103103 'error ' => 'Request was not successful, please try again. ' ,
104104 'success ' => 'Requested successfully submitted. ' ,
105105 'canceled ' => 'Request successfully canceled. ' ,
106+ 'cancel ' => 'Cancel this item request ' ,
106107 ],
107108
108109];
Original file line number Diff line number Diff line change @@ -547,9 +547,9 @@ function genericCheckinCheckoutFormatter(destination) {
547547 // This is only used by the requestable assets section
548548 function assetRequestActionsFormatter (row , value ) {
549549 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>' ;
551551 } 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>' ;
553553 } else if (value .available_actions .request == true ) {
554554 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>' ;
555555 }
You can’t perform that action at this time.
0 commit comments