Initial commit for OpenECOMP SDN-C OA&M
[sdnc/oam.git] / admportal / views / partials / vlan.ejs
1    <div class="modal fade" 
2                 id="vlan-modal" tabindex="-1" role="dialog" 
3                 aria-labelledby="vlan-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">&times;</button>
8             <h4 class="modal-title">vlan</h4>
9           </div>
10           <div class="modal-body">
11             <form role="form" action="" method="POST">
12               <div class="form-group">
13                 <label for="vlan_interface">vlan-interface</label>
14                 <input type="text" class="form-control" name="vlan_interface" id="vlan_interface">
15               </div>
16               <div class="form-group">
17                 <label for="vlan_id_inner">vlan-id-inner</label>
18                 <input type="text" class="form-control" name="vlan_id_inner" id="vlan_id_inner">
19               </div>
20               <div class="form-group">
21                 <label for="vlan_id_outer">vlan-id-outer</label>
22                 <input type="text" class="form-control" name="vlan_id_outer" id="vlan_id_outer">
23               </div>
24
25 <!--
26               <div class="form-group">
27                                 <input type="hidden" name="uf_action" id="uf_action">
28                 <button type="button" class="btn btn-primary" onclick="submit(this.form);">Submit</button>
29                                 <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
30               </div>
31 -->
32            </form>
33           </div>
34       </div>
35     </div>
36   </div>
37
38 <script type="text/javascript">
39 function submit(form){
40         $('#vlan-modal').modal('hide');
41         form.action = form.uf_action.value;
42         form.submit();
43         return;
44 }
45 </script>
46