Redirect from form-sent page.
[wolnelektury.git] / src / funding / templates / funding / offer_list.html
index 3e04747..af28ec9 100644 (file)
@@ -1,41 +1,31 @@
-{% extends "base/base.html" %}
+{% extends 'base.html' %}
 {% load i18n %}
-{% load pagination_tags %}
 
-{% block titleextra %}{% trans "All fundraisers" %}{% endblock %}
 
-{% block bodyid %}funding-offer-list{% endblock %}
-
-{% block body %}
-  <h1>{% trans "All fundraisers" %}</h1>
+{% block settings %}
+  {% load title %}
+  {% trans 'Zbiórki' as title %}
+  {% title title %}
+{% endblock %}
 
-  {% autopaginate object_list 10 %}
-  {% if page_obj.number == 1 %}
-    <h2>{% trans "Current fundraiser:" %}</h2>
-  {% endif %}
 
-  {% for offer in object_list %}
-    {% with is_win=offer.is_win is_current=offer.is_current %}
-      {% if not is_current  and forloop.first and page_obj.number == 1 %}
-        <p class="normal-text">{% trans "No fundraiser is currently running." %}</p>
-        <h2>{% trans "Previous fundraisers:" %}</h2>
-      {% endif %}
+{% block main %}
+  <div class="l-section">
+    <div class="l-books__header">
+      <div class="l-books__input">
+        <i class="icon icon-filter"></i>
+        <input type="text" placeholder="{% trans 'filtry, tytuł' %}" class="quick-filter" data-for="book-list">
+      </div>
+    </div>
+  </div>
 
-      {{ offer.list_bar }}
 
-      <div class="white-box normal-text">
-        {% if is_current %}
-          <h3>{% trans "Help free the book!" %}</h3>
-          {{ offer.description|safe }}
-        {% endif %}
-       {{ offer.status }}
-       {{ offer.status_more }}
-      </div>
+  <div class="l-section l-section--col">
+    <div class="l-books__grid" id="book-list">
+      {% for funding in object_list %}
+        {% include "funding/includes/funding_box.html" %}
+      {% endfor %}
+    </div>
+  </div>
 
-      {% if is_current and not forloop.last %}
-        <h2>{% trans "Previous fundraisers:" %}</h2>
-      {% endif %}
-    {% endwith %}
-  {% endfor %}
-  {% paginate %}
 {% endblock %}