Skip to content
Snippets Groups Projects
Verified Commit c217bc7e authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add stylesheet to replace labelcontent.

parent bb3d3864
No related branches found
No related tags found
No related merge requests found
{% load static %} {% load static %}
<div class="django-starfield"> <div class="django-starfield" id="django-starfield-{{ widget.name }}">
{% for i in stars %}<!-- {% for i in stars %}<!--
--><input type="radio" name="{{ widget.name }}" id="{{ widget.name }}-{{ forloop.counter0 }}" --><input type="radio" name="{{ widget.name }}" id="{{ widget.name }}-{{ forloop.counter0 }}"
value="{{ i }}" {% if widget.value == i %}checked="checked"{% endif %} /><!-- value="{{ i }}" {% if widget.value == i %}checked="checked"{% endif %} /><!--
--><label for="{{ widget.name }}-{{ forloop.counter0 }}" --><label for="{{ widget.name }}-{{ forloop.counter0 }}">{{ i }}</label><!--
style="content: '\{{ codepoint }}'">{{ i }}</label><!--
-->{% endfor %} -->{% endfor %}
</div> </div>
<link rel="stylesheet" href="{% static 'django_starfield.css' %}" /> <link rel="stylesheet" href="{% static 'django_starfield.css' %}" />
<style type="text/css">
#django-starfield-{{ widget.name }} label {
content: '\{{ codepoint }}';
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment