mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
- Ensure that .sr-only is replaced with newer classes. - Ensure that icons are present for all alerts. - Use flex-box for display of icons on the left center of the alert. - .close has been renamed to .btn-close. - × is no longer required for close buttons. Tests: - Visually verify all the changes by triggering them with code changes. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
<h3>{{ title }}</h3>
|
|
|
|
<p>
|
|
{% blocktrans trimmed %}
|
|
You can <a href="https://library.kiwix.org" target="_blank"
|
|
rel="noopener noreferrer">download</a> content packages from the Kiwix
|
|
project or <a href="https://openzim.org/wiki/Build_your_ZIM_file"
|
|
target="_blank" rel="noopener noreferrer">create</a> your own.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
{% if max_filesize %}
|
|
<div class="alert alert-warning d-flex align-items-center" role="alert">
|
|
<div class="me-2">
|
|
<span class="fa fa-exclamation-triangle" aria-hidden="true"></span>
|
|
<span class="visually-hidden">{% trans "Caution:" %}</span>
|
|
</div>
|
|
<div>
|
|
{% blocktrans trimmed %}
|
|
You have {{ max_filesize }} of free disk space available.
|
|
{% endblocktrans %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form class="form form-kiwix" enctype="multipart/form-data" method="post">
|
|
{% csrf_token %}
|
|
|
|
{{ form|bootstrap }}
|
|
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans "Upload ZIM file" %}"/>
|
|
</form>
|
|
|
|
{% endblock %}
|