root / templates / add_port.html @ 62ee35d6
History | View | Annotate | Download (733 Bytes)
1 | ab02d61c | Leonidas Poulopoulos | {% load i18n %} |
---|---|---|---|
2 | a67187d1 | Leonidas Poulopoulos | <script type="text/javascript"> |
3 | a67187d1 | Leonidas Poulopoulos | $(document).ready(function(){
|
4 | a67187d1 | Leonidas Poulopoulos | $("#add_port_form").unbind('submit');
|
5 | a67187d1 | Leonidas Poulopoulos | $("#add_port_form").submit(function(){
|
6 | a67187d1 | Leonidas Poulopoulos | $("#port_diag").parents('.ui-dialog').first().find('.ui-button').first().click();
|
7 | a67187d1 | Leonidas Poulopoulos | return false;
|
8 | a67187d1 | Leonidas Poulopoulos | });
|
9 | a67187d1 | Leonidas Poulopoulos | });
|
10 | a67187d1 | Leonidas Poulopoulos | </script>
|
11 | 62ee35d6 | Leonidas Poulopoulos | |
12 | 62ee35d6 | Leonidas Poulopoulos | |
13 | 62ee35d6 | Leonidas Poulopoulos | <form id="add_port_form" method="POST" class="form-horizontal"> |
14 | 62ee35d6 | Leonidas Poulopoulos | {% csrf_token %} |
15 | 62ee35d6 | Leonidas Poulopoulos | <div class="control-group {% if form.port.errors %} error {% endif %}"> |
16 | 62ee35d6 | Leonidas Poulopoulos | <label class="control-label" for="inputEmail">Port</label> |
17 | 62ee35d6 | Leonidas Poulopoulos | <div class="control">{{ form.port }} |
18 | 62ee35d6 | Leonidas Poulopoulos | {% if form.port.errors %} |
19 | 62ee35d6 | Leonidas Poulopoulos | <span class="help-block">{{ form.port.errors|join:", " }}</span> |
20 | 62ee35d6 | Leonidas Poulopoulos | {% endif %} |
21 | 62ee35d6 | Leonidas Poulopoulos | </div>
|
22 | 62ee35d6 | Leonidas Poulopoulos | </div>
|
23 | 62ee35d6 | Leonidas Poulopoulos | </form>
|
24 | 62ee35d6 | Leonidas Poulopoulos | |
25 | 62ee35d6 | Leonidas Poulopoulos |