Added buttons to the products stock entries/journal on the product edit page (like on the productcard) (closes #1670)

This commit is contained in:
Bernd Bestel 2021-11-08 17:21:15 +01:00
parent 3c656ba618
commit 2b97ac7c1c
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -11,7 +11,30 @@
@section('content')
<div class="row">
<div class="col">
<h2 class="title">@yield('title')</h2>
<div class="title-related-links">
<h2 class="title">@yield('title')</h2>
@if($mode == 'edit')
<div class="float-right">
<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
type="button"
data-toggle="collapse"
data-target="#related-links">
<i class="fas fa-ellipsis-v"></i>
</button>
</div>
<div class="related-links collapse d-md-flex order-2 width-xs-sm-100"
id="related-links">
<a class="btn btn-outline-secondary m-1 mt-md-0 mb-md-0 float-right show-as-dialog-link"
href="{{ $U('/stockentries?embedded&product=') }}{{ $product->id }}">
{{ $__t('Stock entries') }}
</a>
<a class="btn btn-outline-secondary m-1 mt-md-0 mb-md-0 float-right show-as-dialog-link"
href="{{ $U('/stockentries?embedded&product=') }}{{ $product->id }}">
{{ $__t('Stock journal') }}
</a>
</div>
@endif
</div>
</div>
</div>