Metadata-Version: 1.1
Name: django-starfield
Version: 1.0
Summary: A no-frills Django form widget for rating stars
Home-page: https://edugit.org/nik/django-starfield
Author: Dominik George
Author-email: nik@naturalnet.de
License: UNKNOWN
Description: Django stars widget
        ===================
        
        Description
        -----------
        
        This is a simple widget rendering so-called rating stars as input for an
        integer field. It is based solely on CSS 3, as laid out by `Martin Ivanov
        <http://experiments.wemakesites.net/css3-rating-stars-with-selection.html>`_.
        
        Usage
        -----
        
        Just add the Stars widget to any IntegerField in a Django form.
        
        .. code:: python
        
          from django import forms
          from django_starfield import Stars
        
          class StarsExampleForm(forms.Form):
              rating = forms.IntegerField(widget=Stars)
        
        The following aspects are configurable, both in the Django settings and when
        creating the widget (by passing an argument to Stars):
        
        +------------------------+-----------------------+---------+---------------------+-----------+
        | Aspect                 | Format                | Default | Setting name        | Argument  |
        +========================+=======================+=========+=====================+===========+
        | Number of stars        | integer               | 5       | STARFIELD_STARS     | stars     |
        +------------------------+-----------------------+---------+---------------------+-----------+
        | Character used as star | hexadecimal codepoint | 2605    | STARFIELD_CODEPOINT | codepoint |
        +------------------------+-----------------------+---------+---------------------+-----------+
        | Colour of stars        | HTML colour           | #f5b301 | STARFIELD_COLOUR    | colour    |
        +------------------------+-----------------------+---------+---------------------+-----------+
        
        Please note that some browsers render some Unicode characters, especially
        emojis, as images, so changing the font colour will not work.
        
        Differences
        -----------
        
        This is different from other star rating applications in that it provides
        only a widget returning its selction to any IntegerField. It is not a
        complete rating application, just a presentational widget for integer input.
        It is also different in that it depends only on CSS3, without any
        JavaScript.
        
Keywords: django,forms,widget,rating
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.0
Classifier: Framework :: Django :: 2.1
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
