chefsmart wrote: > I'm using django svn trunk. I have created several custom forms that > show up in the admin section of the website. However, these forms look > nothing like the admin forms. I tried extending change_form.html > template - unsuccessfully. > > Does anyone know what my template should contain to achieve admin look > and feel. > > Thanks...
Here is what I have been doing. I have been required to modify the change_form templates in the admin for some of the models. I open the "add model item" page, view the source of the page, and copy the HTML to a note pad. I then hack it, and use it to make the custom change_form template. I only copy and hack the HTML within the "breadcrumb" and "body content" blocks. The blocks above those, I copy from the change_form.html template provided in django/contrib/ admin/templates/admin. The custom pages I have made look no different than the Django Admin ones. ;) -- Ayaz Ahmed Khan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

