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