It sounds like you're after a custom template tag:
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/

On Jan 4, 2:31 pm, Ashish <traderash...@gmail.com> wrote:
> I want to have a common html form with only a dropdown and a submit
> button on all pages.
> It will placed in one corner and user can select say a particular
> account from the drop down and press submit. I will save the selection
> in session.
> All screens then will display the data related to that customer
> account till user changes the account again from that drop down.
> the screens can have other html forms on the pages.
>
> any suggestions on how do I best implement this common form with
> dropdown without replicating the code for it in all views for all the
> screens.
>
> 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 
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