adapt to new migdal and fnpdjango
[prawokultury.git] / prawokultury / templates / migdal / entry / publications / entry_detail.html
index 0cae1fa..9632fa6 100755 (executable)
@@ -1,9 +1,10 @@
 {% extends "base.html" %}
 {% load comments i18n %}
 {% load fnp_common migdal_tags fnp_share shop_tags %}
+{% load url from future %}
 
 
-{% block "body" %}
+{% block body %}
 
 {% if not entry.published %}
     <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
 
 {% entry_begin entry 1 %}
 <div class="body">
-{{ entry.body }}
-
 
+{% if entry.offer %}
 
+<p>{% trans "Price" %}: {{ entry.offer.price|floatformat:"-2" }} PLN</p>
 
-{% if entry.offer_set.all.exists %}
 
-{% order_form_for entry.offer_set.all.0 form %}
+{% order_form_for entry.offer form %}
 
 {% endif %}
 
 
+{{ entry.body }}
+
+
 
 
 {% for inline_html in entry.inline_html %}