Timoney, Daniel (dt5972) | 324ee36 | 2017-02-15 10:37:53 -0500 | [diff] [blame] | 1 | <div class="modal fade" |
| 2 | id="interface-modal" tabindex="-1" role="dialog" |
| 3 | aria-labelledby="interface-modal-label" aria-hidden="true"> |
| 4 | <div class="modal-dialog"> |
| 5 | <div class="modal-content"> |
| 6 | <div class="modal-header"> |
| 7 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> |
| 8 | <h4 class="modal-title">interface</h4> |
| 9 | </div> |
| 10 | <div class="modal-body"> |
| 11 | <form role="form" action="" method="POST"> |
| 12 | <div class="form-group"> |
| 13 | <label for="interface_name">interface-name</label> |
| 14 | <input type="text" class="form-control" name="interface_name" id="interface_name"> |
| 15 | </div> |
| 16 | <div class="form-group"> |
| 17 | <label for="interface_role">interface_role</label> |
| 18 | <input type="text" class="form-control" name="interface_role" id="interface_role"> |
| 19 | </div> |
| 20 | |
| 21 | <!-- |
| 22 | <div class="form-group"> |
| 23 | <input type="hidden" name="uf_action" id="uf_action"> |
| 24 | <button type="button" class="btn btn-primary" onclick="submit(this.form);">Submit</button> |
| 25 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
| 26 | </div> |
| 27 | --> |
| 28 | </form> |
| 29 | </div> |
| 30 | </div> |
| 31 | </div> |
| 32 | </div> |
| 33 | |
| 34 | <script type="text/javascript"> |
| 35 | function submit(form){ |
| 36 | $('#interface-modal').modal('hide'); |
| 37 | form.action = form.uf_action.value; |
| 38 | form.submit(); |
| 39 | return; |
| 40 | } |
| 41 | </script> |
| 42 | |