Skip to content

Commit

Permalink
Add message in the acceptance assets view to indicate when the user c…
Browse files Browse the repository at this point in the history
…an\'t accept nor deny the asset
  • Loading branch information
inietov committed Aug 15, 2023
1 parent 053d3fc commit d365565
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/lang/en/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@
'item_notes' => ':item Notes',
'item_name_var' => ':item Name',
'error_user_company' => 'User and Asset companies missmatch',
'error_user_company_accpept_view' => 'User and Asset companies doesn\'t match so you can\'t accept nor deny it, please check with your manager',
'importer' => [
'checked_out_to_fullname' => 'Checked Out to: Full Name',
'checked_out_to_first_name' => 'Checked Out to: First Name',
Expand Down
5 changes: 4 additions & 1 deletion resources/views/account/accept/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ class="table table-striped snipe-table"
@if ($acceptance->checkoutable)
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->present()->name : '' }}</td>
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">{{ trans('general.accept_decline') }}</a></td>
@else
<td> ----- </td>
<td> {{ trans('general.error_user_company_accpept_view') }} </td>
@endif
</tr>
@endif
@endforeach
</tbody>
</table>
Expand Down

0 comments on commit d365565

Please sign in to comment.