mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Added EULAs in print user's assets
Added EULAs when we want to print all assets assigned to a users and ask him/her to sign.
This commit is contained in:
parent
51242fcbb2
commit
e49c96a35e
|
@ -33,7 +33,6 @@
|
||||||
size: A4;
|
size: A4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.print-logo {
|
.print-logo {
|
||||||
max-height: 40px;
|
max-height: 40px;
|
||||||
}
|
}
|
||||||
|
@ -42,8 +41,6 @@
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script nonce="{{ csrf_token() }}">
|
<script nonce="{{ csrf_token() }}">
|
||||||
|
@ -80,7 +77,10 @@
|
||||||
{{ ($show_user->employee_num!='') ? ' (#'.$show_user->employee_num.') ' : '' }}
|
{{ ($show_user->employee_num!='') ? ' (#'.$show_user->employee_num.') ' : '' }}
|
||||||
{{ ($show_user->jobtitle!='' ? ' - '.$show_user->jobtitle : '') }}
|
{{ ($show_user->jobtitle!='' ? ' - '.$show_user->jobtitle : '') }}
|
||||||
</h3>
|
</h3>
|
||||||
<p></p>{{ trans('admin/users/general.all_assigned_list_generation')}} {{ Helper::getFormattedDateObject(now(), 'datetime', false) }}</body>
|
<p></p>{{ trans('admin/users/general.all_assigned_list_generation')}} {{ Helper::getFormattedDateObject(now(), 'datetime', false) }}
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
@if ($assets->count() > 0)
|
@if ($assets->count() > 0)
|
||||||
@php
|
@php
|
||||||
$counter = 1;
|
$counter = 1;
|
||||||
|
@ -120,7 +120,9 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($assets as $asset)
|
@foreach ($assets as $asset)
|
||||||
|
@php
|
||||||
|
if ($asset->model->category->getEula()) $eulas[] = $asset->model->category->getEula()
|
||||||
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $counter }}</td>
|
<td>{{ $counter }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -148,7 +150,6 @@
|
||||||
$assignedCounter = 1;
|
$assignedCounter = 1;
|
||||||
@endphp
|
@endphp
|
||||||
@foreach ($asset->assignedAssets as $asset)
|
@foreach ($asset->assignedAssets as $asset)
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $counter }}.{{ $assignedCounter }}</td>
|
<td>{{ $counter }}.{{ $assignedCounter }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -216,7 +217,9 @@
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@foreach ($licenses as $license)
|
@foreach ($licenses as $license)
|
||||||
|
@php
|
||||||
|
if ($license->category->getEula()) $eulas[] = $license->category->getEula()
|
||||||
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $lcounter }}</td>
|
<td>{{ $lcounter }}</td>
|
||||||
<td>{{ $license->name }}</td>
|
<td>{{ $license->name }}</td>
|
||||||
|
@ -272,6 +275,9 @@
|
||||||
|
|
||||||
@foreach ($accessories as $accessory)
|
@foreach ($accessories as $accessory)
|
||||||
@if ($accessory)
|
@if ($accessory)
|
||||||
|
@php
|
||||||
|
if ($accessory->category->getEula()) $eulas[] = $accessory->category->getEula()
|
||||||
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $acounter }}</td>
|
<td>{{ $acounter }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -332,10 +338,11 @@
|
||||||
|
|
||||||
@foreach ($consumables as $consumable)
|
@foreach ($consumables as $consumable)
|
||||||
@if ($consumable)
|
@if ($consumable)
|
||||||
|
@php
|
||||||
|
if ($consumable->category->getEula()) $eulas[] = $consumable->category->getEula()
|
||||||
|
@endphp
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $ccounter }}</td>
|
<td>{{ $ccounter }}</td>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
@if ($consumable->deleted_at!='')
|
@if ($consumable->deleted_at!='')
|
||||||
<td>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
|
<td>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
|
||||||
|
@ -359,12 +366,32 @@
|
||||||
</table>
|
</table>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
<p></p>
|
||||||
|
<div class="pull-right">
|
||||||
|
<button class="btn btn-default hidden-print" type="button" data-toggle="collapse" data-target="#eula-row" aria-expanded="false" aria-controls="eula-row" title="EULAs">
|
||||||
|
<i class="fa fa-eye-slash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table style="margin-top: 80px;">
|
<table style="margin-top: 80px;">
|
||||||
|
<tr class="collapse" id="eula-row">
|
||||||
|
<td style="padding-right: 10px; vertical-align: top; font-weight: bold;">EULA</td>
|
||||||
|
<td style="padding-right: 10px; vertical-align: top; padding-bottom: 80px;" colspan="3">
|
||||||
|
@php
|
||||||
|
if (!empty($eulas)) $eulas = array_unique($eulas);
|
||||||
|
@endphp
|
||||||
|
@if (!empty($eulas))
|
||||||
|
@foreach ($eulas as $key => $eula)
|
||||||
|
{!! $eula !!}
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-right: 10px; vertical-align: top; font-weight: bold;">{{ trans('general.signed_off_by') }}:</td>
|
<td style="padding-right: 10px; vertical-align: top; font-weight: bold;">{{ trans('general.signed_off_by') }}:</td>
|
||||||
<td style="padding-right: 10px; vertical-align: top;">________________________________________________________</td>
|
<td style="padding-right: 10px; vertical-align: top;">______________________________________</td>
|
||||||
<td style="padding-right: 10px; vertical-align: top;">________________________________________________________</td>
|
<td style="padding-right: 10px; vertical-align: top;">______________________________________</td>
|
||||||
<td>_____________________</td>
|
<td>_____________</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="height: 80px;">
|
<tr style="height: 80px;">
|
||||||
<td></td>
|
<td></td>
|
||||||
|
@ -372,12 +399,11 @@
|
||||||
<td style="padding-right: 10px; vertical-align: top;">Signature</td>
|
<td style="padding-right: 10px; vertical-align: top;">Signature</td>
|
||||||
<td style="padding-right: 10px; vertical-align: top;">{{ trans('general.date') }}</td>
|
<td style="padding-right: 10px; vertical-align: top;">{{ trans('general.date') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-right: 10px; vertical-align: top; font-weight: bold;">{{ trans('admin/users/table.manager') }}:</td>
|
<td style="padding-right: 10px; vertical-align: top; font-weight: bold;">{{ trans('admin/users/table.manager') }}:</td>
|
||||||
<td style="padding-right: 10px; vertical-align: top;">________________________________________________________</td>
|
<td style="padding-right: 10px; vertical-align: top;">______________________________________</td>
|
||||||
<td style="padding-right: 10px; vertical-align: top;">________________________________________________________</td>
|
<td style="padding-right: 10px; vertical-align: top;">______________________________________</td>
|
||||||
<td>_____________________</td>
|
<td>_____________</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
@ -392,11 +418,6 @@
|
||||||
{{-- Javascript files --}}
|
{{-- Javascript files --}}
|
||||||
<script src="{{ url(mix('js/dist/all.js')) }}" nonce="{{ csrf_token() }}"></script>
|
<script src="{{ url(mix('js/dist/all.js')) }}" nonce="{{ csrf_token() }}"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="{{ url(mix('js/dist/bootstrap-table.js')) }}"></script>
|
<script src="{{ url(mix('js/dist/bootstrap-table.js')) }}"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -475,7 +496,5 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue