<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name='description' content='Authentication app'>
<meta name='keywords' content='rkvac, smart-card authentication'>
<meta name='author' content='Bronislav Strava'>
<meta name='robots' content='all'>
<link href='/img/favicon2.png' rel='shortcut icon' type='image/png'>
<title>Administration</title>
	<!--	<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
    <link rel="stylesheet"
        href="https://use.fontawesome.com/releases/v5.4.1/css/all.css"
        integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz"
        crossorigin="anonymous">
    -->
	<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" type="text/css">
	<link rel="stylesheet" th:href="@{/css/fontawesome/css/all.css}" type="text/css">
</head>
<body>

	<div class="container my-2">
		<div class="card">
			<div class="card-header">
				<ul class="nav nav-tabs card-header-tabs">
					<li class="nav-item">
						<a class="nav-link" aria-current="true" href="/admin/list">Credentials</a>
					</li>
					<li class="nav-item">
						<a class="nav-link active" href="/admin/parameters">Parameters</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="/admin/logs">Logs</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="/admin/settings">Settings</a>
					</li>
					<li class="nav-item">
						<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Administration </a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="/admin/download-log"><i class="fas fa-arrow-circle-down" style="color:black"></i></a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="/logout"><i class="fas fa-sign-out-alt" style="color:black"></i></a>
					</li>
				</ul>
			</div>
			<div class="card-body">
				<div class="row">
				<div class="col-md-4">
					<div class="card w-80">
						<div class="card-body">
							<h5 class="card-title">ra_pk.dat <a href="/admin/parameters/download-rapk"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
								<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>
								<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>
							</svg></a></h5>
							<p class="card-text">By pressing this button gets file containing Revocation Authority Public Key deleted.</p>
							<p class="mb-0 fw-bold" th:text="${ra_pk}"></p>
							<hr>
							<form method="POST" action="/admin/parameters/upload" enctype="multipart/form-data">
							<input type="file" class="form-control" id="ra_pk" name="file"/>
							<a href="/admin/parameters/ra_pk_del" class="btn btn-primary">Delete</a>
							<button type="submit" class="btn btn-secondary"/><i class="fas fa-cloud-upload-alt">Upload</i>
							</form>
						</div>
					</div>
				</div>
					<div class="col-md-4">
						<div class="card w-80">
							<div class="card-body">
								<h5 class="card-title">ie_sk.dat <a href="/admin/parameters/download-iesk"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
									<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>
									<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>
								</svg></a></h5>
								<p class="card-text">By pressing this button gets file containing Issuer Entity Private Key deleted.</p>
								<p class="mb-0 fw-bold" th:text="${ie_sk}"></p>
								<hr>
								<form method="POST" action="/admin/parameters/upload" enctype="multipart/form-data">
									<input type="file" class="form-control" id="ie_sk" name="file"/>
									<a href="/admin/parameters/ie_sk_del" class="btn btn-primary">Delete</a>
									<button type="submit" class="btn btn-secondary"/><i class="fas fa-cloud-upload-alt">Upload</i>
								</form>

							</div>
						</div>
					</div>
					<div class="col-md-4">
						<div class="card w-80">
							<div class="card-body">
								<h5 class="card-title">ra_public_parameters.dat <a href="/admin/parameters/download-ra-pub-params"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
									<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>
									<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>
								</svg></a></h5>
								<p class="card-text">By pressing this button gets file containing RA Public Parameters get deleted.</p>
								<p class="mb-0 fw-bold" th:text="${ra_pub}"></p>
								<hr>
								<form method="POST" action="/admin/parameters/upload" enctype="multipart/form-data">
									<input type="file" class="form-control" id="ra_pub_params" name="file"/>
									<a href="/admin/parameters/ra_pub_params_del" class="btn btn-primary">Delete</a>
									<button type="submit" class="btn btn-secondary"/><i class="fas fa-cloud-upload-alt">Upload</i>
								</form>

							</div>
						</div>
					</div>
				</div>


			</div>
		</div>
	</div>
</body>
</html>