Skip to main content

Django Foundation Formtags

https://travis-ci.org/chrisdev/django-foundation-formtags.svg?branch=master Updates

Django template tags to work with Zurb Foundation forms

Getting Started

Create a virtualenv:

$ virtualenv my-env

At the command line:

$ pip install django-foundation-formtags

Usage

To start use django-foundation-forms in a project you must include in your settings:

INSTALLED_APPS = (
    'foundation_formtags',
)

In the template load foundation tags by:

{% load foundation_formtags %}

To use the django-form-foundation filter:

<form class="form" action="{{ url }}" method="POST">
    {% csrf_token %}
    {{ form|as_foundation }}
</form>

To use the django-form-foundation field tags:

<form class="form" action="{{ url }}" method="POST">
    {% csrf_token %}
    {% render_field form.name %}

    {% render_field form.subject %}

    {% render_field form.message %}
</form>

Required versus optional fields

The normal behaviour is to mark required fields with *. If you want to mark only optional fields, you can add the following setting to your project settings file.

FOUNDATION_FORMTAGS_USE_OPTIONAL = True

To learn more about optional fields read this blog.

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

History

0.1.0 (2017-06-05)

  • Provide users option to use * or optional

0.0.9 (2017-06-05)

  • Cleaned up travis configuration for tox to improve testing

0.0.8 (2017-05-09)

  • Make it Compatible with Django 1.11

0.0.7 (2016-09-25)

  • Make Compatible with Django 1.10

  • Minimum version is now Django 1.8. For earlier versions of Django use 0.0.6

0.0.6 (2016-08-05)

Fix for checkbox rendering and New error class for Non field errors in Foundation 6

0.0.5 (2016-07-12)

  • First release on PyPI.

Metadata

Release files for django-foundation-formtags 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-foundation-formtags 0.1.0
File Size Uploaded Provenance Actions
django-foundation-formtags-0.1.0.tar.gz 21.1 kB Without provenance Details for django-foundation-formtags-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-foundation-formtags 0.1.0
File Interpreter ABI Platform Actions
django_foundation_formtags-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_foundation_formtags-0.1.0-py2.py3-none-any.whl

Total release size: 35.2 kB

Release files / django-foundation-formtags-0.1.0.tar.gz

Download URL django-foundation-formtags-0.1.0.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
22adc83b36a66c24e0e20df29bd2dc0d7b217e2cb40b39d9655aa9d0cd74ac3a
BLAKE2b-256 checksum
How to use checksums
e5fb84c7efe02c343237797c1c9c0dc9d099837fb153c1fcfcb5d5e268293934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_foundation_formtags-0.1.0-py2.py3-none-any.whl

Download URL django_foundation_formtags-0.1.0-py2.py3-none-any.whl
Size 14.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
be3a3915a5fc0c64b2318074c72b14246406eb1bb18b09e4dfb08c3f2e454c8e
BLAKE2b-256 checksum
How to use checksums
24bf6e53d56078defe9b6253b2a2142195b0e130ec60d14f6296bbc4ea3c2468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-foundation-formtags 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page