X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/60b06883b6d5a336ef47c01103ec1ce25aafae69..1f2851343188a77995cd1b32e1a0cb910e8f413d:/apps/suggest/templates/publishing_suggest.html?ds=sidebyside diff --git a/apps/suggest/templates/publishing_suggest.html b/apps/suggest/templates/publishing_suggest.html index a6ed283d5..2ac0ec245 100755 --- a/apps/suggest/templates/publishing_suggest.html +++ b/apps/suggest/templates/publishing_suggest.html @@ -1,14 +1,20 @@ {% load i18n %} -<h2>{% trans "Didn't find a book? Make a suggestion." %}</h2> -<form id='suggest-publishing-form' action="{% url suggest_publishing %}" method="post" accept-charset="utf-8" class="cuteform"> +{% load honeypot %} +{% load ssi_csrf_token from ssify %} + +<h1>{% trans "Didn't find a book? Make a suggestion." %}</h1> + +<form id='suggest-publishing-form' action="{% url 'suggest_publishing' %}" method="post" accept-charset="utf-8" class="cuteform"> +{% ssi_csrf_token %} +{% render_honeypot_field %} <ol> - <li><span class="error">{{ pubsuggest_form.contact.errors }}</span><label for="id_contact">{{ pubsuggest_form.contact.label }}</label> {{ pubsuggest_form.contact }}</li> + <li><span class="error">{{ form.contact.errors }}</span><label for="id_contact">{{ form.contact.label }}</label> {{ form.contact }}</li> <li>{% trans "I'd like to find in WolneLektury.pl theseâ¦" %}</li> - <li><span class="error">{{ pubsuggest_form.books.errors }}</span><label for="id_books">{{ pubsuggest_form.books.label }}:</label> {{ pubsuggest_form.books }}</li> + <li><span class="error">{{ form.books.errors }}</span><label for="id_books">{{ form.books.label }}:</label> {{ form.books }}</li> - <li><span class="error">{{ pubsuggest_form.audiobooks.errors }}</span><label for="id_audiobooks">{{ pubsuggest_form.audiobooks.label }}:</label> {{ pubsuggest_form.audiobooks }}</li> + <li><span class="error">{{ form.audiobooks.errors }}</span><label for="id_audiobooks">{{ form.audiobooks.label }}:</label> {{ form.audiobooks }}</li> <li><input type="submit" value="{% trans "Send report" %}"/></li> </ol>