summaryrefslogtreecommitdiffstats
path: root/admportal/views/partials/interface.ejs
blob: c8afce9ca2a04a5727d42b1b748e6a7bb6875b12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
   <div class="modal fade" 
		id="interface-modal" tabindex="-1" role="dialog" 
		aria-labelledby="interface-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">&times;</button>
            <h4 class="modal-title">interface</h4>
          </div>
          <div class="modal-body">
            <form role="form" action="" method="POST">
              <div class="form-group">
                <label for="interface_name">interface-name</label>
                <input type="text" class="form-control" name="interface_name" id="interface_name">
              </div>
              <div class="form-group">
                <label for="interface_role">interface_role</label>
                <input type="text" class="form-control" name="interface_role" id="interface_role">
              </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){
	$('#interface-modal').modal('hide');
	form.action = form.uf_action.value;
	form.submit();
	return;
}
</script>