FreedomBox/plinth/modules/snapshot/templates/snapshot_rollback.html
Sunil Mohan Adapa 83dcafac55
ui: Make all tables responsive
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-12-19 11:26:34 +02:00

51 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block content %}
<h2>{{ title }}</h2>
<p>{% trans "Roll back the system to this snapshot?" %}</p>
<p>
{% blocktrans trimmed %}
A new snapshot with the current state of the file system will be
automatically created. You will be able to undo a rollback by
reverting to the newly created snapshot.
{% endblocktrans %}
</p>
<div class="table-responsive">
<table class="table">
<thead>
<th>{% trans "Number" %}</th>
<th>{% trans "Date" %}</th>
<th>{% trans "Description" %}</th>
</thead>
<tbody>
<tr>
<td>{{ snapshot.number }}</td>
<td>{{ snapshot.date }}</td>
<td>{{ snapshot.description }}</td>
</tr>
</tbody>
</table>
</div>
<p>
<form class="form" method="post">
{% csrf_token %}
<input type="submit" class="btn btn-primary"
value="{% blocktrans trimmed with number=snapshot.number %}
Rollback to Snapshot #{{ number }}
{% endblocktrans %}"/>
</form>
</p>
{% endblock %}