看板初始化提交

This commit is contained in:
zephyr
2026-06-01 21:23:12 -07:00
commit 54a842f4ab
2104 changed files with 241695 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
<div class="page-header">
<h2><?= t('Change reference currency') ?></h2>
</div>
<form method="post" action="<?= $this->url->href('CurrencyController', 'update') ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->label(t('Reference currency'), 'application_currency') ?>
<?= $this->form->select('application_currency', $currencies, $values, $errors) ?>
<?= $this->modal->submitButtons() ?>
</form>
+11
View File
@@ -0,0 +1,11 @@
<div class="page-header">
<h2><?= t('Add or change currency rate') ?></h2>
</div>
<form method="post" action="<?= $this->url->href('CurrencyController', 'save') ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->label(t('Currency'), 'currency') ?>
<?= $this->form->select('currency', $currencies, $values, $errors) ?>
<?= $this->form->label(t('Rate'), 'rate') ?>
<?= $this->form->text('rate', $values, $errors, array('autofocus'), 'form-numeric') ?>
<?= $this->modal->submitButtons() ?>
</form>
+34
View File
@@ -0,0 +1,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 ?>