Merge pull request #11603 from inietov/fixes/actions_on_licenses

Use apropiate string for license actions
This commit is contained in:
snipe 2022-08-02 10:40:20 -07:00 committed by GitHub
commit 031b7998c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,21 +7,6 @@
@parent
@stop
{{-- Right header --}}
@section('header_right')
<div class="btn-group pull-right">
@can('update', $license)
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">{{ trans('button.actions') }}
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li role="menuitem"><a href="{{ route('licenses.edit', ['license' => $license->id]) }}">{{ trans('admin/licenses/general.edit') }}</a></li>
<li role="menuitem"><a href="{{ route('clone/license', $license->id) }}">{{ trans('admin/licenses/general.clone') }}</a></li>
</ul>
@endcan
</div>
@stop
{{-- Page content --}}
@section('content')
<div class="row">
@ -78,8 +63,8 @@
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="{{ route('licenses.edit', $user->id) }}">{{ trans('admin/users/general.edit') }}</a></li>
<li><a href="{{ route('clone/license', $user->id) }}">{{ trans('admin/users/general.clone') }}</a></li>
<li><a href="{{ route('licenses.edit', $license->id) }}">{{ trans('admin/licenses/general.edit') }}</a></li>
<li><a href="{{ route('clone/license', $license->id) }}">{{ trans('admin/licenses/general.clone') }}</a></li>
</ul>
</li>
@endcan
@ -575,4 +560,4 @@
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop
@stop