arteria / cmsplugin-contact-plus

With cmsplugin-contact-plus building custom forms for your django-cms project is a breeze. Now it's so easy to build the forms with exactly the fields you want in the order you want - with a minimal effort.
https://github.com/arteria/cmsplugin-contact-plus
BSD 3-Clause "New" or "Revised" License
30 stars 33 forks source link

Feature request: ChoiceField #56

Open racitup opened 6 years ago

racitup commented 6 years ago

I'd have thought it would be a fairly common requirement to have the user be able to select from a set of choices. For example, the subject line of an email selected from a set of options which makes it easier to filter emails.

philippeowagner commented 6 years ago

A PR that does not break compatibility is welcomed :)

racitup commented 6 years ago

Unfortunately I wasn't able to use this plugin because there wasn't a way to add a css class to the form input elements.

JurajKavka commented 6 years ago

Hi @racitup!

there wasn't a way to add a css class to the form input elements.

see my PR #57 and feel free to use my fork here. It implements custom css class only for EmailField and TextArea for now, because I don't have a time. Working example is here in two languages. But don't use it for testing mails please ;)

My fork also implements redirect after form submission to prevent form resubmission with page reload (thank you message goes via django message framework) and Invisible reCaptcha from Google. But as I said, You need custom templates for working version with my fork (mainly for recaptcha JS part and mentioned messages after redirect).