{% extends "qommon/forms/widget.html" %}

{% block widget-control %}
{% for option in widget.get_options %}
 <label {% if option.disabled %}class="disabled"{% endif %}><input
   {% if option.selected %}checked="checked"
   {% elif widget.readonly or option.disabled %}disabled="disabled"{% endif %}
   {% for attr in widget.attrs.items %}{{attr.0}}="{{attr.1}}"{% endfor %}
   type="radio" name="{{ widget.name }}"
   value="{{ option.value }}"><span>{{ option.label }}</span></label>
   {% if not forloop.last %}{{ widget.delim|safe }}{% endif %}
{% endfor %}
{% endblock %}
