1 # -*- coding: utf-8 -*-
2 # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django import template
6 from shop.forms import OrderForm
8 register = template.Library()
11 @register.inclusion_tag('shop/snippets/order_form.html', takes_context=True)
12 def order_form_for(context, offer, form=None):
14 form = OrderForm(offer)