+ #{{ loop.index }} |
- {{ Form.input('text', 'destination_account_name[]', data.destination_account_name, {class: 'form-control'}) }}
+
|
- {% endif %}
-
- {% if data.what == 'deposit' %}
+
+ {% if data.what == 'withdrawal' %}
+
+
+ |
+ {% endif %}
+
+
+ {% if data.what == 'deposit' %}
+
+ {{ Form.select('destination_account_id[]', assetAccounts, data.destination_account_id[index], {class: 'form-control'}) }}
+ |
+ {% endif %}
+
+
+
+
+ |
+ {% if data.what == 'withdrawal' %}
+
+ {{ Form.select('budget_id[]', budgets, data.budget_id[index], {class: 'form-control'}) }}
+ |
+ {% endif %}
- {{ Form.select('destination_account_id[]', assetAccounts, data.destination_account_id, {class: 'form-control'}) }}
+
|
- {% endif %}
-
-
-
-
- {{ Form.input('number', 'amount[]', data.amount, {class: 'form-control', autocomplete: 'off', step: 'any', min:'0.01'}) }}
- |
- {% if data.what == 'withdrawal' %}
-
- {{ Form.select('budget[]', budgets, data.budget_id, {class: 'form-control'}) }}
- |
- {% endif %}
-
- {{ Form.input('text', 'category[]', data.category, {class: 'form-control'}) }}
- |
- {% if data.what == 'transfer' %}
-
- {{ Form.select('piggy_bank_id[]', piggyBanks, data.piggy_bank_id, {class: 'form-control'}) }}
- |
- {% endif %}
-
+ {% if data.what == 'transfer' %}
+