root / templates / add_port.html @ d0777394
History | View | Annotate | Download (513 Bytes)
1 | a67187d1 | Leonidas Poulopoulos | <script type="text/javascript"> |
---|---|---|---|
2 | a67187d1 | Leonidas Poulopoulos | $(document).ready(function(){
|
3 | a67187d1 | Leonidas Poulopoulos | $("#add_port_form").unbind('submit');
|
4 | a67187d1 | Leonidas Poulopoulos | $("#add_port_form").submit(function(){
|
5 | a67187d1 | Leonidas Poulopoulos | $("#port_diag").parents('.ui-dialog').first().find('.ui-button').first().click();
|
6 | a67187d1 | Leonidas Poulopoulos | return false;
|
7 | a67187d1 | Leonidas Poulopoulos | });
|
8 | a67187d1 | Leonidas Poulopoulos | });
|
9 | a67187d1 | Leonidas Poulopoulos | </script>
|
10 | 97e42c7d | Leonidas Poulopoulos | <form id="add_port_form" method="POST"> |
11 | 97e42c7d | Leonidas Poulopoulos | {% csrf_token %} |
12 | 97e42c7d | Leonidas Poulopoulos | <table>
|
13 | 97e42c7d | Leonidas Poulopoulos | <tr><th>Port</th><td>{{ form.port }}<span class="error" id='rl_error'>{{ form.port.errors|join:", " }}</span></td></tr> |
14 | 97e42c7d | Leonidas Poulopoulos | </table>
|
15 | a67187d1 | Leonidas Poulopoulos | </form>
|