RVRNEXT-5 add/update layout for currency exchange rates

This commit is contained in:
bence committed 2023-04-25 19:28:42 +02:00
1 parent 76ed977375
commit 7e84e6b4ba
2 files changed
+63 -2

No files matched your search

+6 -2
View File
@@ -17,8 +17,12 @@
<div>
<h3 class="marginBottom">Currencies</h3>
<p>Main currency: <b><?= $community->getCurrency() ?></b></p>
<?php if (count($currencyCodes) > 0): ?>
<p>Further currencies: <b><?= implode(', ', $currencyCodes) ?></b></p>
<?php if (count($currencies) > 0): ?>
<p>Further currencies: <b>
<?php foreach ($currencies as $currency): ?>
<a href="<?= Container::$routeCollection->getRoute('community-currency-exchange-rates')->generateLink(['communityId' => $community->getId(), 'code' => $currency->getCode()]) ?>"><?= $currency->getCode() ?></a>
<?php endforeach; ?>
</b></p>
<?php endif; ?>
<?php if ($editPermission): ?>
<hr>