From 053579c2a45d3cfe54d90306f4137b84248fcdbe Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 21 Aug 2021 10:33:50 -0700 Subject: [PATCH] Clarifies logic in file upload widget --- .../clearable_file_input_with_warning.html | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/bookwyrm/templates/widgets/clearable_file_input_with_warning.html b/bookwyrm/templates/widgets/clearable_file_input_with_warning.html index e4906cb9..6370ba39 100644 --- a/bookwyrm/templates/widgets/clearable_file_input_with_warning.html +++ b/bookwyrm/templates/widgets/clearable_file_input_with_warning.html @@ -2,23 +2,30 @@ {% load utilities %} {% if widget.is_initial %} -

- {{ widget.initial_text }}: - {{ widget.value|truncatepath:10 }} -

-{% if not widget.required %} -

-

+ {{ widget.initial_text }}: + {{ widget.value|truncatepath:10 }} +

+ + {% if not widget.required %} +

+ {% endif %} -

-

-{{ widget.input_text }}: -{% else %} -

+ +

+ {% endif %} + {% endif %} - - + +

+ {% if widget.is_initial %} + {{ widget.input_text }}: + {% endif %} + + +