aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/templates/base.html.jinja
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-09-03 11:57:09 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-09 13:55:05 +0200
commit22b6538ed828dcc779d3c5179bb3751ea1fe434e (patch)
treeb06f2da3abe26d5f19cadd43b5c55cd4b495f08f /src/hydrilla/proxy/web_ui/templates/base.html.jinja
parent781770b26a6387d7cdd5b3fc1ec56036dc62fc5b (diff)
downloadhaketilo-hydrilla-22b6538ed828dcc779d3c5179bb3751ea1fe434e.tar.gz
haketilo-hydrilla-22b6538ed828dcc779d3c5179bb3751ea1fe434e.zip
[proxy] improve the look of item lists in web UI
Diffstat (limited to 'src/hydrilla/proxy/web_ui/templates/base.html.jinja')
-rw-r--r--src/hydrilla/proxy/web_ui/templates/base.html.jinja13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/hydrilla/proxy/web_ui/templates/base.html.jinja b/src/hydrilla/proxy/web_ui/templates/base.html.jinja
index a1de86a..0d74fc0 100644
--- a/src/hydrilla/proxy/web_ui/templates/base.html.jinja
+++ b/src/hydrilla/proxy/web_ui/templates/base.html.jinja
@@ -24,13 +24,16 @@ in a proprietary work, I am not going to enforce this in court.
<div class="button-row">
{% for classes, text, action in buttons_data %}
{% if 'disabled-button' in classes %}
- <button class="{{ classes|join(' ') }}">{{ text }}</button>
+ {% set disabled_attr = ' disabled=""' %}
{% else %}
- <form method="POST" class="inline-form">
- <input name="action" value="{{ action }}" type="hidden">
- <button class="{{ classes|join(' ') }}">{{ text }}</button>
- </form>
+ {% set disabled_attr = '' %}
{% endif %}
+ <form method="POST" class="inline-form">
+ <input name="action" value="{{ action }}" type="hidden">
+ <button class="{{ classes|join(' ') }}"{{ disabled_attr }}>
+ {{ text }}
+ </button>
+ </form>
{% endfor %}
</div>
{% endmacro %}