Skip to content

alexmorozov/django-foundation-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-foundation-forms

Django templates for Zurb Foundation forms.

This module provides some template tags to make it easier to deal with forms markup. In contrast to the (excellent) crispy-forms app, foundation-forms doesn`t move the presentational layer to your Python code - just plain ol` templates.

You have the following template tags (nesting shows structure):

  • {% form %}
    • {% form_header %}
    • {% form_fields %}
      • {% form_field %}
        • {% form_field_label %}
        • {% form_field_widget %}
    • {% form_footer %}

Requirements:

Example

If you want to output the whole form, just do:

{% load foundation_forms %}
...
{% form your_form %}

or, to customize field output:

{% load foundation_forms %}
...
{% form_header your_form %}
{% form_field your_form.some_field %}
...
{% form_field_label your_form.other_field %}
{% form_field_widget your_form.other_field %}
...
{% form_footer your_form %}

feel free to override default templates for further customization.

About

Django templates for Zurb Foundation forms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published