GenericTable: rename 'parse' option to 'format'

This commit is contained in:
2025-01-08 17:19:09 +01:00
parent cc0ff71ef7
commit 77809faada
6 changed files with 22 additions and 22 deletions

View File

@@ -38,7 +38,7 @@ class ManageAssets extends HTMLController
'checkbox' => [
'header' => '<input type="checkbox" id="selectall">',
'is_sortable' => false,
'parse' => [
'format' => [
'type' => 'function',
'data' => function($row) {
return '<input type="checkbox" class="asset_select" name="delete[]" value="' . $row['id_asset'] . '">';
@@ -49,7 +49,7 @@ class ManageAssets extends HTMLController
'header' => '&nbsp;',
'is_sortable' => false,
'cell_class' => 'text-center',
'parse' => [
'format' => [
'type' => 'function',
'data' => function($row) {
$asset = Image::byRow($row);
@@ -87,7 +87,7 @@ class ManageAssets extends HTMLController
'value' => 'filename',
'header' => 'Filename',
'is_sortable' => true,
'parse' => [
'format' => [
'type' => 'value',
'link' => BASEURL . '/editasset/?id={ID_ASSET}',
'data' => 'filename',
@@ -96,7 +96,7 @@ class ManageAssets extends HTMLController
'id_user_uploaded' => [
'header' => 'User uploaded',
'is_sortable' => true,
'parse' => [
'format' => [
'type' => 'function',
'data' => function($row) {
if (!empty($row['id_user']))
@@ -110,7 +110,7 @@ class ManageAssets extends HTMLController
'dimensions' => [
'header' => 'Dimensions',
'is_sortable' => false,
'parse' => [
'format' => [
'type' => 'function',
'data' => function($row) {
if (!empty($row['image_width']))