firefly-iii/resources/views/transactions/edit.twig
2022-01-29 14:19:01 +01:00

29 lines
923 B
Twig

{% set VUE_SCRIPT_NAME = 'edit_transaction' %}
{% extends './layout/default' %}
{% block breadcrumbs %}
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, transactionGroup) }}
{% endblock %}
{% block content %}
<div id="edit_transaction"></div>
{% endblock %}
{% block definitions %}
<script type="text/javascript" nonce="{{ JS_NONCE }}">
var allowedOpposingTypes = {{ allowedOpposingTypes|json_encode|raw }};
var accountToTypes = {{ accountToTypes|json_encode|raw }};
var defaultCurrency = {{ defaultCurrency.toArray()|json_encode|raw }};
var allowedSourceDests = {{ allowedSourceDests|json_encode|raw }};
var expectedSourceTypes = {{ expectedSourceTypes|json_encode|raw }};
var cashAccountId = {{ cash.id }};
var previousUrl = '{{ previousUrl }}';
</script>
{% endblock %}
{% block scripts %}
{% endblock %}
{% block styles %}
{% endblock %}