Files

28 lines
1.4 KiB
PHP
Raw Permalink Normal View History

<h3><i class="fa fa-money fa-fw" aria-hidden="true"></i> <?= t('FinanceBuddy') ?></h3>
<div class="listing">
<?php /* Hidden 0 before the checkbox so unchecking posts a value (a bare unchecked box posts
nothing, which would leave a stale 1). The checkbox's 1 wins when checked. The shared
Integrations form saves this straight into project metadata. */ ?>
<input type="hidden" name="<?= \Kanboard\Plugin\FinanceBuddy\Helper\FinanceHelper::ENABLED_KEY ?>" value="0">
<?= $this->form->checkbox(
\Kanboard\Plugin\FinanceBuddy\Helper\FinanceHelper::ENABLED_KEY,
t('Enable FinanceBuddy on this board'),
1,
isset($values['financebuddy_enabled']) && $values['financebuddy_enabled'] == 1
) ?>
<p class="form-help">
<?= t('When enabled, cards on this board can carry a money value (debit or credit, with optional installments), shown on the card and totalled per column. Boards left disabled are unaffected.') ?>
</p>
<?= $this->form->label(t('Currency symbol'), 'financebuddy_currency') ?>
<?= $this->form->text('financebuddy_currency', $values, array(), array('maxlength="4"', 'placeholder="R$"')) ?>
<p class="form-help">
<?= t('Shown before every amount on this board (up to 4 characters). Leave empty for the default R$.') ?>
</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
</div>
<hr>