{% load honeypot %}
-{% load chunks %}
+{% load more %}
<h1>{{ form.title }}</h1>
<div class="form-info">
- {{ form.intro|safe }}
+ {{ form.intro|first_part:"---"|safe }}
</div>
{{ form_for_form.media }}
<div class="form-info">
- {% chunk 'formularz_'|add:form.slug %}
+ {{ form.intro|second_part:"---"|safe }}
</div>
--- /dev/null
+from django.template import Library
+
+
+register = Library()
+
+
+@register.filter
+def first_part(txt, sep):
+ return txt.split(sep, 1)[0]
+
+
+@register.filter
+def second_part(txt, sep):
+ parts = txt.split(sep, 1)
+ return parts[1] if len(parts) > 1 else ''
+