{% load i18n bootstrap3 %}
<form role="form" action="{% url 'abonapp:telephone_new' gid uname %}" method="post"> {% csrf_token %}
    <div class="modal-header primary">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title"><span class="glyphicon glyphicon-earphone"></span>{% trans 'Add telephone' %}</h4>
    </div>

    <div class="modal-body">

        {% bootstrap_icon 'earphone' as ic %}
        {% bootstrap_field form.telephone addon_before=ic %}

        {% bootstrap_icon 'user' as ic %}
        {% bootstrap_field form.owner_name addon_before=ic %}

        <div class="btn-group">
            <button type="submit" class="btn btn-success">
                <span class="glyphicon glyphicon-plus"></span> {% trans 'Add' %}
            </button>
            <button type="reset" class="btn btn-default">
                <span class="glyphicon glyphicon-remove-circle"></span> {% trans 'Reset' %}
            </button>
        </div>
    </div>

</form>
