mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes #4016 - signature file missing from history tab
This commit is contained in:
parent
5e1df7049c
commit
bd0498aa69
|
@ -53,6 +53,7 @@ class ActionlogsTransformer
|
|||
] : null,
|
||||
|
||||
'note' => e($actionlog->note),
|
||||
'signature_file' => ($actionlog->accept_signature) ? $actionlog->accept_signature : null,
|
||||
|
||||
|
||||
];
|
||||
|
|
|
@ -603,6 +603,9 @@
|
|||
<th class="col-sm-2" data-field="item" data-formatter="polymorphicItemFormatter">{{ trans('general.item') }}</th>
|
||||
<th class="col-sm-2" data-field="target" data-formatter="polymorphicItemFormatter">{{ trans('general.target') }}</th>
|
||||
<th class="col-sm-2" data-field="note">{{ trans('general.notes') }}</th>
|
||||
@if ($snipeSettings->require_accept_signature=='1')
|
||||
<th class="col-md-3" data-field="signature_file" data-formatter="imageFormatter">{{ trans('general.signature') }}</th>
|
||||
@endif
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
|
@ -358,7 +358,7 @@ $('.snipe-table').bootstrapTable({
|
|||
|
||||
function imageFormatter(value, row) {
|
||||
if (value) {
|
||||
return '<img src="' + value + '" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;">';
|
||||
return '<img src="' + value + '" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" data-toggle="lightbox" data-type="image">';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue