{% extends "_layout.html" %} {% set active_page = 'import' %} {% import 'macros/_account_macros.html' as account_macros with context %} {% import 'macros/_entry_forms.html' as forms with context %} {% block content %}

{{ _('Import') }} {{ request.args.get('filename') }}

{{ _('Line') }}
{{ _('Source') }}
{{ _('Entry') }}
{{ _('Actions') }}
{% for entry in g.ledger.ingest.extract(request.args.get('filename'), request.args.get('importer')) %} {% set type = entry.__class__.__name__.lower() %}
{% if entry.meta.lineno > 0 %}{{ entry.meta.lineno }}{% endif %}
{{ entry.meta['__source__'] }}
{% if type == 'transaction' %} {{ forms.transaction(entry=entry) }} {% elif type == 'balance' %} {{ forms.balance(entry=entry) }} {% elif type == 'note' %} {{ forms.note(entry=entry) }} {% endif %}
{% endfor %}
{% endblock %}