Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

django-semanticui-form

Project description

PyPI version https://travis-ci.org/peterbe/django-semanticui-form.png?branch=master https://coveralls.io/repos/peterbe/django-semanticui-form/badge.png?branch=master

Semantic UI for Django Form.

A simple Django template tag to work with Semantic UI

This project is a fork from django-bootstrap-form by tzangms.

Usage

Add semanticuiform to your INSTALLED_APPS.

At the top of your template load in our template tags:

{% load semanticui %}

Then to render your form:

<form class="ui form">
    <legend>Form Title</legend>
    {% csrf_token %}
    {{ form|semanticui }}
    <button class="ui button" type="submit">Submit</button>
</form>

To make the form with inline element, change the |semanticui template tag to |semanticui_inline.:

<form class="ui form">
    <legend>Form Title</legend>
    {% csrf_token %}
    {{ form|semanticui_inline }}
    <button class="ui button" type="submit">Submit</button>
    </form>

Demo

Not yet.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-semanticui-form, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_semanticui_form-0.0.1-py2-none-any.whl (6.6 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django_semanticui_form-0.0.1-py3-none-any.whl (6.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-semanticui-form-0.0.1.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page