earle/django-bootstrap — Issue #16: Django-bootstrap working with SessionWizardView (dev)
Author: Youpsla
Created: 2011-12-20 00:10:16+00:00
State: open

Hello,
I've try django-bootstrap working with SessionWizardView and my first step form is empty. Not really empty because the hidden field `````` is in the html source of the rendered page.

But others fields are not. I'm not enough django proof to find a solution but of course I agree testing.

It would be really great I think if the both can work together.

here is my code:

forms.py
```from bootstrap.forms import BootstrapForm, Fieldset

class Step1Form(BootstrapForm):

class Meta:
layout = (
Fieldset("Please Login", "email_adresse", "telephone", ),
)

email_adresse = forms.EmailField(max_length=255)
telephone = FRPhoneNumberField(required=False)```

views.py
```class InscriptionWizard(SessionWizardView):

def get_template_names(self):
return 'clients/session_wizard.html'```

and html:

```

{% csrf_token %}

{{ wizard.management_form }}

{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ form }}
{% endif %}

{% endblock %}
```

If you have any idea ... let me jnow.

Best regards an thanks a lots for the job.

Alain