Hello,
I have a form where website visitor's enter in their billing,
shipping, and credit card info.  I want to give the user the ability
to preview their order information before they submit their order.
I've been reading about Django's 'Form Preview' module however I'm not
sure if that is what I want to use.  When previewed I would like for a
new window to appear that shows all of the information in the form and
then gives them the ability to submit or edit the form.  In reading
'Form Preview'...I guess when previewed the preview form appears on
top of the page and then the original form appears below that.  Is
there anyway to setup 'Form Preview' so that a smaller window appears
displaying their info?

Thanks

//////////////////////////////

Another question.

I'm currently trying to get this to work on my site however I keep
getting error messages.  Here is what I have so far:

urls.py

from mysite.app.preview import ContactFormFormPreview
from django import newforms as forms
from mysite.app.models import ContactForm

urlpatterns = patterns('',
(r'^post/$',
ContactFormFormPreview(forms.models.form_for_model(ContactForm))),

////////////////////////////////

preview.py

from django.contrib.formtools.preview import FormPreview
from mysite.app.models import ContactForm

class ContactFormFormPreview(FormPreview):

    def done(self, request, cleaned_data):
        return HttpResponseRedirect('/')

//////////////////

models.py

class ContactForm(forms.Form):
    b_firstname = forms.CharField(label = 'First Name')
    b_lastname = forms.CharField(label = 'Last Name')
    b_address = forms.CharField(label = 'Address')
    b_city = forms.CharField(label = 'City')
    etc...

//////////////////////

Whenever I try to access  '/post' page I get the following error:

AttributeError at /post/
type object 'ContactForm' has no attribute '_meta'


///////////////

Is there something wrong with the line
('forms.models.form_for_model(ContactForm)') calling a form instead of
a model?

Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to