Skip to content

Firefly III: a personal finances manager

Give all icons some context, no value yet.

James Cole1a3ec9889682
diff --git a/resources/views/reports/partials/balance.twig b/resources/views/reports/partials/balance.twig
index 0c6a412c9d..3cc3be688c 100644
--- a/resources/views/reports/partials/balance.twig
+++ b/resources/views/reports/partials/balance.twig
@@ -41,7 +41,8 @@
<td>
{% if balanceEntry.getSpent != 0 %}
<span class="text-danger">{{ (balanceEntry.getSpent)|formatAmountPlain }}</span>
- <i class="fa fa-fw text-muted fa-info-circle"></i>
+ <i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="balance-amount" data-account-id="x"
+ data-budget-id="y"></i>
{% endif %}
{% if balanceEntry.getLeft != 0 %}
<span class="text-success">{{ (balanceEntry.getLeft)|formatAmountPlain }}</span>
diff --git a/resources/views/reports/partials/budgets.twig b/resources/views/reports/partials/budgets.twig
index c42b375b77..5a886d3e04 100644
--- a/resources/views/reports/partials/budgets.twig
+++ b/resources/views/reports/partials/budgets.twig
@@ -39,7 +39,9 @@
</td>
<td>
{% if budgetLine.getSpent != 0 %}
- {{ budgetLine.getSpent|formatAmount }} <i class="fa fa-fw text-muted fa-info-circle"></i>
+ {{ budgetLine.getSpent|formatAmount }} <i class="fa fa-fw text-muted fa-info-circle firefly-info-button"
+ data-location="budget-spent-amount" data-budget-id="x"
+ ></i>
{% endif %}
{% if budgetLine.getSpent == 0 %}
diff --git a/resources/views/reports/partials/categories.twig b/resources/views/reports/partials/categories.twig
index bcaa315449..3aadf8ab07 100644
--- a/resources/views/reports/partials/categories.twig
+++ b/resources/views/reports/partials/categories.twig
@@ -18,7 +18,9 @@
</td>
<td>{{ cat.spent|formatAmount }}</td>
<td style="width:20px;">
- <i class="fa fa-fw fa-info-circle text-muted"></i>
+ <i class="fa fa-fw fa-info-circle text-muted firefly-info-button"
+ data-location="category-entry" data-category-id="x"
+ ></i>
</td>
</tr>
{% endfor %}
diff --git a/resources/views/reports/partials/expenses.twig b/resources/views/reports/partials/expenses.twig
index 2cf8ed44f5..329ba056f8 100644
--- a/resources/views/reports/partials/expenses.twig
+++ b/resources/views/reports/partials/expenses.twig
@@ -17,7 +17,7 @@
<br/>
<small>
{{ expense.count }} {{ 'transactions'|_|lower }}
- <i class="fa fa-fw text-muted fa-info-circle"></i>
+ <i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="expense-entry" data-account-id="x"></i>
</small>
{% endif %}
</td>
diff --git a/resources/views/reports/partials/income.twig b/resources/views/reports/partials/income.twig
index 6c610dafc0..b9da1866e7 100644
--- a/resources/views/reports/partials/income.twig
+++ b/resources/views/reports/partials/income.twig
@@ -17,7 +17,7 @@
<br/>
<small>
{{ income.count }} {{ 'transactions'|_|lower }}
- <i class="fa fa-fw text-muted fa-info-circle"></i>
+ <i class="fa fa-fw text-muted fa-info-circle firefly-info-button" data-location="income-entry" data-account-id="x"></i>
</small>
{% endif %}