| 1 | {% extends "base.html" %} |
| 2 | {% comment %} |
| 3 | # SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | {% endcomment %} |
| 5 | |
| 6 | {% load bootstrap %} |
| 7 | {% load i18n %} |
| 8 | {% load extras %} |
| 9 | |
| 10 | {% block page_head %} |
| 11 | {% endblock %} |
| 12 | |
| 13 | {% block content %} |
| 14 | |
| 15 | <h3>{{ title }}</h3> |
| 16 | |
| 17 | <p> |
| 18 | {% blocktrans trimmed %} |
| 19 | Upload a backup file downloaded from another {{ box_name }} to restore its |
| 20 | contents. You can choose the apps you wish to restore after uploading a |
| 21 | backup file. |
| 22 | {% endblocktrans %} |
| 23 | </p> |
| 24 | |
| 25 | {% if max_filesize %} |
| 26 | <div class="alert alert-warning d-flex align-items-center" role="alert"> |
| 27 | <div class="me-2"> |
| 28 | {% icon 'exclamation-triangle' %} |
| 29 | <span class="visually-hidden">{% trans "Caution:" %}</span> |
| 30 | </div> |
| 31 | <div> |
| 32 | {% blocktrans trimmed %} |
| 33 | You have {{ max_filesize }} available to restore a backup. |
| 34 | Exceeding this limit can leave your {{ box_name }} unusable. |
| 35 | {% endblocktrans %} |
| 36 | </div> |
| 37 | </div> |
| 38 | {% endif %} |
| 39 | |
| 40 | <form class="form form-upload" enctype="multipart/form-data" method="post"> |
| 41 | {% csrf_token %} |
| 42 | |
| 43 | {{ form|bootstrap }} |
| 44 | |
| 45 | <input type="submit" class="btn btn-primary" |
| 46 | value="{% trans "Upload file" %}"/> |
| 47 | </form> |
| 48 | |
| 49 | {% endblock %} |