aboutsummaryrefslogtreecommitdiffstats
path: root/snmpmapper/src/main/resources/templates/uploadForm.html
diff options
context:
space:
mode:
Diffstat (limited to 'snmpmapper/src/main/resources/templates/uploadForm.html')
-rw-r--r--snmpmapper/src/main/resources/templates/uploadForm.html53
1 files changed, 35 insertions, 18 deletions
diff --git a/snmpmapper/src/main/resources/templates/uploadForm.html b/snmpmapper/src/main/resources/templates/uploadForm.html
index 22ffc68..89ef4c2 100644
--- a/snmpmapper/src/main/resources/templates/uploadForm.html
+++ b/snmpmapper/src/main/resources/templates/uploadForm.html
@@ -1,19 +1,36 @@
-<html xmlns:th="http://www.thymeleaf.org">
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>Mapping File</title>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
+</head>
+
<body>
-
- <div th:if="${message}">
- <h2 th:text="${message}"/>
- </div>
-
- <div>
- <form method="POST" enctype="multipart/form-data" action="/">
- <table>
- <tr><td>File to upload:</td><td><input type="file" name="file" /></td></tr>
- <tr><td></td><td><input type="submit" value="Upload" /></td></tr>
- </table>
- </form>
- </div>
-
-
-</body>
-</html>
+ <center>
+ <h2>Upload Mapping File</h2>
+ <form id="fileUploadForm" method="post" action="uploadFile" enctype="multipart/form-data">
+ <table id="fileUploadFormBeanTable" border="0" width="80%">
+ <tr>
+ <td>Enterprise ID:</td>
+ <td><input id="enterpriseid" type="text" name="eid" size="65" /></td>
+ </tr>
+ <tr>
+ <td>Mapping file:</td>
+ <td>
+ <input id="mappingfile" type="file" name="mapper" size="60" />
+ <span id="fileUploadErr">Please Upload A File!</span>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center"><input id="fileUploadBtn" type="submit" value="Upload" /></td>
+ </tr>
+ </table>
+ </form>
+ </center>
+ </body>
+</html> \ No newline at end of file