Initial commit for OpenECOMP SDN-C OA&M
Change-Id: I7ab579fd0d206bf356f36d52dcdf4f71f1fa2680
Signed-off-by: Timoney, Daniel (dt5972) <dtimoney@att.com>
Former-commit-id: 2a9f0edd09581f907e62ec4689b5ac94dd5382ba
diff --git a/admportal/views/partials/interface.ejs b/admportal/views/partials/interface.ejs
new file mode 100644
index 0000000..c8afce9
--- /dev/null
+++ b/admportal/views/partials/interface.ejs
@@ -0,0 +1,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">×</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>
+