Zdalne-systemy-z-kit-uVPN/templates/images.html
2023-04-25 09:21:53 +02:00

41 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Obrazy{% endblock %}
{% block style %}
{% endblock %}
{% block content %}
<div class="container">
<h1 class="my-4 mx-auto">Lista obrazów</h1>
<table class="table">
<thead>
<tr>
<th>Token</th>
<th>Nazwa</th>
<th>IP VPN</th>
<th>Pobierz klucz</th>
<th>Usuń</th>
</tr>
</thead>
<tbody>
{% for image in images %}
<tr>
<td>{{ image.token }}</td>
<td>{{ image.name }}</td>
<td>{{ image.vpn_ip }}</td>
<td>
<form action="{{ url_for('download_key', image_id=image.id) }}" method="post">
<button type="submit" class="btn">Pobierz</button>
</form>
</td>
<td>
<form action="{{ url_for('delete', image_id=image.id) }}" method="post">
<button type="submit" class="btn btn-danger">Usuń</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}