Zdalne-systemy-z-kit-uVPN/templates/images.html

41 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2023-04-19 12:10:31 +00:00
{% extends "base.html" %}
{% block title %}Obrazy{% endblock %}
{% block style %}
{% endblock %}
{% block content %}
<div class="container">
2023-04-21 08:46:46 +00:00
<h1 class="my-4 mx-auto">Lista obrazów</h1>
2023-04-19 12:10:31 +00:00
<table class="table">
<thead>
<tr>
<th>Token</th>
<th>Nazwa</th>
2023-04-20 14:29:01 +00:00
<th>IP VPN</th>
2023-04-25 07:21:53 +00:00
<th>Pobierz klucz</th>
2023-04-19 12:10:31 +00:00
<th>Usuń</th>
</tr>
</thead>
<tbody>
{% for image in images %}
<tr>
<td>{{ image.token }}</td>
<td>{{ image.name }}</td>
2023-04-20 14:29:01 +00:00
<td>{{ image.vpn_ip }}</td>
2023-04-25 07:21:53 +00:00
<td>
<form action="{{ url_for('download_key', image_id=image.id) }}" method="post">
2023-04-25 07:30:19 +00:00
<button type="submit" class="btn btn-success">Pobierz</button>
2023-04-25 07:21:53 +00:00
</form>
</td>
2023-04-19 12:10:31 +00:00
<td>
2023-04-19 13:31:25 +00:00
<form action="{{ url_for('delete', image_id=image.id) }}" method="post">
2023-04-19 12:10:31 +00:00
<button type="submit" class="btn btn-danger">Usuń</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}