44 lines
2.1 KiB
Plaintext
44 lines
2.1 KiB
Plaintext
|
<!doctype html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport"
|
||
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||
|
<title>Info</title>
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz" crossorigin="anonymous"></script>
|
||
|
<style>
|
||
|
th {text-align: left}
|
||
|
h2 {
|
||
|
margin-top: 16px;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body class="container">
|
||
|
<h2>Plačanje {{.Entry.Id}}</h2>
|
||
|
|
||
|
<table class="table">
|
||
|
<tr><th>Id: </th><td>{{.Entry.Id}}</td></tr>
|
||
|
<tr><th>Order id: </th><td>{{.Entry.OrderId}}</td></tr>
|
||
|
<tr><th>Transaction id: </th><td>{{.Entry.TransactionId.String}}</td></tr>
|
||
|
<tr><th>Ukupna vrijednost: </th><td>{{formatCurrency .Entry.TotalAmount}}</td></tr>
|
||
|
<tr><th>Jezik: </th><td>{{omitempty .Entry.Lang}}</td></tr>
|
||
|
<tr><th>Događaj: </th><td>{{.Entry.EventId}}</td></tr>
|
||
|
<tr><th>Stanje: </th><td>{{formatState .Entry.State}}</td></tr>
|
||
|
</table>
|
||
|
|
||
|
{{if eq .Entry.State "accepted"}}
|
||
|
<form class="mb-3" method="post" action="/viva/complete/{{.Entry.Id}}">
|
||
|
<div class="mb-3">
|
||
|
<label class="form-label" for="amount">Završi transakciju</label>
|
||
|
<input class="form-control" id="amount" required name="amount" type="number" value="{{formatCurrency2 .Entry.TotalAmount}}" step="0.01" min="0.01" max="{{formatCurrency2 .Entry.TotalAmount}}">
|
||
|
</div>
|
||
|
<button class="btn btn-primary" type="submit">Završi transakciju</button>
|
||
|
</form>
|
||
|
<form method="post" action="/viva/cancel/{{.Entry.Id}}">
|
||
|
<button class="btn btn-primary" type="submit">Otkaži transakciju</button>
|
||
|
</form>
|
||
|
{{end}}
|
||
|
</body>
|
||
|
</html>
|