{% extends "admin/base_site.html" %} {% load i18n %} {% block bodyclass %}grp-doc{% endblock %} {% block content-class %}{% endblock %} {% block title %}Grappelli Documentation » Form Fields{% endblock %} {% block extrahead %} {% endblock %} {% block breadcrumbs %}
Of course you may use all common type of form fields with Grappelli.
There are some classes and specific types of form fields which are explained below.
To mark a label as required simply add the class .required.
Labels are outside Grappellis namespace because they come from the depth of Django.
{% filter force_escape %}
{% endfilter %}
The following classes basically handle the widths of form fields in different contexts.
They apply only to form fields which are not children of any grid-container (e.g. .g-d-c or .g-d-24).
Form fields which are children of a grid-container always stretch to 100% width.
For more detailled informations about the grid Grappelli uses take a look at the grid system we use.
Form fields which can be read only are represented as p.grp-readonly.
{% filter force_escape %}
{% endfilter %}
Please take a look at errors in forms.