aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r--pdf-as-web/src/main/webapp/WEB-INF/web.xml2
-rw-r--r--pdf-as-web/src/main/webapp/assets/img/mobileBKU.pngbin0 -> 9742 bytes
-rw-r--r--pdf-as-web/src/main/webapp/assets/img/onlineBKU.pngbin0 -> 6650 bytes
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp59
4 files changed, 46 insertions, 15 deletions
diff --git a/pdf-as-web/src/main/webapp/WEB-INF/web.xml b/pdf-as-web/src/main/webapp/WEB-INF/web.xml
index 81fa6dad..40642fcc 100644
--- a/pdf-as-web/src/main/webapp/WEB-INF/web.xml
+++ b/pdf-as-web/src/main/webapp/WEB-INF/web.xml
@@ -35,7 +35,7 @@
The Sign Servlet allows Users to Sign PDF Documents ...
</description>
<servlet-class>at.gv.egiz.pdfas.web.servlets.ExternSignServlet</servlet-class>
- <load-on-startup>5</load-on-startup>
+ <load-on-startup>0</load-on-startup>
</servlet>
<servlet>
<servlet-name>ProvidePDF</servlet-name>
diff --git a/pdf-as-web/src/main/webapp/assets/img/mobileBKU.png b/pdf-as-web/src/main/webapp/assets/img/mobileBKU.png
new file mode 100644
index 00000000..48e77934
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/img/mobileBKU.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/assets/img/onlineBKU.png b/pdf-as-web/src/main/webapp/assets/img/onlineBKU.png
new file mode 100644
index 00000000..2ec41892
--- /dev/null
+++ b/pdf-as-web/src/main/webapp/assets/img/onlineBKU.png
Binary files differ
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index 2dd79101..8aba0dff 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -1,21 +1,52 @@
+<%@page import="at.gv.egiz.pdfas.web.config.WebConfiguration"%>
<html>
<head>
<title>PDF-Signatur</title>
</head>
<body>
-<form role="form" action="Sign" method="POST" enctype="multipart/form-data">
- <div class="form-group">
- <label for="exampleInputFile">Signieren: </label>
- <input type="file" name="pdfFile" id="pdfFile">
- <p class="help-block">Zu signierende PDF Datei</p>
- </div>
- <div class="form-group">
- <button type="submit" value="jks" name="connector" class="btn btn-primary">JKS</button>
- <button type="submit" value="bku" name="connector" class="btn btn-primary">Lokale BKU</button>
- <button type="submit" value="onlinebku" name="connector" class="btn btn-primary">Online BKU</button>
- <button type="submit" value="mobilebku" name="connector" class="btn btn-primary">Handy</button>
- <button type="submit" value="moa" name="connector" class="btn btn-primary">MOA-SS</button>
- </div>
-</form>
+ <form role="form" action="Sign" method="POST"
+ enctype="multipart/form-data">
+ <input type="hidden" name="source" id="source" value="internal"/>
+ <div class="form-group <% if(request.getAttribute("FILEERR") != null) { %> has-error <% } %>">
+ <label for="exampleInputFile">Signieren: </label> <input type="file"
+ name="pdfFile" id="pdfFile" accept="application/pdf">
+ <p class="help-block">
+ <% if(request.getAttribute("FILEERR") != null) { %>
+ Bitte die zu signierende PDF Datei angeben.
+ <% } else { %>
+ Zu signierende PDF Datei
+ <% } %></p>
+ </div>
+ <% if(WebConfiguration.getOnlineBKUURL() != null ||
+ WebConfiguration.getLocalBKUURL() != null) { %>
+ <div class="form-group">
+ <!-- button type="submit" value="jks" name="connector" class="btn btn-primary">JKS</button-->
+ <label for="bku"><img src="assets/img/onlineBKU.png" /></label>
+ <% if(WebConfiguration.getLocalBKUURL() != null) { %>
+ <button type="submit" value="bku" name="connector"
+ class="btn btn-primary" id="bku">Lokale BKU</button>
+ <% } %>
+ <% if(WebConfiguration.getOnlineBKUURL() != null) { %>
+ <button type="submit" value="onlinebku" name="connector"
+ class="btn btn-primary" id="onlinebku">Online BKU</button>
+ <% } %>
+ </div>
+ <% } %>
+ <% if(WebConfiguration.getHandyBKUURL() != null) { %>
+ <div class="form-group">
+ <label for="mobilebku"><img src="assets/img/mobileBKU.png" /></label>
+ <button type="submit" value="mobilebku" name="connector"
+ class="btn btn-primary" id="mobilebku">Handy</button>
+ <!-- button type="submit" value="moa" name="connector" class="btn btn-primary">MOA-SS</button -->
+ </div>
+ <% } %>
+ <% if(WebConfiguration.getKeystoreEnabled()) { %>
+ <div class="form-group">
+ <button type="submit" value="jks" name="connector"
+ class="btn btn-primary" id="jks">Server Keystore</button>
+ <!-- button type="submit" value="moa" name="connector" class="btn btn-primary">MOA-SS</button -->
+ </div>
+ <% } %>
+ </form>
</body>
</html> \ No newline at end of file