aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-09-28 12:48:45 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-29 12:53:36 +0200
commitffe6e681b281eef2c1e62bbc6feefb0b85d040ca (patch)
tree0aa141073403beae9590135fd047d7a2ebd8fe76 /src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja
parent1a1f750ccdc1d52a7b1bd648b2188fa6e7c1a4b8 (diff)
downloadhaketilo-hydrilla-ffe6e681b281eef2c1e62bbc6feefb0b85d040ca.tar.gz
haketilo-hydrilla-ffe6e681b281eef2c1e62bbc6feefb0b85d040ca.zip
[proxy] make it possible to create "ad hoc" packages through the web UI
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja68
1 files changed, 0 insertions, 68 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja b/src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja
deleted file mode 100644
index f5d7b34..0000000
--- a/src/hydrilla/proxy/web_ui/templates/items/load_from_disk.html.jinja
+++ /dev/null
@@ -1,68 +0,0 @@
-{#
-SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
-
-Proxy web UI item loading page.
-
-This file is part of Hydrilla&Haketilo.
-
-Copyright (C) 2022 Wojtek Kosior
-
-Dual licensed under
-* GNU General Public License v3.0 or later and
-* Creative Commons Attribution Share Alike 4.0 International.
-
-You can choose to use either of these licenses or both.
-
-
-I, Wojtek Kosior, thereby promise not to sue for violation of this
-file's licenses. Although I request that you do not make use of this
-code in a proprietary work, I am not going to enforce this in court.
-#}
-{% extends "base.html.jinja" %}
-
-{% block title %} {{ _('web_ui.load_from_disk.title') }} {% endblock %}
-
-{% block style %}
- {{ super() }}
-
- input[type="file"]::-webkit-file-selector-button,
- input[type="file"]::file-selector-button {
- display: none;
- }
-
- input[type="file"] {
- display: block;
- font-size: inherit;
- font-style: inherit;
- }
-{% endblock %}
-
-{% block main %}
- <h3>{{ _('web_ui.load_from_disk.heading') }}</h3>
-
- <form method="POST" enctype="multipart/form-data">
- {% if uploaded_file_not_zip is defined %}
- {{ error_note(_('web_ui.err.uploaded_file_not_zip')) }}
- {% endif %}
-
- {% if invalid_uploaded_malcontent is defined %}
- {{ error_note(_('web_ui.err.invalid_uploaded_malcontent')) }}
- {% endif %}
-
- <input id="items_zipfile" name="items_zipfile" type="file"
- accept=".zip,application/zip" required=""
- class="block-with-bottom-margin">
-
- <label class="green-button block-with-bottom-margin" for="items_zipfile">
- {{ _('web_ui.load_from_disk.choose_zipfile_button') }}
- </label>
-
- <div class="horizontal-separator"></div>
-
- <div class="flex-row">
- <button class="green-button">
- {{ _('web_ui.load_from_disk.install_button') }}
- </button>
- </div>
- </form>
-{% endblock %}