Does this get at what you want to accomplish?
https://docs.djangoproject.com/en/1.1/ref/contrib/formtools/form-wizard/

_Nik

On 9/18/2012 1:00 PM, Ndlovu wrote:
> How do I add a simple button, that does  fuction loading another
> *.html page. Basically a basic next button.
>
> My forms class looks like:
>
> forms.py:
>
> # -*- coding: utf-8 -*-
> from django import forms
>
> class ButtonForm(forms.Form):
>  
>      #what do put here as for the button
>     )
>
>
> The views class:
>
> views.py:
>
> # -*- coding: utf-8 -*-
> from django.shortcuts import render_to_response
> from django.template import RequestContext
> from django.http import HttpResponseRedirect
> from django.core.urlresolvers import reverse
>
> from myproject.myapp.forms import ButtonForm
>
> def list(request):
>
> #This is where I need to implement the button action. 
>
> where I add the button on the *.html file:
>
> <form action="{% url list %}" method="next" enctype="multipart/form-data">
>     {% csrf_token %}
>
>     <input type="button" name="next" value="Next" onclick="open_win()" />
> </form>
>
> thanks.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/6VXaVdPZnvIJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to