mirror of
https://github.com/number571/blockchain.git
synced 2026-09-12 19:50:00 +05:00
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{{define "title"}}
|
|
Rents
|
|
{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="jumbotron">
|
|
<div class="col-12 mx-auto">
|
|
<form method="POST" action="/blockchain/rents">
|
|
<div class="form-group">
|
|
{{ if .Address }}
|
|
<input readonly class="form-control bg-light" type="text" name="coins" value="Address: {{ .Address }}">
|
|
{{ end }}
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="text" class="form-control" name="address" placeholder="Address">
|
|
</div>
|
|
<input type="submit" class="btn btn-success w-100" name="submit" value="Get rents">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="jumbotron">
|
|
{{ if .Error }}
|
|
Error: {{ .Error }}
|
|
{{ else }}
|
|
{{ range $i, $e := .Blocks }}
|
|
<div class="card">
|
|
<a class="btn btn-info" href="/blockchain/rents/{{$e}}">[Rents {{ $e }}]</a>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{end}}
|