parsimony/parsimony_cms — pull request #34 by maditnerd (2013-01-30 22:33:15+00:00)
Title: New Block : Contact Form

Part of the code is explained on
http://parsimonycms.blogspot.fr/2013/01/creer-un-nouveau-bloc-exemple.html
[FRENCH]

Feel free to modified it in anyway.

This block is derived from Form Add.

It makes an customisable contact form predesigned.
* When the contact form is filled, it sends an mail ,to the mail
specified in the Configuration, with the fields filled by the user.
* I tested it with the main fields (wyiswyg,state,textarea,string,email).
* You can configured an recaptcha to prevent spam directly from the
Configuration interface.
* Notifications are predesigned and captcha error are notified.

Known Bugs:
--------------
If Recaptcha is active without a public/private key or a wrong
public/private key it will broke the admin page.
You can repair it by modifying the block at
/profiles/www/modules/core/views/NAMEOFTHEBLOCK.php

Possibles Improvements
----------------
* Send an confirmation to the user.
* Make the State field value, the actual value not the numeric one. (ex:
thisisthefirstvalue instead of 1) on the email
* Notification deactivation
* Notify multiple email.
* Translation
* Prettier notification email
* Last forms responded sended at a defined period instead of every
responded forms.
* Captcha Alternative
* Captcha active after N tries.

Screenshots:
------------------
Front Office Block
------------------------------
![frontofficeview1](https://f.cloud.github.com/assets/2841495/112815/0b538f3c-6b2c-11e2-96b7-237db7edb77f.png)

Notifications
--------------------
![frontofficeview2](https://f.cloud.github.com/assets/2841495/112818/0b94f346-6b2c-11e2-8cc4-ca2d8645574f.png)

Configuration
--------------------
![frontofficeview3](https://f.cloud.github.com/assets/2841495/112816/0b5ca7ca-6b2c-11e2-8019-fd85f05bdd52.png)

Email
----------
![frontofficeview4](https://f.cloud.github.com/assets/2841495/112817/0b742742-6b2c-11e2-84e0-e44be0de66b8.png)