Enhance product display with custom names and improved styling; update table headers

This commit is contained in:
2024-12-15 21:36:38 +01:00
parent 4e3dfccff2
commit 03a6d68c62
6 changed files with 54 additions and 17 deletions

View File

@@ -25,7 +25,7 @@
<thead>
<tr>
<th scope="col">Id</th>
<th scope="col">Tytuł</th>
<th scope="col">Nazwa produktu</th>
<th scope="col">Wyśw.</th>
<th scope="col">Wyśw. (30 dni)</th>
<th scope="col">Klik.</th>
@@ -66,18 +66,7 @@
serverSide: true,
columns: [
{ width: '100px', orderable: false },
{ width: 'auto', name: 'title', render: function( data, type, row ) {
return `
<div class="table-product-title">
<a href="/products/product_history/client_id=${client_id}&product_id=${row[0]}" target="_blank">
${data}
</a>
<span class="edit-product-title" offer-id="${row[0]}">
<i class="fa fa-pencil-square"></i>
</span>
</div>
`;
}},
{ width: 'auto', name: 'name' },
{ width: 'auto', name: 'impressions' },
{ width: 'auto', name: 'impressions_30' },
{ width: 'auto', name: 'clicks' },