Source code for core.templatetags.core_tags

from django import template

from accounts.forms import QuickAccountForm, QuickBankForm

from core.core import process_quick_search_form

register = template.Library()


@register.inclusion_tag("tags/quick_search.html")

@register.inclusion_tag("tags/date_range_form.html")
[docs]def date_range_form(form): return {'form': form}
@register.inclusion_tag('tags/receipt_list.html')
[docs]def receipt_list(journal_entry, show_heading=True): """Render a Journal Entries Receipts in a <ul>.""" return {'journal_entry': journal_entry, 'show_heading': show_heading}