aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/webapp/index.jsp
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-01-28 16:05:21 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-01-28 16:05:21 +0100
commitd0c59a890be350ff1c39901e7fa94bf68c048065 (patch)
tree10aef75582d15acf1c4f67d2a702e55c1b7d74fb /pdf-as-web/src/main/webapp/index.jsp
parent7623d9b081af23191f307e1f06df7ce5508bf925 (diff)
downloadpdf-as-4-d0c59a890be350ff1c39901e7fa94bf68c048065.tar.gz
pdf-as-4-d0c59a890be350ff1c39901e7fa94bf68c048065.tar.bz2
pdf-as-4-d0c59a890be350ff1c39901e7fa94bf68c048065.zip
URL Whitelist + Basic Design
Diffstat (limited to 'pdf-as-web/src/main/webapp/index.jsp')
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp84
1 files changed, 44 insertions, 40 deletions
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index 8aba0dff..355c7838 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -6,47 +6,51 @@
<body>
<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">
+ <input type="hidden" name="source" id="source" value="internal" /> <input
+ type="file" name="pdfFile" id="pdfFile" accept="application/pdf">
+ <%
+ if (request.getAttribute("FILEERR") != null) {
+ %>
+ <p>Bitte die zu signierende PDF Datei angeben.</p>
+ <%
+ }
+ %>
+
+
+ <%
+ if (WebConfiguration.getLocalBKUURL() != null) {
+ %>
+ <img src="assets/img/onlineBKU.png" /> <input type="submit"
+ value="bku" name="connector" id="bku">Lokale BKU
+ </button>
+ <%
+ }
+ %>
+ <%
+ if (WebConfiguration.getOnlineBKUURL() != null) {
+ %>
+ <img src="assets/img/onlineBKU.png" />
+ <button type="submit" value="onlinebku" name="connector"
+ id="onlinebku">Online BKU</button>
+ <%
+ }
+ %>
+ <%
+ if (WebConfiguration.getHandyBKUURL() != null) {
+ %>
+ <img src="assets/img/mobileBKU.png" />
+ <button type="submit" value="mobilebku" name="connector" id="mobilebku">Handy</button>
+ <%
+ }
+ %>
+ <%
+ if (WebConfiguration.getKeystoreEnabled()) {
+ %>
<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>
- <% } %>
+ id="jks">Server Keystore</button>
+ <%
+ }
+ %>
</form>
</body>
</html> \ No newline at end of file