mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Make it possible to add multiple files / PDFs to equipment by using Userfields (closes #978)
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
@php
|
||||
if (!isset($excludeFieldTypes))
|
||||
{
|
||||
$excludeFieldTypes = [];
|
||||
}
|
||||
@endphp
|
||||
|
||||
@if($userfields && count($userfields) > 0)
|
||||
|
||||
@foreach($userfields as $userfield)
|
||||
|
||||
@if(in_array($userfield->type, $excludeFieldTypes))
|
||||
@continue
|
||||
@endif
|
||||
|
||||
@if($userfield->show_as_column_in_tables == 1)
|
||||
<th class="allow-grouping">{{ $userfield->caption }}</th>
|
||||
@endif
|
||||
|
Reference in New Issue
Block a user