Skip to content

Commit 33c023e

Browse files
feat: visualizzazione allegati categoria
1 parent 03ece3d commit 33c023e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/HTMLBuilder/Manager/FileManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class FileManager implements ManagerInterface
3333
{
3434
/**
3535
* Gestione "filelist_and_upload".
36-
* Esempio: {( "name": "filelist_and_upload", "id_module": "2", "id_record": "1", "readonly": "false" )}.
36+
* Esempio: {( "name": "filelist_and_upload", "id_module": "2", "id_record": "1", "readonly": "false", "category": "" )}.
3737
*
3838
* @param array $options
3939
*
@@ -71,7 +71,9 @@ public function manage($options)
7171
$result .= '
7272
<div class="card card-primary">
7373
<div class="card-header">
74-
<h3 class="card-title">'.tr('Allegati').'</h3>
74+
<h3 class="card-title">
75+
'.tr('Allegati').($options['category'] ? ' ('.tr('_CATEGORY_', ['_CATEGORY_' => $options['category']]).')' : '').'
76+
</h3>
7577
</div>
7678
<div class="card-body">';
7779
}

0 commit comments

Comments
 (0)