From 1e887a2a8dbc865333d6d1ec21348c72ff7464cc Mon Sep 17 00:00:00 2001
From: James Cole
Date: Sun, 5 Mar 2017 18:46:12 +0100
Subject: [PATCH] Start replacing html comments with twig comments
---
.../views/transactions/single/create.twig | 22 +++++++++----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/resources/views/transactions/single/create.twig b/resources/views/transactions/single/create.twig
index 3ba6b8dec3..c29045d6f7 100644
--- a/resources/views/transactions/single/create.twig
+++ b/resources/views/transactions/single/create.twig
@@ -47,7 +47,7 @@
{# ALWAYS SHOW AMOUNT #}
{{ ExpandedForm.amount('amount') }}
-
+ {# ALWAYS SHOW DATE #}
{{ ExpandedForm.date('date', preFilled.date|default(phpdate('Y-m-d'))) }}
-
+ {# BUDGET ONLY WHEN CREATING A WITHDRAWAL #}
{% if budgets|length > 1 %}
{{ ExpandedForm.select('budget_id', budgets, null) }}
{% else %}
{{ ExpandedForm.select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer')}) }}
{% endif %}
-
+ {# CATEGORY ALWAYS #}
{{ ExpandedForm.text('category') }}
-
+ {# TAGS #}
{{ ExpandedForm.text('tags') }}
-
+ {# RELATE THIS TRANSFER TO A PIGGY BANK #}
{{ ExpandedForm.select('piggy_bank_id', piggies, '0') }}
-
+ {# explain if necessary #}
{% if
not optionalFields.interest_date or
not optionalFields.book_date or
@@ -97,7 +97,7 @@
{{ trans('firefly.hidden_fields_preferences', {link: route('preferences.index')})|raw }}
{% endif %}
-
+ {# box for dates #}
{% if
optionalFields.interest_date or optionalFields.book_date or optionalFields.process_date
or optionalFields.due_date or optionalFields.payment_date
@@ -141,7 +141,7 @@
{% endif %}
-
+ {# box for business fields #}
{% if optionalFields.internal_reference or optionalFields.notes %}
{% endif %}
-
+ {# box for attachments #}
{% if optionalFields.attachments %}
{% endif %}
-
+ {# panel for options #}