<div class="input-group">
    <input type="{{ widget.type }}"
           name="{{ widget.name }}"
           {% if widget.value != None %}value="{{ widget.value }}"{% endif %}
           {% if widget.attrs.id %}id="{{ widget.attrs.id }}"{% endif %}
           {% for name, value in widget.attrs.items %} {% if value is not False and name != "id" %} {{ name }}{% if value is not True %}="{{ value }}"{% endif %}
           {% endif %}
           {% endfor %}
           class="form-control{% if widget.attrs.class %} {{ widget.attrs.class }}{% endif %}" />
    <span class="input-group-text">{{ widget.addon_text }}</span>
</div>
