.. contents::

=================
Django form admin
=================

Information
===========

It is a Django application that lets to render forms like django admin, with the same HTML


How to use it
=============

In your form:

::

    class FooForm(forms.Form, FormAdminDjango):
        pass

    class FooModelForm(forms.ModelForm, FormAdminDjango):
        pass

In your template:

::

    {{ form.as_django_admin }}

Or Now (version >= 3.1.2) you don't need inherit of FormAdminDjango

::

    class FooForm(forms.Form):
        ...

        def as_django_admin(self):
            from formadmin.forms import as_django_admin
            return as_django_admin(self)


Development
===========

You can get the last bleeding edge version of autoreports by doing a checkout
of its subversion repository::

  svn co http://svnpub.yaco.es/djangoapps/formadmin/trunk/formadmin
