| <div class="modal fade" |
| id="vlan-modal" tabindex="-1" role="dialog" |
| aria-labelledby="vlan-modal-label" aria-hidden="true"> |
| <div class="modal-dialog"> |
| <div class="modal-content"> |
| <div class="modal-header"> |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| <h4 class="modal-title">vlan</h4> |
| </div> |
| <div class="modal-body"> |
| <form role="form" action="" method="POST"> |
| <div class="form-group"> |
| <label for="vlan_interface">vlan-interface</label> |
| <input type="text" class="form-control" name="vlan_interface" id="vlan_interface"> |
| </div> |
| <div class="form-group"> |
| <label for="vlan_id_inner">vlan-id-inner</label> |
| <input type="text" class="form-control" name="vlan_id_inner" id="vlan_id_inner"> |
| </div> |
| <div class="form-group"> |
| <label for="vlan_id_outer">vlan-id-outer</label> |
| <input type="text" class="form-control" name="vlan_id_outer" id="vlan_id_outer"> |
| </div> |
| |
| <!-- |
| <div class="form-group"> |
| <input type="hidden" name="uf_action" id="uf_action"> |
| <button type="button" class="btn btn-primary" onclick="submit(this.form);">Submit</button> |
| <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
| </div> |
| --> |
| </form> |
| </div> |
| </div> |
| </div> |
| </div> |
| |
| <script type="text/javascript"> |
| function submit(form){ |
| $('#vlan-modal').modal('hide'); |
| form.action = form.uf_action.value; |
| form.submit(); |
| return; |
| } |
| </script> |
| |