ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/* @var $block Lts\Inventory\Block\Index\Index */
|
||||
?>
|
||||
<?php echo $block->getMessagesHtml(); ?>
|
||||
<div class="block">
|
||||
<div class="block-content">
|
||||
|
||||
<?php
|
||||
foreach ($block->getInventorySources() as $item):
|
||||
$source = $item->getSource();
|
||||
$border = 'border-bottom: 1px solid #ded6d6;';
|
||||
if ($item->getEntityId()) {
|
||||
$border = 'border-bottom: 2px solid;';
|
||||
}
|
||||
?>
|
||||
<div class="box" style="<?= $border ?> padding-bottom: 15px;">
|
||||
<div class="box-content">
|
||||
<b><?= $source->getName() ?></b>
|
||||
<p><b>Tel:</b> <?= $source->getPhone() ?></p>
|
||||
<address>
|
||||
<?= $source->getStreet() ?>, <?= $source->getCity() ?>, <?= $source->getRegion() ?>, <?= $source->getCountryId() ?> <?= $source->getPostcode() ?>
|
||||
</address>
|
||||
</div>
|
||||
<div class="box-actions" style="text-align: end;">
|
||||
<?php
|
||||
if ($item->getEntityId()):
|
||||
?>
|
||||
<a class="action" style="background-color: rgb(206, 33, 39);">
|
||||
<span>My Preferred</span>
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
<a class="action edit" href="<?php echo $block->getUrl('lts_inventory/index/index/', ['code' => $source->getSourceCode()]); ?>">
|
||||
<span>Prefer</span>
|
||||
</a>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user