diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-01-21 09:57:16 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-01-21 09:57:16 +0100 |
commit | 2436aa273f00dafb465c2342ea8e7297898915d2 (patch) | |
tree | 27cf115b4ec6d36f84b01b50acc403cf31b3ab6b /pdf-as-web/src/main/webapp/index.jsp | |
parent | 8d801ab37834b0f11c6a16c240d77da71a6ab816 (diff) | |
download | pdf-as-4-2436aa273f00dafb465c2342ea8e7297898915d2.tar.gz pdf-as-4-2436aa273f00dafb465c2342ea8e7297898915d2.tar.bz2 pdf-as-4-2436aa273f00dafb465c2342ea8e7297898915d2.zip |
Implementations for pdf-as-web and pdf-as-legacy
Diffstat (limited to 'pdf-as-web/src/main/webapp/index.jsp')
-rw-r--r-- | pdf-as-web/src/main/webapp/index.jsp | 59 |
1 files changed, 45 insertions, 14 deletions
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 |