diff options
Diffstat (limited to 'snmpmapper/src/main/resources/templates')
3 files changed, 105 insertions, 18 deletions
diff --git a/snmpmapper/src/main/resources/templates/success.html b/snmpmapper/src/main/resources/templates/success.html new file mode 100644 index 0000000..c5a0d34 --- /dev/null +++ b/snmpmapper/src/main/resources/templates/success.html @@ -0,0 +1,34 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>Mapping File</title> + <style type="text/css"> + #fileUploadDiv { + text-align: center; + padding-top: 16px; + } + #fileUploadFormPage { + text-decoration: none; + text-align: center; + cursor: pointer; + } + #successMessage { + text-align: center; + color: green; + font-size: 25px; + padding-top: 17px; + } + </style> + </head> + <body> + <center> + <h2>Uploaded Mapping File </h2> + </center> + <div id="successMessage"> + <strong>Successfully Uploaded Mapping File</strong> + <a href="/">Submit another mapping file</a> + </div> + + </body> +</html>
\ No newline at end of file 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 diff --git a/snmpmapper/src/main/resources/templates/uploadform.html b/snmpmapper/src/main/resources/templates/uploadform.html new file mode 100644 index 0000000..89ef4c2 --- /dev/null +++ b/snmpmapper/src/main/resources/templates/uploadform.html @@ -0,0 +1,36 @@ +<!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> + <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 |