shoppingmallv2 init...
This commit is contained in:
parent
d00efaa713
commit
b579e5a4db
@ -47,7 +47,7 @@ function getFieldView_OrderHelper($field, $entity, array $fieldFilters, array $f
|
||||
{
|
||||
$value = $entity->$field ?: DEFAULTS['EMPTY'];
|
||||
switch ($field) {
|
||||
case 'product_uid':
|
||||
case 'name':
|
||||
return sprintf(
|
||||
"<div style=\"text-align:left;\">%s</div>",
|
||||
anchor(current_url() . '/view/' . $entity->getPrimaryKey(), $fieldFormOptions[$field][$value], [...$attributes, "target" => "_self"])
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
<?= $total_count - (($page - 1) * $per_page + $i) ?>
|
||||
</td>
|
||||
<?php foreach ($fields as $field) : ?>
|
||||
<td nowrap><?= getFieldIndex_Row_OrderHelper_Admin($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
|
||||
<td nowrap><?= getFieldIndex_Row_OrderHelper($field, $entity, $fieldFilters, $fieldFormOptions) ?></td>
|
||||
<?php endforeach; ?>
|
||||
<td>
|
||||
<?= $entity->getStatus() == DEFAULTS['STATUS'] ? anchor('cart/cancelCart/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) : "" ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user