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:
parent
ded61614d1
commit
a29ef73346
1 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue