Statistics
| Branch: | Tag: | Revision:

root / templates / add_port.html @ 62ee35d6

History | View | Annotate | Download (733 Bytes)

1
{% load i18n %}
2
<script type="text/javascript">
3
    $(document).ready(function(){
4
        $("#add_port_form").unbind('submit');
5
        $("#add_port_form").submit(function(){
6
            $("#port_diag").parents('.ui-dialog').first().find('.ui-button').first().click();
7
            return false;
8
        });
9
    });
10
</script>
11

    
12

    
13
    <form id="add_port_form" method="POST"  class="form-horizontal">
14
    {% csrf_token %}
15
                <div class="control-group {% if form.port.errors %} error {% endif %}">
16
                <label class="control-label" for="inputEmail">Port</label>
17
                <div class="control">{{ form.port }}
18
                {% if form.port.errors %}
19
                <span class="help-block">{{ form.port.errors|join:", " }}</span>
20
                {% endif %}
21
                </div>
22
                </div>
23
    </form>
24

    
25

    
26