Skip to content

Commit

Permalink
Tiny adjustments to docs and template
Browse files Browse the repository at this point in the history
  • Loading branch information
maccesch committed Sep 4, 2010
1 parent 325edfe commit c0f7f34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -5,3 +5,6 @@ DS_STORE
.project
.pydevproject
.settings
build
dist
cmsplugin_contact.egg-info
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -4,6 +4,8 @@ Django CMS Contact Form Plugin

Contact form plugin for `Django CMS <http://www.django-cms.org/>`_ with spam protection and i18n.

Spam protection is done through `glamkit-stopspam <http://github.com/maccesch/glamkit-stopspam>`_ which provides three different protection methods.

If you want to use ReCAPTCHA you have to get a Public and Private Key from http://www.google.com/recaptcha. You can get them for free.

The Akismet spam protection method requires an Aksimet API Key which is obtainable from http://akismet.com/ For private persons this is free, too.
Expand Down Expand Up @@ -38,6 +40,8 @@ You can simply type into a terminal ``pip install cmsplugin-contact`` or ``easy_
Manual Download
---------------

You can download a zipped archive from http://github.com/maccesch/cmsplugin-contact/downloads.

Unzip the file you downloaded. Then go in your terminal and ``cd`` into the unpacked folder. Then type ``python setup.py install`` in your terminal.

Put "cmsplugin_contact" in your ``INSTALLED_APPS`` section in settings.py. Don't forget to syncdb your database.
Expand Down
6 changes: 1 addition & 5 deletions cmsplugin_contact/templates/cmsplugin_contact/contact.html
Expand Up @@ -30,7 +30,6 @@
{% endif %}
</p>
{% if form.recaptcha_challenge_field %}
{% autoescape off %}
<p {% if form.recaptcha_response_fiel.errors %}class="error"{% endif %}>
{{ form.recaptcha_challenge_field }}
{% if form.recaptcha_theme == "custom" %}
Expand Down Expand Up @@ -62,16 +61,13 @@
{% endfor %}
{% endif %}
</p>
{% endautoescape %}
{% endif %}

{% if form.accept_terms %}
{% autoescape off %}
{{ form.accept_terms }}
{% endautoescape %}
{% endif %}
<p>
<input type="submit" {% if contact.submit %}value="{{ contact.submit }}"{% endif %}>
<button>{{ contact.submit }}</button>
</p>

{% csrf_token %}
Expand Down

0 comments on commit c0f7f34

Please sign in to comment.