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'];
|
$value = $entity->$field ?: DEFAULTS['EMPTY'];
|
||||||
switch ($field) {
|
switch ($field) {
|
||||||
case 'product_uid':
|
case 'name':
|
||||||
return sprintf(
|
return sprintf(
|
||||||
"<div style=\"text-align:left;\">%s</div>",
|
"<div style=\"text-align:left;\">%s</div>",
|
||||||
anchor(current_url() . '/view/' . $entity->getPrimaryKey(), $fieldFormOptions[$field][$value], [...$attributes, "target" => "_self"])
|
anchor(current_url() . '/view/' . $entity->getPrimaryKey(), $fieldFormOptions[$field][$value], [...$attributes, "target" => "_self"])
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
<?= $total_count - (($page - 1) * $per_page + $i) ?>
|
<?= $total_count - (($page - 1) * $per_page + $i) ?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($fields as $field) : ?>
|
<?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; ?>
|
<?php endforeach; ?>
|
||||||
<td>
|
<td>
|
||||||
<?= $entity->getStatus() == DEFAULTS['STATUS'] ? anchor('cart/cancelCart/' . $entity->getPrimaryKey(), ICONS['DELETE'], ["class" => "btn btn-sm btn-danger btn-circle", "target" => "_self"]) : "" ?>
|
<?= $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