diff options
| author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-01-28 16:05:21 +0100 | 
|---|---|---|
| committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-01-28 16:05:21 +0100 | 
| commit | d0c59a890be350ff1c39901e7fa94bf68c048065 (patch) | |
| tree | 10aef75582d15acf1c4f67d2a702e55c1b7d74fb /pdf-as-web/src/main/webapp | |
| parent | 7623d9b081af23191f307e1f06df7ce5508bf925 (diff) | |
| download | pdf-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')
| -rw-r--r-- | pdf-as-web/src/main/webapp/WEB-INF/decorators/default_layout.jsp | 43 | ||||
| -rw-r--r-- | pdf-as-web/src/main/webapp/index.jsp | 84 | 
2 files changed, 61 insertions, 66 deletions
| diff --git a/pdf-as-web/src/main/webapp/WEB-INF/decorators/default_layout.jsp b/pdf-as-web/src/main/webapp/WEB-INF/decorators/default_layout.jsp index 1179d48c..045fd2b9 100644 --- a/pdf-as-web/src/main/webapp/WEB-INF/decorators/default_layout.jsp +++ b/pdf-as-web/src/main/webapp/WEB-INF/decorators/default_layout.jsp @@ -5,37 +5,28 @@  <%@page contentType="text/html; charset=UTF-8"%>  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">  <head> -	<meta charset="utf-8"/> -	<meta http-equiv="X-UA-Compatible" content="IE=edge"/> -	<meta name="viewport" content="width=device-width, initial-scale=1.0"/> -	<meta name="description" content="PDF-Signatur"/> -	<meta name="author" content="EGIZ"/> -	<link rel="shortcut icon" href="assets/ico/favicon.png"/> +<meta charset="utf-8" /> +<meta http-equiv="X-UA-Compatible" content="IE=edge" /> +<meta name="viewport" content="width=device-width, initial-scale=1.0" /> +<meta name="description" content="PDF-Signatur" /> +<meta name="author" content="EGIZ" /> +<link rel="shortcut icon" href="assets/ico/favicon.png" /> -	<title><decorator:title></decorator:title></title>  -	<link href="assets/css/bootstrap.css" rel="stylesheet"/> - -	<link href="assets/css/pdfas.css" rel="stylesheet"/> -	<decorator:head></decorator:head> +<title><decorator:title></decorator:title></title> +<decorator:head></decorator:head>  </head>  <body> -	<div class="container"> -		<div class="header"> -			<h3 class="text-muted">PDF-Signatur</h3> -		</div> - -		<div class="row marketing"> -			<div class="col-lg-12"> -				<decorator:body></decorator:body> -			</div> -		</div> +	<p> +	<h3>PDF-Signatur</h3> +	</p> -		<div class="footer"> -			<p>© EGIZ 2014</p> -		</div> +	<p> +		<decorator:body></decorator:body> +	</p> -	</div> -	<!-- /container --> +	<p> +		<p>© EGIZ 2014</p> +	</p>  </body>  </html>
\ No newline at end of file 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 | 
