Enhance product display with custom names and improved styling; update table headers
This commit is contained in:
@@ -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' },
|
||||
|
||||
Reference in New Issue
Block a user