Skip to content

Gokujo/django-semanticui-form

 
 

Repository files navigation

Django Semantic UI form

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

Semantic (Fomantic) UI for Django Form.

A simple Django template tag to work with Semantic UI

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

Some fixes by me

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.

About

Twitter Bootstrap for Django Form

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 61.3%
  • HTML 38.7%