Skip to main content

Author: Adam Cupiał

Contributors: Andrei Antoukh, Ben Lopatin

# Description

Formfields in django are not suited for HTML5, hence this app

# Installation

  1. clone repository git clone git://github.com/adamcupial/django-html5-forms.git, put it somewhere in your python path

  2. add ‘html5forms’ to INSTALLED_APPS (not required)

  3. use appropriate form fields in your forms (since the widgets requires some additional attributes passed from forms, you should use fields)

# Fields

## All fields

### Attributes
  • all the core attributes from django field

  • placeholder :text, which displays on the field when it is empty and unfocused

  • autofocus (true/false), automaticaly set focus to element on page load

## Html5CharField

widget: Html5TextInput

Typical CharField, most common field in the internet, allows datalist choices, which is great autocomplete feature

  • all the attr of django CharField

  • datalist: list or tuple, of words for autocompletion (sng like autocomplete in firefox or chrome)

## Html5PasswordField

widget: Html5PasswordInput

Typical PasswordField, does not allow datalist choices

  • all the attr of django CharField/PasswordField

## Html5SearchField

widget: Html5SearchInput

New field in HTML5 - the same as CharField only different input type, should be used in search fields, allows datalists

  • all the attr of django CharField/PasswordField

## Html5EmailField

widget: Html5EmailInput

## Html5UrlField

## Html5IntegerField

widget: Html5NumberInput

Attributes:
  • required = [True/False]

  • min_value

  • max_value

## Html5BooleanField

widget: Html5CheckboxInput

## Html5RangeField

widget: Html5RangeInput

Attributes:
  • same as Html5IntegerField

  • step

## Html5TelField

widget: Html5TelInput

New field in HTML5 - provides defaults for minimum and maximum length that should accept most phone numbers.

Attributes:
  • same as Html5CharField

Metadata

Release files for html5forms 0.0.3

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

Source distribution (sdist)

Source distribution for html5forms 0.0.3
File Size Uploaded Provenance
html5forms-0.0.3.tar.gz 6.4 kB Without provenance Details

Release files / html5forms-0.0.3.tar.gz

Download URL html5forms-0.0.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e90cb427ea6dc973bbd103222bd81ca493eda53c68ae72a4073ed3d6bbf16367
BLAKE2b-256 checksum
How to use checksums
11b2425c61339b4fa52f9249e72362ee4297206a6390aeb705e734f804c53055
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for html5forms 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

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