Clean up old JS.

This commit is contained in:
James Cole
2018-04-28 05:40:08 +02:00
parent bc8bcf7a1a
commit 9c5523252d
7 changed files with 53 additions and 60 deletions

View File

@@ -18,8 +18,7 @@
<div class="box-body">
{{ ExpandedForm.text('name') }}
{% if what == 'asset' %}
{# Not really mandatory but OK #}
{{ ExpandedForm.select('currency_id', currencySelectList, null, {helpText:'account_default_currency'|_}) }}
{{ ExpandedForm.currencyList('currency_id', null, {helpText:'account_default_currency'|_}) }}
{% endif %}
</div>
</div>
@@ -39,10 +38,10 @@
{% if what == 'asset' %}
{{ ExpandedForm.nonSelectableBalance('openingBalance') }}
{{ ExpandedForm.amountNoCurrency('openingBalance') }}
{{ ExpandedForm.date('openingBalanceDate') }}
{{ ExpandedForm.select('accountRole', roles,null,{'helpText' : 'asset_account_role_help'|_}) }}
{{ ExpandedForm.nonSelectableBalance('virtualBalance') }}
{{ ExpandedForm.amountNoCurrency('virtualBalance') }}
{% endif %}
{{ ExpandedForm.textarea('notes',null,{helpText: trans('firefly.field_supports_markdown')}) }}
@@ -71,13 +70,6 @@
{% block scripts %}
<script type="text/javascript" src="js/lib/modernizr-custom.js?v={{ FF_VERSION }}"></script>
<script type="text/javascript" src="js/lib/jquery-ui.min.js?v={{ FF_VERSION }}"></script>
{# JS currency list for update thing #}
<script type="text/javascript">
var currencies = [];
{% for currency in allCurrencies %}
currencies[{{ currency.id }}] = "{{ currency.symbol }}";
{% endfor %}
</script>
<script type="text/javascript" src="js/ff/accounts/create.js?v={{ FF_VERSION }}"></script>
{% endblock %}