Skip to content

Create contact form #1

Description

@cummingscs

It's on Julia's design, we don't have it yet in the code. Probably something simple, like this [1]. Will probably go to the groups private gmail address when a site visitor submits.

UPDATES:

  • For now, will just submit against the home-page URL and return to that page with a message (using the django messages framework), and the form at the bottom will be reset.
  • Also need to investigate how caching works on a page with a form and a message after form submission.

[1] https://bitbucket.org/ubernostrum/django-contact-form/

Activity

  1. cummingscs commented on Aug 20, 2011

    @cummingscs
    MemberAuthor

    I've heard Mark may have wanted to do this? I'll leave some time for him or whoever else wants to pick this up. If I run out of other things to do I'll probably pick it up.

  2. cummingscs commented on Aug 29, 2011

    @cummingscs
    MemberAuthor

    I poked at the contact form a bit tonight. Progress checked in at [1]. Code review welcome, especially on the styles. I plan on continuing with this tomorrow evening, etc.

    Remaining:

    • Style form error messages in some acceptable manner
    • Deal with the web-kit text-area placeholder style wrapping issue [2]
    • Code up form submission.
    • Code up fallback from HTML5 placeholders [3]
    • Code up the successful-POST message on homepage
    • Setup an email backend and code up the message-send

    [1] a212a00
    [2] http://stackoverflow.com/questions/4461414/html5-placeholder-attribute-chrome-doesnt-line-wrap-in-textareas
    [3] http://css-tricks.com/6841-textarea-tricks/

  3. cummingscs commented on Sep 6, 2011

    @cummingscs
    MemberAuthor

    Made a decent amount of progress in a series of short spurts between chasing kids around this weekend :). This is up and running here right now:

    http://pythonkc.com/demo

    Andrew, could you please test the contact form and see that an email comes to the pythonkc@gmail inbox. The email templates are very simple. If there's anything you'd like changed about them, lemme know or just go edit [1].

    Finished

    • Form submission
    • Emailing based on contact form submission
    • Form field error messages styled consistently with original page design (at least as best as can be done with my judgement :))

    Remaining

    • Deal with the web-kit text-area placeholder style wrapping issue [2]
    • Code up fallback from HTML5 placeholders [3]
    • Code up the successful-POST message on homepage (I might just do this real quick tonight...)

    [1] https://github.com/pythonkc/pythonkc.com/tree/master/pythonkc_site/contact/templates/pythonkc_site/contact
    [2] http://stackoverflow.com/questions/4461414/html5-placeholder-attribute-chrome-doesnt-line-wrap-in-textareas
    [3] http://css-tricks.com/6841-textarea-tricks/

  4. cummingscs commented on Sep 6, 2011

    @cummingscs
    MemberAuthor

    Added a message for after contact-form submission. You can view it directly without submitting here:

    http://pythonkc.com/demo?contact_sent=yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions