aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-23 11:32:57 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-28 12:54:52 +0200
commit6c35f796c659a6a3d839d4176b833db361f5678d (patch)
treec5a3628baf89fcee1b86fc136b014be439e69c7a /src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja
parent1864fc0aaf7d6dba2e730cf74a5e154df4e6d18d (diff)
downloadhaketilo-hydrilla-6c35f796c659a6a3d839d4176b833db361f5678d.tar.gz
haketilo-hydrilla-6c35f796c659a6a3d839d4176b833db361f5678d.zip
add styling to buttons and file input
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja b/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja
index 0eb5149..1f3c246 100644
--- a/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/packages__load_from_disk.html.jinja
@@ -21,19 +21,30 @@ in a proprietary work, I am not going to enforce this in court.
#}
{%- extends "base.html.jinja" %}
{% block title %} {{ _('web_ui.packages.load_from_disk.title') }} {% endblock %}
+{% block style %}
+ {{ super() }}
+
+ input[type="file"]::-webkit-file-selector-button,
+ input[type="file"]::file-selector-button {
+ display: none;
+ }
+{% endblock %}
{% block main %}
+ <h3>{{ _('web_ui.packages.load_from_disk.heading') }}</h3>
<form method="POST" enctype="multipart/form-data">
<div>
- <label for="packages_zipfile">
- {{ _('web_ui.packages.load_from_disk.select_malcontent_zipfile') }}
- </label>
+ <input id="packages_zipfile" name="packages_zipfile" type="file"
+ accept=".zip,application/zip" required="">
</div>
<div>
- <input id="packages_zipfile" name="packages_zipfile" type="file"
- required="">
+ <label class="green-button" for="packages_zipfile">
+ {{ _('web_ui.packages.load_from_disk.choose_zipfile_button') }}
+ </label>
</div>
<div>
- <button>{{ _('web_ui.packages.load_from_disk.install_button') }}</button>
+ <button class="green-button">
+ {{ _('web_ui.packages.load_from_disk.install_button') }}
+ </button>
</div>
</form>
{%- endblock %}