Skip to content

Commit fa546dd

Browse files
authored
Merge pull request #17510 from grokability/fixes-#17498-add-serial-to-acceptance
Fixed #17498 - added serial to user acceptance
2 parents a9fc8b7 + f811352 commit fa546dd

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

resources/views/account/accept/create.blade.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,20 @@
4242
<div class="row">
4343
<div class="col-sm-12 col-sm-offset-1 col-md-10 col-md-offset-1">
4444
<div class="panel box box-default">
45+
<div class="box-header with-border">
46+
<h2 class="box-title">
47+
{{$acceptance->checkoutable->present()->name()}}
48+
{{ (($acceptance->checkoutable) && ($acceptance->checkoutable->serial)) ? ' - '.trans('general.serial_number').': '.$acceptance->checkoutable->serial : '' }}
49+
</h2>
50+
</div>
4551
<div class="box-body">
46-
<div class="col-md-12" style="padding-top: 20px;">
52+
<div class="col-md-12" style="padding-top: 20px; padding-bottom: 15px;">
4753
@if ($acceptance->checkoutable->getEula())
48-
<div id="eula_div" style="padding-bottom: 20px">
54+
<div id="eula_div" style="background-color: rgba(211,211,211,0.25); padding: 10px; border: lightgrey 1px solid;">
4955
{!! $acceptance->checkoutable->getEula() !!}
5056
</div>
5157
@endif
5258
</div>
53-
<div class="col-md-12">
54-
<h3>{{$acceptance->checkoutable->present()->name()}}</h3>
55-
</div>
5659
<div class="col-md-12">
5760
<label class="form-control">
5861
<input type="radio" name="asset_acceptance" id="accepted" value="accepted">
@@ -66,12 +69,11 @@
6669
</div>
6770
<div class="col-md-12">
6871
<br>
69-
<div class="col-md-12" style="display:block;">
72+
7073
<label id="note_label" for="note" style="text-align:center;" >{{trans('admin/settings/general.acceptance_note')}}</label>
71-
</div>
72-
<div class="col-md-12">
73-
<textarea id="note" name="note" rows="4" value="note" class="form-control" style="width:100%"></textarea>
74-
</div>
74+
<br>
75+
<textarea id="note" name="note" rows="4" class="form-control" style="width:100%">{{ old('note') }}</textarea>
76+
7577
</div>
7678

7779
@if ($snipeSettings->require_accept_signature=='1')

resources/views/account/accept/index.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class="table table-striped snipe-table"
3131
<thead>
3232
<tr>
3333
<th>{{ trans('general.name')}}</th>
34+
<th>{{ trans('general.serial_number')}}</th>
3435
<th>{{ trans('table.actions')}}</th>
3536
</tr>
3637
</thead>
@@ -39,6 +40,7 @@ class="table table-striped snipe-table"
3940
<tr>
4041
@if ($acceptance->checkoutable)
4142
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->present()->name : '' }}</td>
43+
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->serial : '' }}</td>
4244
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">{{ trans('general.accept_decline') }}</a></td>
4345
@else
4446
<td> ----- </td>

0 commit comments

Comments
 (0)