Metadata-Version: 1.1
Name: django-likert-field
Version: 0.0.2
Summary: A Likert field for Django models
Home-page: https://github.com/kelvinwong-ca/django-likert-field
Author: Kelvin Wong
Author-email: code@kelvinwong.ca
License: UNKNOWN
Description: django-likert-field
        ===================
        
        A Likert field for Django models. Useful for adding ratings star
        functionality.
        
        Installation
        ============
        
        This package depends on Six the Python compatibility toolkit
        
        ::
        
            pip install six
        
        ::
        
            pip install django-likert-field
        
        
        Basic usage
        ===========
        
        Use in the same manner as a regular model field::
        
            # models.py
            from likert_field.models import LikertField
            class PetShopSurvey(models.Model):
                i_like_snakes = LikertField()
        
            # Renders in add.html
            #
            # jQuery star rating widget should be able to grab by 'likert-field' class
            #
            <label for="id_i_like_snakes">I like snakes:</label>
            <input id="id_i_like_snakes" type="text" name="i_like_snakes"
             class="likert-field" />
        
            # detail.html
            #
            # assume 'survey' is context object holding instance
            #
            {% load likert_fa_stars %}
            {{ survey.i_like_snakes|fa_stars4|safe }}
        
            # Renders in detail.html
            #
            # assuming one-star Likert item score
            #
            <i class='fa fa-star likert-star'></i> ... other stars maybe...
        
Keywords: Likert,Django,Django-Likert-Field
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
