Skip to content

Commit

Permalink
* Select default currency by replacing inline SELECT with elements.ht…
Browse files Browse the repository at this point in the history
…ml BLOCK

Fixes ledgersmb#1186
  • Loading branch information
ehuelsmann committed Jan 8, 2016
1 parent 5466a8b commit 6ce84ea
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions UI/payments/payments_filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,17 @@
</div>
<div id = "payments-filter-currency-row" class="inputgroup" ?>
<label for="currency"><?lsmb text('Currency')?></label>
<?lsmb currencies = [];
FOREACH c IN payment.openCurrencies ;
k = c.keys.first;
currencies.push( { value = c.$k, text = c.$k } );
END;
PROCESS select element_data = {
name="currency"
id="currency"
options=currencies } ?>
<?lsmb
curr = [];
FOREACH c IN currencies ;
curr.push( { text = c, value = c } );
END;
PROCESS select element_data = {
id = 'currency'
name = 'currency'
options = curr
default_values = [ default_currency ]
} ?>
</div>
</div>
<div class="listtop"><?lsmb text('Payment Processing') ?></div>
Expand Down

0 comments on commit 6ce84ea

Please sign in to comment.