mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
45 lines
1.0 KiB
HTML
45 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
{% block content %}
|
|
<h2>{{ title }}</h2>
|
|
|
|
{% if name %}
|
|
<p>
|
|
{% trans 'Restore data from' %} {{ name }}
|
|
</p>
|
|
{% endif %}
|
|
|
|
<p>
|
|
<form class="form" method="post">
|
|
{% csrf_token %}
|
|
|
|
{{ form|bootstrap }}
|
|
|
|
<input id="restore_btn" type="submit"
|
|
class="btn btn-primary"
|
|
onclick="swapWithLoadingButton();"
|
|
value="{% trans 'Restore' %}" />
|
|
|
|
<button id="loading_btn" class="btn btn-primary sr-only" disabled>
|
|
<span class="fa fa-spinner fa-pulse fa-fw" aria-hidden="true"></span>
|
|
{% trans "Restoring" %}
|
|
</button>
|
|
|
|
</form>
|
|
</p>
|
|
|
|
{% endblock %}
|
|
|
|
{% block page_js %}
|
|
<script type="text/javascript"
|
|
src="{% static 'backups/loading_button.js' %}"></script>
|
|
<script type="text/javascript" src="{% static 'backups/select_all.js' %}"></script>
|
|
{% endblock %}
|