Feature #3088 Print labels from asset detail page (#9559)

This PR adds a "Generate Label" button to the detail asset page as
described in #3088.

Fixes #3088

Co-authored-by: tilmann.bitterberg <tilmann@tbrglobal.com>
This commit is contained in:
tbrconnect 2021-05-12 21:38:26 +01:00 committed by GitHub
parent ded61614d1
commit a29ef73346
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -722,7 +722,28 @@
{{ ($asset->userRequests) ? (int) $asset->userRequests->count() : '0' }}
</div>
</div>
<div class="row">
<div class="col-md-2">
<strong>
Labels
</strong>
</div>
<div class="col-md-6">
{{ Form::open([
'method' => 'POST',
'route' => ['hardware/bulkedit'],
'class' => 'form-inline',
'id' => 'bulkForm']) }}
<div id="toolbar">
<input type="hidden" name="bulk_actions" value="labels" />
<input type="hidden" name="ids[{{$asset->id}}]" value="{{ $asset->id }}" />
<button class="btn btn-primary" id="bulkEdit" >{{ trans_choice('button.generate_labels', 1) }}</button>
</div>
{{ Form::close() }}
</div>
</div>
</div> <!-- end row-striped -->
</div><!-- /col-md-8 -->
@ -1126,4 +1147,4 @@
@section('moar_scripts')
@include ('partials.bootstrap-table')
@stop
@stop