Hi all,

I'm working through a simple wizard using the formtools wizard stuff.
My issue is that my forms don't display with niceties such as date
time popup and foreign key 'add' options.  Is there something extra
that has to be done for these features?

Just as a simple test, I reduced things to this:

in forms.py:

class EstimateForm1(forms.Form):
    start_on = forms.DateField(widget=forms.DateTimeInput)

class EstimateWizard(FormWizard):
    def done(self, request, form_list):
        return render_to_response('done.html', {
            'form_data': [form.cleaned_data for form in form_list],
        })


in urls.py

   (r'^estimate/$', EstimateWizard([EstimateForm1])),


and wizard.html:

{% extends "admin/base_site.html" %}

{% block content %}
<p>Step {{ step }} of {{ step_count }}</p>
<form action="." method="post">
<table>
{{ form.as_table }}
</table>
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{{ previous_fields|safe }}
<input type="submit" value="Next">
</form>
{% endblock %}

Thanks for any help,
DAve

--~--~---------~--~----~------------~-------~--~----~
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