Add liabilities to home screen #2768

This commit is contained in:
James Cole
2020-03-13 15:47:26 +01:00
parent 8724ba05ca
commit 1058bcd31d
2 changed files with 32 additions and 9 deletions

View File

@@ -95,23 +95,26 @@
<div class="preferences-box">
<h3>{{ 'pref_home_screen_accounts'|_ }}</h3>
<p class="text-info">{{ 'pref_home_screen_accounts_help'|_ }}</p>
{% for account in accounts %}
{% for type, accounts in groupedAccounts %}
<strong>{{ type }}</strong>
{% for id, name in accounts %}
<div class="form-group">
<div class="col-sm-10">
<div class="checkbox">
<label>
{% if account.id in frontPageAccounts.data or frontPageAccounts.data|length == 0 %}
<input type="checkbox" name="frontPageAccounts[]" value="{{ account.id }}"
checked> {{ account.name }}
{% if id in frontPageAccounts.data or frontPageAccounts.data|length == 0 %}
<input type="checkbox" name="frontPageAccounts[]" value="{{ id }}"
checked> {{ name }}
{% else %}
<input type="checkbox" name="frontPageAccounts[]"
value="{{ account.id }}"> {{ account.name }}
value="{{ id }}"> {{ name }}
{% endif %}
</label>
</div>
</div>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
{# frontpage settings column b #}