aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp/index.jsp
diff options
context:
space:
mode:
authorThomas Felber <felber@student.tugraz.at>2015-05-11 00:54:45 -0700
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-07-13 09:48:47 +0200
commitdd7ba18d3a134f2becc2ad53f9b3d2191798e686 (patch)
tree775018ff0034f1f4e91b03a6b7cd9982f0f653ac /pdf-as-web/src/main/webapp/index.jsp
parent02d8f5c31877def18db70f72fdb54fe53b2c9f52 (diff)
downloadpdf-as-4-dd7ba18d3a134f2becc2ad53f9b3d2191798e686.tar.gz
pdf-as-4-dd7ba18d3a134f2becc2ad53f9b3d2191798e686.tar.bz2
pdf-as-4-dd7ba18d3a134f2becc2ad53f9b3d2191798e686.zip
switched to jspdf with pdf.js, added movable signatureblock prototype, updated js in order to make pdf.js work
Diffstat (limited to 'pdf-as-web/src/main/webapp/index.jsp')
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp43
1 files changed, 37 insertions, 6 deletions
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index e99ec4db..959e4203 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -10,6 +10,7 @@
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"></script>
<script src="assets/js/pdf.js/build/pdf.js"></script>
<script src="assets/js/dragNdrop.js"></script>
+
</head>
<body>
@@ -33,25 +34,54 @@
<h3 class="center">Sign Method</h3>
<fieldset>
<table>
+ <%
+ if (WebConfiguration.getHandyBKUURL() != null) {
+ %>
<tr>
- <td><input type="radio" id="mobileBKU" name="connector" value="mobileBKU" checked></td>
+ <td><input type="radio" id="mobileBKU" name="connector" value="mobilebku" checked></td>
<td><label for="mobileBKU">Handy</td>
<td><label for="mobileBKU"><img src="assets/img/mobileBKU.png" alt="Sign via mobile BKU"/></td>
</tr>
+ <%
+ }
+ %>
+ <%
+ if (WebConfiguration.getLocalBKUURL() != null) {
+ %>
<tr>
- <td><input type="radio" id="localBKU" name="connector" value="localBKU"></td>
+ <td><input type="radio" id="localBKU" name="connector" value="bku"></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>
+ <%
+ }
+ %>
+ <%
+ if (WebConfiguration.getOnlineBKUURL() != null) {
+ %>
<tr>
- <td><input type="radio" id="onlineBKU" name="connector" value="onlineBKU"></td>
+ <td><input type="radio" id="onlineBKU" name="connector" 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>
-
+ <%
+ }
+ %>
+ <%
+ if(WebConfiguration.getKeystoreDefaultEnabled()) {
+ %>
+ <tr>
+ <td><input type="radio" id="jks" name="connector" value="jks"></td>
+ <td><label for="jks">Server Keystore</label></td>
+ <td><label for="jks"><img src="assets/img/onlineBKU.png" alt="Sign via Server Keystore"/></label></td>
+ </tr>
+ <%
+ }
+ %>
+
</table>
</fieldset>
</div>
@@ -59,8 +89,8 @@
<div id="language" class="container">
<h3 class="center">Language</h3>
<fieldset>
- <input type="radio" id="EN" name="locale" value="EN" checked><label>Englisch</label><br>
- <input type="radio" id="DE" name="locale" value="DE"><label>Deutsch</label><br>
+ <input type="radio" id="EN" name="locale" value="EN" checked><label for="EN">Englisch</label><br>
+ <input type="radio" id="DE" name="locale" value="DE"><label for="DE">Deutsch</label><br>
</fieldset>
</div>
@@ -71,6 +101,7 @@
<div id="main" class="container">
+
<h3 class="center">Preview</h3>
<div id="content" class="center">
Please select the pdf file you want to sign!