fix: start with empty budgets and savings categories
This commit is contained in:
@@ -117,35 +117,35 @@
|
||||
|
||||
<section class="account-board">
|
||||
{% for account_data in planning_accounts %}
|
||||
{% if account_data.categories %}
|
||||
<article class="panel account-panel premium-panel">
|
||||
<div class="panel-head account-head">
|
||||
<div>
|
||||
<h2>{{ account_data.account.name }}</h2>
|
||||
<small>
|
||||
Gesamtkosten {{ account_data.total|currency }}
|
||||
{% if account_data.account.slug == "gemeinschaftskonto" %}
|
||||
· Jährlich {{ (account_data.total * 12)|currency }}
|
||||
{% endif %}
|
||||
</small>
|
||||
</div>
|
||||
{% if account_data.account.slug == "sparen-und-verteilung" %}
|
||||
<button class="ghost-button icon-button" type="button" data-open-dialog="dialog-add-category" data-area="distribution" data-placeholder="Name Sparkonto" data-dialog-label="Sparkonto">
|
||||
<img src="{{ url_for('static', filename='icons/plus.svg') }}" alt="" class="ui-icon small-ui-icon">
|
||||
Sparkonto
|
||||
</button>
|
||||
{% elif account_data.account.slug == "gemeinschaftskonto" %}
|
||||
<button class="ghost-button icon-button" type="button" data-open-dialog="dialog-add-category" data-area="budget" data-placeholder="Name Budget">
|
||||
<img src="{{ url_for('static', filename='icons/plus.svg') }}" alt="" class="ui-icon small-ui-icon">
|
||||
Kategorie
|
||||
</button>
|
||||
{% else %}
|
||||
<button class="ghost-button icon-button" type="button" data-open-dialog="dialog-add-category" data-account-id="{{ account_data.account.id }}">
|
||||
<img src="{{ url_for('static', filename='icons/plus.svg') }}" alt="" class="ui-icon small-ui-icon">
|
||||
Kategorie
|
||||
</button>
|
||||
{% endif %}
|
||||
<article class="panel account-panel premium-panel">
|
||||
<div class="panel-head account-head">
|
||||
<div>
|
||||
<h2>{{ account_data.account.name }}</h2>
|
||||
<small>
|
||||
Gesamtkosten {{ account_data.total|currency }}
|
||||
{% if account_data.account.slug == "gemeinschaftskonto" %}
|
||||
· Jährlich {{ (account_data.total * 12)|currency }}
|
||||
{% endif %}
|
||||
</small>
|
||||
</div>
|
||||
{% if account_data.account.slug == "sparen-und-verteilung" %}
|
||||
<button class="ghost-button icon-button" type="button" data-open-dialog="dialog-add-category" data-area="distribution" data-placeholder="Name Sparkonto" data-dialog-label="Sparkonto">
|
||||
<img src="{{ url_for('static', filename='icons/plus.svg') }}" alt="" class="ui-icon small-ui-icon">
|
||||
Sparkonto
|
||||
</button>
|
||||
{% elif account_data.account.slug == "gemeinschaftskonto" %}
|
||||
<button class="ghost-button icon-button" type="button" data-open-dialog="dialog-add-category" data-area="budget" data-placeholder="Name Budget">
|
||||
<img src="{{ url_for('static', filename='icons/plus.svg') }}" alt="" class="ui-icon small-ui-icon">
|
||||
Kategorie
|
||||
</button>
|
||||
{% else %}
|
||||
<button class="ghost-button icon-button" type="button" data-open-dialog="dialog-add-category" data-account-id="{{ account_data.account.id }}">
|
||||
<img src="{{ url_for('static', filename='icons/plus.svg') }}" alt="" class="ui-icon small-ui-icon">
|
||||
Kategorie
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if account_data.categories %}
|
||||
<div class="category-summary-grid">
|
||||
{% for category_data in account_data.categories %}
|
||||
<button type="button" class="summary-category-card {% if category_data.distribution_hint and category_data.distribution_hint.status %}range-status-{{ category_data.distribution_hint.status }}{% endif %}" data-open-dialog="{{ category_data.dialog_id }}">
|
||||
@@ -184,8 +184,18 @@
|
||||
</button>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</article>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="empty-state">
|
||||
{% if account_data.account.slug == "gemeinschaftskonto" %}
|
||||
Noch keine Budgets angelegt. Lege die erste Budget-Kategorie direkt hier an.
|
||||
{% elif account_data.account.slug == "sparen-und-verteilung" %}
|
||||
Noch keine Sparkonten angelegt. Lege Sparen, Urlaub oder weitere Verteilungsziele erst bei Bedarf an.
|
||||
{% else %}
|
||||
In diesem Bereich gibt es noch keine Kategorien.
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user