summaryrefslogtreecommitdiff
path: root/app/Template/currency/show.php
blob: 4b7f34bca2e8642013023cf563688df849023f34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="page-header">
    <h2><?= t('Currency rates') ?></h2>
    <ul>
        <li>
            <?= $this->modal->medium('plus', t('Add or change currency rate'), 'CurrencyController', 'create') ?>
        </li>
        <li>
            <?= $this->modal->medium('edit', t('Change reference currency'), 'CurrencyController', 'change') ?>
        </li>
    </ul>
</div>

<div class="panel">
    <strong><?= t('Reference currency: %s', $application_currency) ?></strong>
</div>

<?php if (! empty($rates)): ?>
    <table class="table-striped">
        <tr>
            <th class="column-35"><?= t('Currency') ?></th>
            <th><?= t('Rate') ?></th>
        </tr>
        <?php foreach ($rates as $rate): ?>
        <tr>
            <td>
                <strong><?= $this->text->e($rate['currency']) ?></strong>
            </td>
            <td>
                <?= n($rate['rate']) ?>
            </td>
        </tr>
        <?php endforeach ?>
    </table>
<?php endif ?>