aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp/index.jsp
diff options
context:
space:
mode:
authorThomas Felber <felber@student.tugraz.at>2015-04-10 05:23:28 -0700
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-07-13 09:48:46 +0200
commit21298359e6fe6eec9a4083f8ed8c23e88338b5ff (patch)
tree0ace5670472af797424f766dc7df306e395bb9bd /pdf-as-web/src/main/webapp/index.jsp
parentf2b754b03a2c1c4ff20c2c34387ecfcdc3ce1c16 (diff)
downloadpdf-as-4-21298359e6fe6eec9a4083f8ed8c23e88338b5ff.tar.gz
pdf-as-4-21298359e6fe6eec9a4083f8ed8c23e88338b5ff.tar.bz2
pdf-as-4-21298359e6fe6eec9a4083f8ed8c23e88338b5ff.zip
added html, css, js
Diffstat (limited to 'pdf-as-web/src/main/webapp/index.jsp')
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp85
1 files changed, 78 insertions, 7 deletions
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index f3a3b957..0c35bc52 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -1,14 +1,82 @@
<%@page import="at.gv.egiz.pdfas.web.config.WebConfiguration"%>
<%@page import="at.gv.egiz.pdfas.web.helper.PdfAsHelper"%>
+<!doctype html>
<html>
<head>
-<title>PDF-Signatur</title>
+ <meta charset="utf-8">
+ <title>PDF-Signatur</title>
+ <link rel="stylesheet" href="assets/css/style.css">
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
+ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
+ <script src="assets/js/dragNdrop.js"></script>
+ <script src="assets/js/jspdf/jspdf.js"></script>
</head>
<body>
- <form action="Sign" method="POST"
+ <header>
+ <p>header</p>
+</header>
+
+ <div id="leftMain">
+
+ <div id="fileSelector" class="container">
+ <h3 class="center">File Selector</h3>
+ <div id="dropzone" class="center">
+ Drag and Drop your Document here ...
+ </div>
+ <div id="traditionalUpload">
+ <p>... or select File here</p>
+ <input type="file" name="pdf-file" id="pdf-file" accept="application/pdf">
+ </div>
+ </div>
+
+ <div id="signMethod" class="container">
+ <h3 class="center">Sign Method</h3>
+ <fieldset>
+ <table>
+ <tr>
+ <td><input type="radio" id="handy" name="sign" value="handy"></td>
+ <td><label for="handy">Handy</td>
+ <td><label for="handy"><img src="assets/img/mobileBKU.png" alt="Sign via mobile BKU"/></td>
+
+ </tr>
+ <tr>
+ <td><input type="radio" id="localBKU" name="sign" value="localBKU" checked></td>
+ <td><label for="localBKU">Lokale BKU</label></td>
+ <td><label for="localBKU"><img src="assets/img/onlineBKU.png" alt="Sign via local BKU" /></label></td>
+
+ </tr>
+ <tr>
+ <td><input type="radio" id="onlineBKU" name="sign" value="onlineBKU"></td>
+ <td><label for="onlineBKU">Online BKU</label></td>
+ <td><label for="onlineBKU"><img src="assets/img/onlineBKU.png" alt="Sign via online BKU"/></label></td>
+
+ </tr>
+
+ </table>
+ </fieldset>
+ </div>
+
+ <div id="language" class="container">
+ <h3 class="center">Language</h3>
+ <fieldset>
+ <input type="radio" id="langEn" name="lang" value="langEn" checked><label>Englisch</label><br>
+ <input type="radio" id="langDe" name="lang" value="langDe"><label>Deutsch</label><br>
+ </fieldset>
+ </div>
+ </div>
+
+
+ <div id="main" class="container">
+ <h3 class="center">Preview</h3>
+ <div id="content" class="center">
+ Please select the pdf file you want to sign!
+ </div>
+ </div>
+
+ <!--<form action="Sign" method="POST"
enctype="multipart/form-data">
<input type="hidden" name="source" id="source" value="internal" />
- <input type="file" name="pdf-file" id="pdf-file" accept="application/pdf">
+ <input type="file" name="pdf-file" id="pdf-file" accept="application/pdf">
<%
if (request.getAttribute("FILEERR") != null) {
%>
@@ -21,7 +89,7 @@
<%
if (WebConfiguration.getLocalBKUURL() != null) {
%>
- <img src="assets/img/onlineBKU.png" /> <button type="submit"
+ <img src="assets/img/onlineBKU.png" alt="Sign via local BKU" /> <button type="submit"
value="bku" name="connector" id="bku">Lokale BKU
</button>
<%
@@ -30,7 +98,7 @@
<%
if (WebConfiguration.getOnlineBKUURL() != null) {
%>
- <img src="assets/img/onlineBKU.png" />
+ <img src="assets/img/onlineBKU.png" alt="Sign via online BKU"/>
<button type="submit" value="onlinebku" name="connector"
id="onlinebku">Online BKU</button>
<%
@@ -39,7 +107,7 @@
<%
if (WebConfiguration.getHandyBKUURL() != null) {
%>
- <img src="assets/img/mobileBKU.png" />
+ <img src="assets/img/mobileBKU.png" alt="Sign via mobile BKU"/>
<button type="submit" value="mobilebku" name="connector" id="mobilebku">Handy</button>
<%
}
@@ -68,6 +136,9 @@
</form>
- <p><small>Version: <%= PdfAsHelper.getVersion() %> - <%= PdfAsHelper.getSCMRevision() %></small></p>
+ <p><small>Version: <%= PdfAsHelper.getVersion() %> - <%= PdfAsHelper.getSCMRevision() %></small></p>-->
+ <footer>
+ <p>footer</p>
+ </footer>
</body>
</html> \ No newline at end of file