Skip to content

Commit a302cc1

Browse files
authored
Merge pull request #16643 from snipe/small_requestable_improvements
Text tweaks and nicer buttons for requestable items
2 parents b5c7e60 + d203c4e commit a302cc1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

resources/lang/en-US/admin/hardware/message.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@
100100
],
101101

102102
'requests' => [
103-
'error' => 'Asset was not requested, please try again',
104-
'success' => 'Asset requested successfully.',
105-
'canceled' => 'Checkout request successfully canceled',
103+
'error' => 'Request was not successful, please try again.',
104+
'success' => 'Requested successfully submitted.',
105+
'canceled' => 'Request successfully canceled.',
106106
],
107107

108108
];

resources/views/partials/bootstrap-table.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,11 @@ 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 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="Cancel this item request">{{ 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-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="Cancel this item request">{{ trans('button.cancel') }}</button></form>';
553553
} else if (value.available_actions.request == true) {
554-
return '<form action="{{ config('app.url') }}/account/request-asset/'+ value.id + '" method="POST">@csrf<button class="btn btn-primary btn-sm" data-tooltip="true" title="{{ trans('general.request_item') }}">{{ trans('button.request') }}</button></form>';
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>';
555555
}
556556
557557
}

0 commit comments

Comments
 (0)